Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
1

Status 401: "Unauthorized", "message": "Oauth token is not valid"

Community Beginner ,
Jul 04, 2024 Jul 04, 2024

Dear All,

 

I am creating a simple single page mobile app built using SAP MDK which creates a PDF document from .docx template using merge API. However, after recieing the bearer token when I make my call to  

"response": {
                    "status": 401,
                    "statusText": "UNAUTHORIZED",
 
 "text": "{ \"error\": { \"code\": \"Unauthorized\", \"message\": \"Oauth token is not valid\", \"details\": { \"error_code\": \"401013\" } } }\n".
My Code:
geetBijlani_0-1720097041294.pnggeetBijlani_1-1720097204927.pnggeetBijlani_2-1720097279651.png

 

 
But still I get the unauthorized error. 
Note: The same credentials /token work from Postman and some other Low code no code tools like SAP BUILD Apps. 
 
Best Regards,
Geet
 
1.2K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe Employee ,
Jul 08, 2024 Jul 08, 2024

The URL  you are using to make an asset does not seem to match what we've documented here, https://developer.adobe.com/document-services/docs/apis/#tag/Assets, specifically: https://pdf-services-ue1.adobe.io/assets

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Jul 12, 2024 Jul 12, 2024

Hi Raymond,

Please let me know if I am looking at the wrong place.

geetBijlani_0-1720770650978.png

This is what I see here and used the same.

 

Best Regards,

Geet

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe Employee ,
Jul 12, 2024 Jul 12, 2024
LATEST

No, use the endpoint get the access token from here: https://developer.adobe.com/document-services/docs/apis/#tag/Generate-Token

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources