Skip to main content
Solved

I have 2 Agol web connections that have been working for about a year with no problems. They are set up using Oath 2 web apps. Recently one of them stopped getting refresh tokens and need to be re-authenticated every 2-3 hours.


Forum|alt.badge.img+1

I have debug logs and found that in the one that has stopped working the request is incomplete:

GET /sharing/rest/portals/self?f=json

The request in the other add the token:

GET /sharing/rest/portals/self?f=json&token=.....

Trying to determine if this is a problem on the AGOL side or FME side. Any ideas would be appreciated!

Also having the same issue on Desktop.

Best answer by bibold

Just follow-up to my original post - this was resolved. Network changes seemed to have started the problem and then moving some of the automations to the Staging Server brought on other issues. To quickly summarize, we had the network whitelist arcgis.com and also set the policy to 'By Pass Filtering and Authentication' . Then we removed the original AGOL web connection that comes with the FME Server installation. To resolve issues with FME Server's FmeConnection.exe hanging causing issue, we are using 2 AGOL OAuth 2.0 apps - one exclusively for our FME Server Prod and the other exclusively for FME Server Stage. No issues since then!

 

View original
Did this help you find an answer to your question?

5 replies

hkingsbury
Celebrity
Forum|alt.badge.img+54
  • Celebrity
  • July 2, 2023

Might be worth recreating your Oauth2 App in FME. If that doesn't work, create a new App in Agol (a pain, I know. But if you keep the name the same, then the FME processes using it won't care/notice)


Forum|alt.badge.img+1
  • Author
  • July 4, 2023

I did what you recommended. I have Fme Server Stage and FME Server Prod (both version 2022.0.1) . On the Fme Server Prod, the token needs to be re-authenticated every 30 minutes but on FME Server Stage the token does not expire and keeps refreshing. Both instance of FME Server have the same configuration. Does anyone know what could be causing the difference?


hkingsbury
Celebrity
Forum|alt.badge.img+54
  • Celebrity
  • July 4, 2023
bibold wrote:

I did what you recommended. I have Fme Server Stage and FME Server Prod (both version 2022.0.1) . On the Fme Server Prod, the token needs to be re-authenticated every 30 minutes but on FME Server Stage the token does not expire and keeps refreshing. Both instance of FME Server have the same configuration. Does anyone know what could be causing the difference?

Thats really weird. Might be worth reaching out to support on that one


Forum|alt.badge.img+1
  • Author
  • July 4, 2023
hkingsbury wrote:

Thats really weird. Might be worth reaching out to support on that one

Exactly what I did! I appreciate your help!


Forum|alt.badge.img+1
  • Author
  • Best Answer
  • July 28, 2023

Just follow-up to my original post - this was resolved. Network changes seemed to have started the problem and then moving some of the automations to the Staging Server brought on other issues. To quickly summarize, we had the network whitelist arcgis.com and also set the policy to 'By Pass Filtering and Authentication' . Then we removed the original AGOL web connection that comes with the FME Server installation. To resolve issues with FME Server's FmeConnection.exe hanging causing issue, we are using 2 AGOL OAuth 2.0 apps - one exclusively for our FME Server Prod and the other exclusively for FME Server Stage. No issues since then!

 


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings