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.
Discussion posts and replies are publicly visible
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.
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
500 is for Internet server error at server side. Might be there is an issue with server.
Post and Get are two different types and depend on the API. We cannot choose between the two. This has to be the same as the API configurations.
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:
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.
It's fixed, issue was from the API team.