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

Comments

jonasdk created an issue. See original summary.

jonasdk’s picture

Issue summary: View changes
mariano.barcia’s picture

Yeah, this is caused by a nasty bug.

Client error: `GET https://api.fastly.com//tokens/self` resulted in a `404 Not Found`

I think I can patch it now (it's not patched in HEAD)...

mariano.barcia’s picture

Assigned: Unassigned » mariano.barcia
StatusFileSize
new770 bytes

Hereby submitting a patch for this problem.

mariano.barcia’s picture

StatusFileSize
new694 bytes

Making the patch the proper internal format.

mariano.barcia’s picture

Status: Active » Needs review
jonasdk’s picture

Who do the review? Can I do it by applying the patch and testing?

jonasdk’s picture

I can now confirm that it works and solve the problem.
I have asked for Leon Kesslers review and told that it works.

wim leers’s picture

Status: Needs review » Reviewed & tested by the community

Per #8.

leon kessler’s picture

Status: Reviewed & tested by the community » Fixed

Pushed to 8.x-3.x. Thanks everyone.

vvuksan-fastly’s picture

Status: Fixed » Closed (fixed)