Dev Space

Customize and extend the power of Alteryx with SDKs, APIs, custom tools, and more.
SOLVED

Need support on API call

AndrewCrayford
8 - Asteroid

I am using the Alteryx API client to trigger a workflow execution.

 

I am facing a unique problem related to oauth_signature

 

Normally 60% of the API calls return success on the first time call. But some of them fail and return UnauthorizedException  error with “The provided signature(oauth_signature) is invalid”

 

Response HTTP Code: 401
Response Message: {"data":null,"exceptionName":"UnauthorizedException","innerExceptionMessage":"","message":"The provided signature(oauth_signature) is invalid."}

 

If I re-execute the call within a second or two, it would run successfully. But there are 5% of the calls which would fail on second call as well with the same error returned.

 

Want to understand what could be the reason as the oauth signature generation code is same every time with change in Nonce and Timestamp.

 

The API client is written in JAVA 8.

 

Alteryx-api.JPG

10 REPLIES 10
saraA
5 - Atom

How you use the code ? pleasw help