Error 400 when connecting to new environment
Hi there,
I am currently trying to set up sky api to a new environment. I have already enabled sky api on the new environment as well as add the application to the new environments.
After retrieving the new access and refresh tokens for the new environment I am met with the following error when attempting to connect pull data using get request:
{"title":"Bad request","status":400,"detail":"This SKY API service is not available in this Blackbaud Environment.","message":"This SKY API service is not available in this Blackbaud Environment.","statusCode":400}
Code":400}
Any ideas on why I am receiving this issue with the new environment? The same code I am using works with get requests in the old environment but not with this environment
Comments
-
@Peter Kungania, this error indicates that the API is not available in a given Blackbaud environment. Assuming these requests are coming from your own developer account/subscription and without providing customer details--looking at our analytics, it appears that you're making requests to the Fundraising API (an Raiser's Edge NXT API) in a Blackbaud Environment that does not have the Raiser's Edge NXT product. I do see requests from your account to another environment that does contain this product, which explains why they are successful.
0 -
@Chris Rodgers, Thanks for the quick response.
Could you elaborate more on the part that I'm making requests to the fundrasing api? Looking at the get requests I made they were to the General ledger apis and I can see there are a number of failed calls on there.
In what other way can I check if the API is available in a given blackbaud environment?
When testing the general ledger api through the api reference sites I was able to make get requests but not through the python scirpts I wrote.
0 -
@Peter Kungania Over the last 3 days, I see requests from your account to the Fundraising and General Ledger APIs; most of these (18) are to the Fundraising's Campaign list endpoint. Of those 18 requests, 16 fail with the error response in your original post due to the Blackbaud environment not having a Raiser's Edge NXT instance. I do see a few failed requests to the General Ledger API (400 HTTP status code), but from what I can see, these are not due to the same Environment compatibility error (for example, I see the following error for a call to Account code (list) endpoint:
{"Error":"Invalid Request","Details":["The field Limit must be between 1 and 500."],"ErrorPath":null}).Unfortunately, we do not currently have a way for your application to proactively check for this environment capability.
0 -
@Chris Rodgers
So does this mean that I'm not able to connect to the new environment using the same application? Would I need to create a new application for this to work?0 -
@Peter Kungania I think it depends on what your application does and what the user experience is. If access to a particular API or APIs for a particular product are required for the application to function, many applications would respond to this error by letting the user know that the selected environment is not compatible with the application. However, other applications without this requirement could gracefully degrade the user experience to limit functionality to only the APIs it can access in that environment. Creating a separate application may make sense if that provides the better user experience.
0 -
Hi @Chris Rodgers,
Thanks for your help! Was able to resolve the issue. The error was due to the environment making a call using the wrong endpoint. Seems that this was a test endpoint that I had not corrected earlier
1
Categories
- All Categories
- 6 Blackbaud Community Help
- 209 bbcon®
- 1.4K Blackbaud Altru®
- 395 Blackbaud Award Management™ and Blackbaud Stewardship Management™
- 1.1K Blackbaud CRM™ and Blackbaud Internet Solutions™
- 15 donorCentrics®
- 360 Blackbaud eTapestry®
- 2.5K Blackbaud Financial Edge NXT®
- 649 Blackbaud Grantmaking™
- 567 Blackbaud Education Management Solutions for Higher Education
- 3.2K Blackbaud Education Management Solutions for K-12 Schools
- 937 Blackbaud Luminate Online® and Blackbaud TeamRaiser®
- 84 JustGiving® from Blackbaud®
- 6.5K Blackbaud Raiser's Edge NXT®
- 3.7K SKY Developer
- 247 ResearchPoint™
- 118 Blackbaud Tuition Management™
- 165 Organizational Best Practices
- 239 The Tap (Just for Fun)
- 33 Blackbaud Community Challenges
- 31 PowerUp Challenges
- 3 (Open) 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
- 783 Community News
- 2.9K Jobs Board
- 53 Blackbaud SKY® Reporting Announcements
- 47 Blackbaud CRM Higher Ed Product Advisory Group (HE PAG)
- 19 Blackbaud CRM Product Advisory Group (BBCRM PAG)
