Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialRadu - Adrian Buha
Courses Plus Student 5,535 PointsSystem.Net.WebException: 'The remote server returned an error: (401) Unauthorized.'
Can anyone can tell me how to get an API key that works? I don't have a VISA card or an MasterCard, I only have Maestro, and apparently Maestro is not supported by Azure verification. I live in Germany by the way...
Many thanks in advance.
2 Answers
Hakim Rachidi
38,490 PointsHi Ardian,
I faced the same problem as you (live in Germany, no Visa -> no Azure verification) but you can try the free plan of Azure which only requires a Microsoft - account. But pay attention that this plan is very limited and does not include cognitive services (text analysis).
Samuel Zhen
33,571 PointsHi, did you manage to get it working? I'm facing the same problem right now. Even though I'm using the free plan for the API.
I'm quite sure it's not about the code since the result is the same with Postman application.
Radu - Adrian Buha
Courses Plus Student 5,535 PointsNope. I just gave up and went further. I don't think that you can make it work. At least not until I'll get a VISA Credit card. It would be great if they would accept PayPal as payment method though...
Samuel Zhen
33,571 PointsI see... that's a shame. Ok, thank you.
Radu - Adrian Buha
Courses Plus Student 5,535 PointsRadu - Adrian Buha
Courses Plus Student 5,535 PointsHello Hakim. Thank's for your feedback.