Skip to main content
nupoorg186699
January 9, 2024
Question

Integration fails when token expires

  • January 9, 2024
  • 9 replies
  • 0 views

Hi Team,

An integration object is created with OAuth 2.0 authentication, every time the connected system is authenticated, then the integration works for 1hour and after that the integration fails. Please let me know if anyone faced similar issue and how to resolve this.

9 replies

stefanhelzle0001
January 9, 2024

What kind of API is that?

When there is an issue with authorization, it should return a 401, but not a 500.

I suggest to get in contact with the API development team to discuss this issue.

nupoorg186699
January 9, 2024

When POST method is used, then it is giving 500 error and when changed to GET, then 401, maybe we need to connect with the API team to resolve

rishikeshr4182
January 10, 2024

500 is for Internet server error at server side. Might be there is an issue with server.

bilalq8990
January 10, 2024

How about calling a get access token integration object and writing the access token to a table. When running the above integration you get the latest row from the access token table. If the integration fails then get a new token, write to the db and query the table? See example below:

stefanhelzle0001
January 10, 2024

Because Appian would manage that automatically.

https://docs.appian.com/suite/help/23.4/oauth_client_credentials.html#access-token-expiration

But implementations and configurations vary .... talk to the teams developing the APIs and managing the access management systems.

nupoorg186699
January 10, 2024

It's fixed, issue was from the API team.

December 11, 2024

I am exactly facing this issue , pls let me know ,  what Is the resolution how API fix the issue how they change this to 401 errors code ,whether Appian gen new token after that . Any help is much appreciated  ?