question

RachelD-0660 avatar image
0 Votes"
RachelD-0660 asked NealeFaunt-1511 commented

MS Translate 405000 Error for Unknown Reason

I am currently working on a Chrome Extension which uses the Microsoft Translator API. I keep getting a 405000 error on it, so I decided to create a much simpler translate program - a webpage that simply translates a given word - in order to see if it was the extension that was causing the error.

Spoiler, it wasn't. I got the exact same error on the basic program. I have no idea what is causing this error as I know the endpoint is correct and that a POST method is required for this. I've posted code for the request method below. Any help would be much appreciated.

83784-2021-04-01.png


azure-translator
2021-04-01.png (77.0 KiB)
· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hi, we're looking into your inquiry, will get back to you soon!

0 Votes 0 ·

1 Answer

GiftA-MSFT avatar image
0 Votes"
GiftA-MSFT answered NealeFaunt-1511 commented

Hi, I had no trouble sending a POST request. Please ensure that you include your region in the header if using a regional or multi-service resource. Please refer to the API reference document. Let me know if you have any further questions or concerns.

84088-image.png



image.png (37.1 KiB)
· 3
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hi,

Thank you for responding to my question. I have tried what you suggested, but I am still getting the same error. Is there something else I could be doing wrong? Is there something wrong with my subscription? It’s one that is free for 12 months.

0 Votes 0 ·

Hi, the error 405000 means "The request method is not supported for the requested resource." Are you using a global, regional, or multi-service resource? Can you verify that you are using appropriate authentication methods and headers based on your resource? Here's a sample code that you can try. If you're still within the your free trial period, then we can rule out subscription as an issue.



0 Votes 0 ·

I'm curious if this was resolved. My Translate code stopped working after it had been working. Getting same error message and everything looks good with the code.

0 Votes 0 ·