Skip to main content

I am having trouble connecting to my external  Microsoft Oauth 2 secured REST API using Xtentions . I was able to add the Xtension successfully also added the connection and the DataSource successfully but when I try to data lookup the DataSource  I am getting “Service unavailable” on the browser console and the data does not load.  

How do I troubleshoot this issue. 

 

Error message on the browser console
 

 

Hello @Lotshwao ,

Does the connector work in the workflow to retrieve data?

 

Also, did you add the offline token in the swagger definition?
https://help.nintex.com/en-US/xtensions/04_Reference/Tutorials/OAuth.htm?tocpath=Connect%20and%20authenticate%7C_____3#Ensuring
Important:  Using a refresh token may require a specific scope, such as `offline_access`. You will need to define this scope in your security definition to use the refresh token. Refer to the documentation for your API for more details.

 

If you find the connect works just after registering and then after some time, it doesn’t work - you might find the token is not getting refreshed. This is usually caused as the offline_access hasn’t been specified.

 

If this is not the case, you might need to get some help from the Professional Services team as custom xtensions can get quite tricky with authentication.


Reply