-
Notifications
You must be signed in to change notification settings - Fork 322
Proxy Not Renewing Token #545
Comments
I've been working with @juicetiger1 on this issue. Here are my testing notes if it helps address the issue: Notes:
<serverUrl url="https://citymaps.peterborough.ca/arcgis/rest/services/PtboLocatorLocateApp/GeocodeServer"
matchAll="true"
tokenServiceUri="https://citymaps.peterborough.ca/portal/sharing/rest/generateToken"
username="XXXXX"
password="XXXXX"
/>
|
On another, slightly related note, I've also found that some error responses have been missed because they contain a space before and after the colon and should be checked, like so:
|
Are you able to send the copyHeadersToResponse function as well? Thanks |
I've made no changes here, other than re-arranging the code. I simply extracted all of the header-setting code at the top of the method into its own method and moved it below the authentication checking code. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. If you need additional assistance please contact Esri Technical Support. Thank you for your contributions. |
This issue has been automatically closed due to inactivity. If you need additional assistance please contact Esri Technical Support. |
|
I am having an issue where I can get a token and the application functions properly. But after the 1 hour expiry elapses the token is not renewed by the resource proxy.
We have been able to determine the issue (with the help of ESRI support) in the code at line 213 in proxy.jsp, where the code is checking for specific error codes.
This string used to check the error code is not being decoded and appears in a "wing-ding" format and the error codes are not found. If the error code is not found the renew token function is not triggered.
I have not been able to reproduce this error on other systems that use the resource proxy and it is only occurring with this application.
Here is a (modified) copy of the proxy.config we are using:
The text was updated successfully, but these errors were encountered: