Expand my Community achievements bar.

Submissions are now open for the 2026 Adobe Experience Maker Awards.

Workfront API in AWS Glue Job Returns HTML "Invalid Access Token" Instead of JSON and shows Json Decode Error.

Avatar

Level 1

I’ve been retrieving data from Workfront using both API key and Basic Auth. It works fine when I run the script locally, but when I run it inside an AWS Glue job, I get a JSONDecodeError.

 

On checking the response, it’s actually HTML with the message "Invalid access token" — even though the credentials are correct.

 

Has anyone faced this before? Could this be related to Glue’s environment, authentication method, or network configuration? Any guidance would be appreciated.

Topics

Topics help categorize Community content and increase your ability to discover relevant content.

2 Replies

Avatar

Community Advisor

Yetheshwar,

You've already answered your own query.  You had success using the Workfront API with its most common auth methods of API key an and Auth authentication.  I don't know AWS Glue or anything about it but it is likely infusing something it wants from the payload that WF has no idea what to do.  Sorry I couldn't be more helpful.

Avatar

Administrator

@Yetheshwar just checking in! Were you able to get this resolved? If one of the replies above helped—whether it completely solved the issue or simply pointed you in the right direction—marking it as accepted can make it much easier for others with the same question to find a solution. And if you found a different way to fix it, sharing your approach would be a great contribution to the community. Your follow-up not only helps close the loop but also ensures others benefit from your experience. Thanks so much for being part of the conversation!



Kautuk Sahni