text-translation-api-v3-c-sharp-tutorial's People
Forkers
mauryavijai sthoward0914 azurementor todorm85 anamakh mallikarjungd silviatormo erhopf sabeelcoder wijwij zaqwsx2003 alexeyvoropay mohamedmustaffa laasya-07 seanpm2001 fionayuanwei0221text-translation-api-v3-c-sharp-tutorial's Issues
The request is not authorized because credentials are missing or invalid.
I entered the subscription key and changed my region as well but I'm still getting the below error on click of Translate button:
{"error":{"code":401000,"message":"The request is not authorized because credentials are missing or invalid."}}
What credentials are required here?
Can anybody please guide what the issue might be.
Ocp-Apim-Subscription-Region should be configurable
I am not an expert on using Azure, so this might just be a beginners problem.
It was pretty obvious in the sample that I had to enter my own key, which I already had for API v2.
It was not at all obvious that I had to enter the region of my subscription as well.
The sample only worked for me, after changing "westus" to "global".
The only information that I found about this was on Stack Overflow, not on the Microsoft Web Site.
I think it would be better to define a constant COGNITIVE_SERVICES_REGION next to the definition of COGNITIVE_SERVICES_KEY and make it clear that you must edit it to specify the Location as indicated on the Overview page of the Azure Dashboard.
Phil
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.