Invalid Security Token *only* when using Transcribe

0

I am using Vapor to deploy my laravel application to AWS. The keys that I am using locally to connect to AWS Transcribe are working, but I am getting this error when I send a request to Transcribe from one of my Vapor environments:

{"__type":"UnrecognizedClientException","message":"The security token included in the request is invalid."}

I am using my environment variables AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY to authenticate in multiple places (including my Transcribe request) but this is the only failure. Again, this works fine locally. I have also opened a ticket with Vapor so they may have a solution for me soon - but my gut tells me this needs to be solved from within my AWS console.

Any suggestions are appreciated! Thanks in advance.

Brian
asked 4 months ago238 views
1 Answer
0
Accepted Answer

Hello.

Are the access keys set on Vapor the same as when you verified it on your local PC?
A common problem is that the access key and secret access key pair do not match.
Also, will it result in an error if I write the access key directly in the code?

profile picture
EXPERT
answered 4 months ago
  • That's a great idea thank you! It works! So this should be fixed in Vapor then right? I'm sure the support over there can help me with that.

  • I think there was a problem with either the setting method or the Vapor side. I think if you ask support, they might be able to give you some hints that will lead to a solution.

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions