-
Notifications
You must be signed in to change notification settings - Fork 21.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Translator API always gives me 404 #57430
Comments
@tinytortoise-dev Thanks for the feedback! We are currently investigating and will update you shortly. |
@tinytortoise-dev If you have already created a new resource from azure portal you can use the endpoint name that is available on the resource page directly. For example: You can also use it as mentioned in the document. |
Try using the global endpoint in your code instead of the one given in "APIs and Endpoints". |
@RohitMungi-MSFT @manikyabard I've already tried using the global endpoint. But got a bit different response:
And I want to make sure what subscription key is. I suppose KEY1 and KEY2 are the subscription keys, right? Here are the failed combinations: |
@tinytortoise-dev It looks like you are using a common cognitive service resource and a key. Most the services have moved to using an individual resource type and if you can create and use the translator resource the steps mentioned in the documentation should work as is. |
@RohitMungi-MSFT Would you share the exact document which mentions about the difference between a common cognitive service and an individual resource type, and the reason why a user cannot use translator API through the common congnitive service, if you don't mind. It would be also highly appreciated if you tell me how to create an individual resource because I'm not a master yoda of Azure services. |
Sure, a common resource is used to consolidate the billing. Here are some details about single and multi service resources. This documentation or quickstart uses a single resource so the steps mentioned are using those endpoints. |
@tinytortoise-dev We hope you are able to proceed further using the translator resource with the correct endpoint. You can also refer the API reference for more help. If there are no further questions regarding this matter, we will go ahead and close this issue. |
I'm trying to use translator API through a free trial subscription. After creating it, I set resource groups and add cognitive service to it. On that cognitive service page, I followed the "Quick Start" guide and got a pair of keys and ENDPOINT url.
Then I followed this document. It says an API key and endpoint are needed to use translator API. And I get them from RESOURCE MANAGEMENT>Keys and Endpoint.
https://docs.microsoft.com/en-gb/azure/cognitive-services/translator/quickstart-translate?pivots=programming-language-javascript
But I always get 404 status code from this API every time I send a request. Is there anything I do wrong? How can I use this API?
SubscriptionID: zzzzzzzzzzzzzzzzzzzzzzzzzzzzz
My code:
Error response:
Document details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.
The text was updated successfully, but these errors were encountered: