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
Upon installing a virtualenv for the project and trying to run the entrypoint, after setting up the BEAMLINE env variable I get the following error:
(venv) (main) [ton99817@pc0094 htss-rig-bluesky]$ htss
/dls/science/users/ton99817/projects/htss-rig-bluesky/venv/lib/python3.10/site-packages/epicscorelibs/path/pyepics.py:18: UserWarning: epicscorelibs.path.pyepics must be imported before epics.ca to have effect
warnings.warn("epicscorelibs.path.pyepics must be imported before epics.ca to have effect")
Traceback (most recent call last):
File "/dls/science/users/ton99817/projects/htss-rig-bluesky/venv/lib/python3.10/site-packages/tiled/client/utils.py", line 18, in handle_error
response.raise_for_status()
File "/dls/science/users/ton99817/projects/htss-rig-bluesky/venv/lib/python3.10/site-packages/httpx/_models.py", line 749, in raise_for_status
raise HTTPStatusError(message, request=request, response=self)
httpx.HTTPStatusError: Client error '404 Not Found' for url 'http://bl48p-ea-serv-01.diamond.ac.uk:8000/api/v1/metadata/'
For more information check: https://httpstatuses.com/404
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/dls/science/users/ton99817/projects/htss-rig-bluesky/venv/bin/htss", line 8, in <module>
sys.exit(main())
File "/dls/science/users/ton99817/projects/htss-rig-bluesky/venv/lib/python3.10/site-packages/click/core.py", line 1157, in __call__
return self.main(*args, **kwargs)
File "/dls/science/users/ton99817/projects/htss-rig-bluesky/venv/lib/python3.10/site-packages/click/core.py", line 1078, in main
rv = self.invoke(ctx)
File "/dls/science/users/ton99817/projects/htss-rig-bluesky/venv/lib/python3.10/site-packages/click/core.py", line 1666, in invoke
rv = super().invoke(ctx)
File "/dls/science/users/ton99817/projects/htss-rig-bluesky/venv/lib/python3.10/site-packages/click/core.py", line 1434, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/dls/science/users/ton99817/projects/htss-rig-bluesky/venv/lib/python3.10/site-packages/click/core.py", line 783, in invoke
return __callback(*args, **kwargs)
File "/dls/science/users/ton99817/projects/htss-rig-bluesky/venv/lib/python3.10/site-packages/click/decorators.py", line 33, in new_func
return f(get_current_context(), *args, **kwargs)
File "/dls/science/users/ton99817/projects/htss-rig-bluesky/src/htss/__main__.py", line 16, in main
mod = importlib.import_module("htss.startup")
File "/dls_sw/apps/python/miniforge/4.10.0-0/envs/python3.10/lib/python3.10/importlib/__init__.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 1050, in _gcd_import
File "<frozen importlib._bootstrap>", line 1027, in _find_and_load
File "<frozen importlib._bootstrap>", line 1006, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 688, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 883, in exec_module
File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
File "/dls/science/users/ton99817/projects/htss-rig-bluesky/src/htss/startup.py", line 49, in <module>
tiled = get_client()
File "/dls/science/users/ton99817/projects/htss-rig-bluesky/src/htss/data_access.py", line 11, in get_client
return from_uri(f"http://{server_name()}:8000")
File "/dls/science/users/ton99817/projects/htss-rig-bluesky/venv/lib/python3.10/site-packages/tiled/client/constructors.py", line 69, in from_uri
return from_context(
File "/dls/science/users/ton99817/projects/htss-rig-bluesky/venv/lib/python3.10/site-packages/tiled/client/constructors.py", line 134, in from_context
content = handle_error(
File "/dls/science/users/ton99817/projects/htss-rig-bluesky/venv/lib/python3.10/site-packages/tiled/client/utils.py", line 33, in handle_error
raise ClientError(message, exc.request, exc.response) from exc
tiled.client.utils.ClientError: 404: Not Found http://bl48p-ea-serv-01.diamond.ac.uk:8000/api/v1/metadata/
Upon installing a virtualenv for the project and trying to run the entrypoint, after setting up the
BEAMLINE
env variable I get the following error:It seems like tiled has changed it's API, as now to access metadata we should be requesting
/api/v1/node/metadata
instead, e.g. for p48: http://bl48p-ea-serv-01.diamond.ac.uk:8000/docsBut my debugger is misbehaving in figuring out where in tiled this issue is occuring.
The text was updated successfully, but these errors were encountered: