-
Notifications
You must be signed in to change notification settings - Fork 29
Missing authentication token #16
Comments
Hi Chris, that error is from API Gateway and is usually returned when you're using the wrong URL or one that doesn't exit. |
Hi Daniel, thanks. I've checked the url (https://d4o3vwxlsg.execute-api.eu-west-1.amazonaws.com/prd/?format=json) and copy/pasted the endpoint. Unfortunatly the problem persists. Tried to run "serverless deploy" again but it returns same endpoint. Probably because nothing changed. |
Found some more info here: https://forums.aws.amazon.com/thread.jspa?threadID=192977, will try some suggested solutions as url is correct for as far as I can see |
I think it might potentially be that you're using the wrong http method? I've just been able to |
Yes that was the issue. I'm now facing an HTTP 422 error from cloudfront :s I've never heard of 422 so have to google what's going wrong there. |
Ah lol found it: {"statusCode":422,"message":"Please provide a recipient in '_to' field"} |
Good to hear you've fixed the issue, closing. |
@danielireson is it an idea to also add an OPTIONS method to the API? I've added this myself now with a mock behind it but it does return the correct CORS headers. My ajax library (Axios) sends an OPTIONS request as part of the preflight for the ajax request. I know this can also be solved in Axios itself by changing the Content-Type headers but adding it to the API would make Formplug work out of the box in more situations. |
Hmmmmm, also unable to fix error 422: {"statusCode":422,"message":"Please provide a recipient in '_to' field"} _to field is filled, tried both encrypted an unencrypted: firstName: saddas Any suggestions how to debug more? |
Never mind got it fixed :) |
Hi,
I've been setting up formplug for the second time. The first time was for my own website running on my own server and is working flawlessly.
Now i'm trying to add it to a friends website but i'm receving 403 error on form submit:
The error header seen is: x-amzn-errortype: MissingAuthenticationTokenException
And also when I try to call the API directly I get the same 403 error:
{
"message": "Missing Authentication Token"
}
I've got no clue where stuff is going wrong or what auth token I should add where to make it work. Any pointers and help is much appreciated.
The text was updated successfully, but these errors were encountered: