UnknownOperationException is always returned by Amazon SQS

Hari Das picture Hari Das · Apr 12, 2015 · Viewed 7.3k times · Source

I have created a queue and also given the permission as (*). The URL of my queue is https://sqs.us-west-2.amazonaws.com/123/Example

When I hit this URL it always gives the output as <UnknownOperationException/> . I checked the Chrome console it shows me following error. Can anybody suggest what is the issue ? Or it is a bug ?

enter image description here

Answer

Hari Das picture Hari Das · Apr 14, 2015

This is not POST request. It is GET. The API endpoint is like this

http://sqs.us-east-1.amazonaws.com/123456789012/testQueue/
?Action=ReceiveMessage
&WaitTimeSeconds=10
&MaxNumberOfMessages=5
&VisibilityTimeout=15
&AttributeName=All;
&Version=2012-11-05
&Expires=2013-10-25T22%3A52%3A43PST
&AUTHPARAMS

I was not mentioning the request parameters so not getting the result. That was the issue.