Download results of Query with SAS URI
I am downloading a CSV file produced by the “Query execution job (Ad-hoc)” API. I get the SAS URI and I am able to download the file using a browser or curl, but not when I try it in a Groovy application.
I get the “403 Server failed to authenticate the request. Make sure the value of Authorization header is formed correctly including the signature.” which seems to be a common error with many causes.
Any ideas?
Comments
-
@Kenneth Staudt
As you said, the sas_uri if you copy it out and put in browser, you are able to download, so there's no problem with the process.I do not know what Groovy application is, but you should know that the sas_uri is not “live” forever. Currently the time limit is 15 min and it will expire, which may be the reason for your error.
SAS URI for accessing the query results. The URI functions as a secure credential to access the query results, and thus should be considered a secret unique value. Sharing this URI with anyone is strongly discouraged, and as a best practice, avoid persisting the URI beyond processing the job result. The URI will expire after 15 minutes.
https://developer.sky.blackbaud.com/api#api=query&operation=GetJob
0 -
@Alex Wong
Thanks Alex. I am definitely using the URL before the fifteen minutes are up.0 -
@Kenneth Staudt
the sas_uri is simply URL that requires no header or authentication info, as you can probably tell from when you attempt to use the url directly in a browser, so it should simply work. So the only issue lies then in what this Groovy application is.If you think it may be other “factors” you can try copying the link and use it in different browser, and before “hitting” enter after pasting the URL, open the browser's inspector, you can see if the “request” does anything “extra”.
If you know how to do programming in any other language, you can try to access the URL directly using another programming language to see if it works.
0
Categories
- All Categories
- 6 Blackbaud Community Help
- 208 bbcon®
- 1.4K Blackbaud Altru®
- 394 Blackbaud Award Management™ and Blackbaud Stewardship Management™
- 1.1K Blackbaud CRM™ and Blackbaud Internet Solutions™
- 15 donorCentrics®
- 359 Blackbaud eTapestry®
- 2.5K Blackbaud Financial Edge NXT®
- 646 Blackbaud Grantmaking™
- 563 Blackbaud Education Management Solutions for Higher Education
- 3.2K Blackbaud Education Management Solutions for K-12 Schools
- 934 Blackbaud Luminate Online® and Blackbaud TeamRaiser®
- 84 JustGiving® from Blackbaud®
- 6.4K Blackbaud Raiser's Edge NXT®
- 3.7K SKY Developer
- 242 ResearchPoint™
- 118 Blackbaud Tuition Management™
- 165 Organizational Best Practices
- 238 The Tap (Just for Fun)
- 33 Blackbaud Community Challenges
- 28 PowerUp Challenges
- 3 (Open) 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
- 779 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)
