-
Hi all, I'm getting an error when sending a AWS SQS message. The error I get is: My code for sending the message:
PS. When I run the code from my development enviroment on a seperate VMWARE machine, the code actually works just fine and sends the messsage as expected. But when I move my executable over to my Windows server on my production enviroment, it fails with the error message mentioned above. Any hint or help greatly appricated. -Leif Eirik |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 1 reply
-
Is it some type of firewall issue ? |
Beta Was this translation helpful? Give feedback.
-
Try this: lClient := TAmazonSQSClient.Create(AWS_ACCESS_KEY, AWS_SECRET_KEY, TRegionEndpoints.USEast1); And of course, for production environments, never put access key and secret key directly in code. |
Beta Was this translation helpful? Give feedback.
-
Config is immutable after the client is created. If you want a complex config, you should create the config and then pass it in the constructor of the client. |
Beta Was this translation helpful? Give feedback.
Try this:
And of course, for production environments, never put access key and secret key directly in code.