Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deal with TTL for DCOR basin-based feature data #244

Open
paulmueller opened this issue Dec 29, 2023 · 1 comment
Open

Deal with TTL for DCOR basin-based feature data #244

paulmueller opened this issue Dec 29, 2023 · 1 comment
Labels

Comments

@paulmueller
Copy link
Member

The dcserv version 2 API generates a pre-signed URL for accessing a resource via the HTTP format. However, this pre-signed URL as a finite lifetime after which it becomes invalid. The DCOR file format should identify the lifetime and replace the basins automatically upon expiration.

@paulmueller
Copy link
Member Author

paulmueller commented Jan 9, 2024

Here is one of the error messages that may appear in Shape-Out 2 after the presigned-url times out.

Unhandled exception in Shape-Out version 2.15.0:
Traceback (most recent call last):
  File "/home/paul/repos/ShapeOut2/shapeout2/gui/quick_view/qv_main.py", line 367, in on_event_scatter_hover
    cellimg, imkw = self.get_event_image(self.rtdc_ds, event)
  File "/home/paul/repos/ShapeOut2/shapeout2/gui/quick_view/qv_main.py", line 261, in get_event_image
    cellimg = ds["image"][event]
  File "/home/paul/repos/dclab/dclab/rtdc_dataset/fmt_hierarchy/events.py", line 51, in __getitem__
    return hp[self.feat][pidx]
  File "h5py/_objects.pyx", line 54, in h5py._objects.with_phil.wrapper
  File "h5py/_objects.pyx", line 55, in h5py._objects.with_phil.wrapper
  File "/home/paul/repos/ShapeOut2/.env/lib/python3.10/site-packages/h5py/_hl/dataset.py", line 758, in __getitem__
    return self._fast_reader.read(args)
  File "h5py/_selector.pyx", line 376, in h5py._selector.Reader.read
OSError: Can't read data (wrong B-tree signature)

@paulmueller paulmueller added the bug label Jan 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant