Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more
I get the following error:
AuthenticationError: Error code: 401 - {'statusCode': 401, 'message': 'Unauthorized. Access token is missing, invalid, audience is incorrect (https://cognitiveservices.azure.com), or have expired.'}
This is what i'm doing:
Hi everyone. I noticed i solved my issue by installing recent version of openai python package. Thnk it was something with API versions and how Fabric handled Python environments (its in preview so...).
I am having the same issue but doing everything correctly and it gives the error 'authentication failed'
my code is below
Base = key = getsecret
That's wrong. Should be base = getSecret
For the base url. You're overwriting the key again with the base url
Thank you for the reply. However that mistake is not in my real code. Sorry about pasting in that extra error here...
Make sure the baseurl is:
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
Check out the October 2025 Fabric update to learn about new features.