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
actors.get_client() returns a base url with a trailing slash, which doesn't work for listing endpoints, ex:
from tapipy import actors, util, errors
from tapipy.tapis import Tapis
def main() -> None:
context = actors.get_context()
t = actors.get_client()
files = t.files.listFiles(systemId='frontera', path='/work2/05369/urrutia/frontera/inputs/')
Traceback (most recent call last):
File "/opt/reactor.py", line 47, in <module>
main()
File "/opt/reactor.py", line 18, in main
files=t.files.listFiles(systemId='frontera', path='/work2/05369/urrutia/frontera/inputs/')
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/tapipy/tapis.py", line 1218, in __call__
raise errors.NotFoundError(msg=error_msg, version=version, request=r, response=resp)
tapipy.errors.NotFoundError: message: HTTP 404 Not Found
(and indeed that directory exists on this tenant)
We'll need to strip away the trailing slash on _abaco_api_server, ex:
actors.get_client() returns a base url with a trailing slash, which doesn't work for listing endpoints, ex:
(and indeed that directory exists on this tenant)
We'll need to strip away the trailing slash on
_abaco_api_server
, ex:https://github.com/tapis-project/tapipy/blob/main/tapipy/actors.py#L23C70-L23C70
The text was updated successfully, but these errors were encountered: