Skip to main content
Participant
March 26, 2023
Question

[ object aggregate ] error on making a 'GET' request to a server

  • March 26, 2023
  • 2 replies
  • 427 views

Hello community,

 

I have been trying to write a JavaScript extension which makes a 'GET' request to a server by passing Access token in the headers in Adobe Acrobat professional. I tried executing the folder level script but it gave an 

"Failed to get: ({error:600, text:"Authorization is required for this network service", type:"NetworkError"}) error in console. I tried looking for it online but could not found anything helpful. The issue is with the request which is not able to authorize and fetch data.

Thanks.

This topic has been closed for replies.

2 replies

Thom Parker
Community Expert
Community Expert
March 26, 2023

The message appears to be from the server, not Acrobat. Apparently the authorization data passed in the header is incorrect. Or perhaps the way you've passed it is incorrect.  

Is the web service yours? If not, you'll need to contact the provider to get more infomation from them?   

 

 

Thom Parker - Software Developer at PDFScriptingUse the Acrobat JavaScript Reference early and often
Participant
March 27, 2023

I copied the url from console and ran it in curl and it gave results while in adobe it gave the above mentioned error. 

 

cURL: {URL} --header "Authentication: Bearer {Access Token}"

 

Thanks!

bebarth
Community Expert
Community Expert
March 26, 2023