401 error message
I am attempting to do first API and receiving error message statusCode": 401, "message": "The required Authorization header was missing or invalid, or the token has expired". I am running a test connection and I have the authorization set to "No auth" and the authorization subscription key and the BB-API-subscription key matches.
I having trouble figuring out why I am getting this error.
Thanks,
Mohammed
I having trouble figuring out why I am getting this error.
Thanks,
Mohammed
0
Comments
-
Hello Mohammed,
How are you attempting to access the API? Are you using an HTTP request through a coding language or are you utilizing service references in C#/VB? What type of API are you attempting to access, REST or SOAP?0 -
Hi Mohammed Abdulkadir . Are you testing the API using the SKY API Console? If so, you will have to select an authorization type from the dropdown. Don't leave it set to "No auth" or you will receive the "401 Unauthorized" error. More instructions on how to practice making API calls using the SKY API Console can be found at https://developer.blackbaud.com/skyapi/docs/getting-started/learn-api
Thanks!
-Michael0 -
Hi Michael,
Yes, I am using SKY API Console. First I tried with an authorization type but didn't work so I changed to "No auth".
I figured out what the issue is. I was using Safari browser and it was not generating the authorization in the "Header" section as well as the Access token. When I tried using Chrome from another computer, the Authorization and Access token was generated automatically and I was able to get a response status with 200 OK.
I didn't see in the documentation saying don't use Safari browser in the documentation section. Does this means that you can't use Safari when testing the API using SKY API Console?
Thanks,
Mohammed0 -
> Does this means that you can't use Safari when testing the API using SKY API Console?
Mohammed Abdulkadir I'm not aware of any known issues with the SKY API Console and the Safari browser. Perhaps there's some security enabled in your Safari settings that's preventing the Authorization header from updating correctly in the console app. You could check to see if any errors are printed to the browser console, or run a tool like Fiddler (I believe Fiddler is available on macOS now) to observe any network traffic issues.0
Categories
- All Categories
- 6 Blackbaud Community Help
- 211 bbcon®
- 1.4K Blackbaud Altru®
- 402 Blackbaud Award Management™ and Blackbaud Stewardship Management™
- 1.1K Blackbaud CRM™ and Blackbaud Internet Solutions™
- 15 donorCentrics®
- 360 Blackbaud eTapestry®
- 2.6K Blackbaud Financial Edge NXT®
- 655 Blackbaud Grantmaking™
- 577 Blackbaud Education Management Solutions for Higher Education
- 3.2K Blackbaud Education Management Solutions for K-12 Schools
- 940 Blackbaud Luminate Online® and Blackbaud TeamRaiser®
- 84 JustGiving® from Blackbaud®
- 6.7K Blackbaud Raiser's Edge NXT®
- 3.7K SKY Developer
- 248 ResearchPoint™
- 119 Blackbaud Tuition Management™
- 165 Organizational Best Practices
- 240 Member Lounge (Just for Fun)
- 34 Blackbaud Community Challenges
- 37 PowerUp Challenges
- 3 (Open) PowerUp Challenge: Grid View Batch
- 3 (Closed) PowerUp Challenge: Chat for Blackbaud AI
- 3 (Closed) PowerUp Challenge: Data Health
- 3 (Closed) Raiser's Edge NXT PowerUp Challenge: Product Update Briefing
- 3 (Closed) Raiser's Edge NXT PowerUp Challenge: Standard Reports+
- 3 (Closed) Raiser's Edge NXT PowerUp Challenge: Email Marketing
- 3 (Closed) Raiser's Edge NXT PowerUp Challenge: Gift Management
- 4 (Closed) Raiser's Edge NXT PowerUp Challenge: Event Management
- 3 (Closed) Raiser's Edge NXT PowerUp Challenge: Home Page
- 4 (Closed) Raiser's Edge NXT PowerUp Challenge: Standard Reports
- 4 (Closed) Raiser's Edge NXT PowerUp Challenge: Query
- 796 Community News
- 3K Jobs Board
- 54 Blackbaud SKY® Reporting Announcements
- 47 Blackbaud CRM Higher Ed Product Advisory Group (HE PAG)
- 19 Blackbaud CRM Product Advisory Group (BBCRM PAG)
