ConnectionError with viktor Storage

There seems to be an issue with viktor Storage. I get a connection error that it could not connect to the url… viktor_storage…

It seems to only be the case in my development environment.

Any ideas on how to fix, or is the also happening to other developers?

Thanks

This seems to have sorted itself out, and was possibly an issue caused by restarting the browser due to an update.

This is not resolved.
A colleage has had this issue now on a released version.

the error stack trace is as follows:

  File "viktor/core.pyx", line 1051, in viktor.core.File.getvalue
  File "viktor/core.pyx", line 1036, in viktor.core.File.open
  File "viktor/core.pyx", line 871, in viktor.core._URLFileManager.create_text_file
  File "viktor/core.pyx", line 713, in viktor.core._TextURLFile.__init__
  File "viktor/core.pyx", line 710, in viktor.core._TextURLFile.__init__
  File "viktor/core.pyx", line 611, in viktor.core._ResponseStream.__init__
  File "viktor/core.pyx", line 625, in viktor.core._ResponseStream._create_iterator
ConnectionError: Could not connect to url 'https://viktor-storage-eu1.s3.amazonaws.com/storage/vwi/fc0c56da-04d5-4abc-bf0d-20374ebc4e53?response-content-disposition=attachment%3B%20filename%3D%2207_dkmp32_7%252B70kr.000.gef%22&X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAZWJWJ6TMJGMQGN5X%2F20241120%2Feu-central-1%2Fs3%2Faws4_request&X-Amz-Date=20241120T131504Z&X-Amz-Expires=300&X-Amz-SignedHeaders=host&X-Amz-Signature=b64a0bc29cdff8c481620a885d8079da3435156ea7b745f0c09125ab1cf8b219'.

It also seems to happen when trying to run 6 files. it is fine with 1 to 5, but by 6 it breaks.

can anyone shed some light?

@guido.bongers
@Johan

Guido and Johan will be taking over this request in my absence

Hi!

In the meantime I’ve spoken with @NBouwman but for the record, I’ll post here as well:

  • We’ve seen quite some cases where the mechanism is actually that the Storage.set() fails (silently), and that only becomes evident during the .get() because the link is not pointing to a succesfully stored file.
  • We are tracking an issue internally to improve the error message when a .set fails
  • It might be a good low-hanging-fruit approach to split actions that might be performed lazily over multiple lines i.e. instead of Storage.set('key1', data=vkt.File.from_data(json_file.getvalue()) do this over two lines.