Hello,
Some strange thing is going on in fme server. Sometime Web Connection is working and some time getting failed.
Product Used :-
FME Server 2018.0.1.1 - Build 18312 - win64
ArcGIS Online
Steps I have used to setup communication between FME server and AGOL.
1. I have created app in ArcGIS online and taken its Client id , Client Secret & registered my fme server redirect uri there.
2. Created my own web service from ESRI ArcGIS online and updated Client id , Client Secret & Redirect Uri ( ).
3. Created new Web Connection using above Web Service.Then test it and authorized it.
4. Created new workbench which uses AGOL feature reader and used above web connection to communicate(after checking in desktop upload to FME server with my authorized web connection).
5. Re-authorize web connection in FME Server
6. Scheduled Workbench for every 30 minutes. So here is the problem my workbench sometimes work ok and sometimes it is getting failed (error - Python Exception <HTTPError>: 401 Client Error: Unauthorized for url: https://www.arcgis.com/sharing/rest/portals/self?f=json&token;=UOq3X6bKO6NJwMxlG30RoLv7fqHsmGKfJuL4PEejxlm8hjQHsa6iKlolmH5VBrlSCjbUDI0q-HRggK4mQbnIf7s2LWMno5lpAiN6ER28vV9VQexdHL7ikyfMl80lV7j7XNVcnHa8ZnkoOXCzwRn20fzL5VvK6_uPAi9C9mCnG_k419FAbbpwL7o4wlI8V3ukig18h16-8rjIx5HD-l-Qi1YjIaA6I1j4oYr3BolhhmZsne9HtOcUU6NilmUfyVTJ)
7. Snap of a FME server Jobs Log to give you an idea how often it is getting failed .
By seeing the error it seems that refresh token or authorization code itself getting expired but as per the architecture OAUTH2.0 it should refresh itself without any problem. Once my workbench start crashing in FME server then I use to authorize manually in FME server to make it running but after sometimes same problem pops up.
It will be great if somebody can give me some clarity around this or any suggestions .
Thanks In Advance