You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
However, due to circular resource loading logic, the service_url getter method returns ._url as a default because trying to load ._service_url results in an attribute error.
Likewise, trying to use ._service_url directly in in the ScienceBaseResource._get method causes an AttributeError and resource loading fails.
This issue can be observed in 1589ea8, which contains a shim to work around it. Without the extra call to self.service_url, it will end up using ._url to try generate an ArcGIS server token.
The text was updated successfully, but these errors were encountered:
Some SB datasets use an ArcGIS service hosted on a server other than `sciencebase.gov` and so tokens need to be generated based on the service URL and not the resource URL.
Note this fix contains a shim to work around issue #2.
The
._get
method of ScienceBase resource needs to accessself.service_url
in order to correctly generate (or not) an ArcGIS server token:However, due to circular resource loading logic, the
service_url
getter method returns._url
as a default because trying to load._service_url
results in an attribute error.Likewise, trying to use
._service_url
directly in in theScienceBaseResource._get
method causes anAttributeError
and resource loading fails.This issue can be observed in 1589ea8, which contains a shim to work around it. Without the extra call to
self.service_url
, it will end up using._url
to try generate an ArcGIS server token.The text was updated successfully, but these errors were encountered: