question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Possible server federation check bug

See original GitHub issue

I’m attempting to run queryFeatures on a feature service in devext (ie https://servicesdev.arcgis.com/orgId/arcgis/rest/services/test/FeatureServer/0), but I ran into a possible federation issue.

UserSession.getTokenForServer checks the owningSystemUrl property, which in this case is https://devext.arcgis.com. However, my portal is set to https://devext.arcgis.com/sharing/rest, so the urls don’t match and a NOT_FEDERATED error is returned. I’m assuming the check on the owningSystemUrl should accept my portal in this case.

Relevant code (specifically line 703): https://github.com/Esri/arcgis-rest-js/blob/834ad79632f40c3d1abedf017d202a184bb25db3/packages/arcgis-rest-auth/src/UserSession.ts#L701-L709

cc @patrickarlt @jgravois

Note: This won’t be an issue for the servicesdev domain after https://github.com/Esri/arcgis-rest-js/pull/245 is released, since getToken will correctly recognize servicesdev as an arcgis.com server.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
noahmulfingercommented, Jul 27, 2018

@jgravois You’re right, I looked at it again and the actual issue is that the owningSystemUrl was http://... whereas the portal was https://.... That’s what caused the regex failure.

1reaction
noahmulfingercommented, Jul 27, 2018

@jgravois It will get resolved for servicedev.arcgis.com in the next release, but I wanted to point out more generally that when the portal is https://my.server.com/sharing/rest and the owningSystemUrl is https://my.server.arcgis.com, the NOT_FEDERATED error will be returned. That seems incorrect to me.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Federated schema checks - Apollo GraphQL Docs
Whenever you make changes to a subgraph schema, running rover subgraph check helps ensure that all your subgraph schemas still compose to a...
Read more >
Verify That a Federation Server Is Operational | Microsoft Learn
Log on to the new federation server as an administrator. · On the Start screen, type Event Viewer, and then press ENTER. ·...
Read more >
Troubleshooting Security Center Federation™ - 5.11
To check the status of the server, open Config Tool, ... If the Security Center Federation™ role shows a Connection failed error message, ......
Read more >
Federation: Troubleshooting data source connection errors - IBM
A test connection to the data source server might return an error for several reasons. ... There are several possible causes for a...
Read more >
Problem: Federated servers are not listed in the Hosting ...
Configure the portal to trust the server's SSL certificate · Configure ArcGIS Server with a relational data store · Define the server's host...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found