After upgrading to latest version of the Fastly module I can no longer use the module. I have several installations of the module and on everyone of them it seems that there is an issue with the API tokens I generates.
I have tried making the tokens global, specific to one site, with all permissions, with just the mentioned global:read, purge_all, and purge_all permissions. And it keeps failing with this error.
Invalid API token. Make sure the token you are trying has at least global:read, purge_all, and purge_all scopes.
1) I insert the api key
2) it fetches the Services
3) I select the relevant service
4) Press save
And it trows the error
| Comment | File | Size | Author |
|---|---|---|---|
| #5 | fastly-2902806-invalid-api-calls.patch | 694 bytes | mariano.barcia |
| #4 | fastly-2902806-invalid-api-calls.patch | 770 bytes | mariano.barcia |
Comments
Comment #2
jonasdk commentedComment #3
mariano.barcia commentedYeah, this is caused by a nasty bug.
I think I can patch it now (it's not patched in HEAD)...
Comment #4
mariano.barcia commentedHereby submitting a patch for this problem.
Comment #5
mariano.barcia commentedMaking the patch the proper internal format.
Comment #6
mariano.barcia commentedComment #7
jonasdk commentedWho do the review? Can I do it by applying the patch and testing?
Comment #8
jonasdk commentedI can now confirm that it works and solve the problem.
I have asked for Leon Kesslers review and told that it works.
Comment #9
wim leersPer #8.
Comment #12
leon kessler commentedPushed to 8.x-3.x. Thanks everyone.
Comment #13
vvuksan-fastly commented