UnknownOperationException is always returned by Amazon SQS

10,784

Solution 1

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.

Solution 2

Can you explain what do you mean by hit the url? Aws only supports http post requests so if you try to go to this url using browser then you won't get any response but what you got on your browser. You need to send a valid request to this endpoint which contains the authentication info and a request object at the least.

Share:
10,784
Hari Das
Author by

Hari Das

A full-stack web developer, UX designer and a JavaScript lover. I work with web technologies like HTML, JS, CSS, PHP, Node JS, Java, MySql. Some of the related lib/frameworks I work with include Angular, React, Vue, Bootstrap, jQuery. A few other technologies I know: git, Visual Basic, Google Apps Script [ will add few more if I recall :P ] I am the founder of Tabgraf (IT service) and Fun But Learn (a personal tech blog) since 2015. I enjoy coding but my favorite has been JavaScript always. I was working as a software developer for multi national companies till late 2015. Then after, I quit my day-job and became a full-time freelancer. I have participated in many international coding competitions hosted on Topcoder and have honor to win the prizes among top developers. You can view my Topcoder profile here. In past few years I have published a dozen of free and premium products, apps, services and plugins. They have been used and loved by many companies world wide. I love to help people. These days I have been busy with some of my projects but I manage to get some time to contribute here in Stack Overflow. A few of my works: Email Export Sync Sheet Tabgraf Fun But Learn Spreadsheet Mailer Special Characters Email Scheduler Pro For any query or help drop me an email at [email protected] or alternatively you can also start a live chat with me.

Updated on June 05, 2022

Comments

  • Hari Das
    Hari Das about 2 years

    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