Skip to content

Conversation

@pcrespov
Copy link
Member

@pcrespov pcrespov commented Sep 27, 2024

What do these changes do?

The e2e 3D visualization shows this error:

log_level=ERROR | log_timestamp=2024-09-30 09:09:09,916 | log_source=simcore_service_webserver.studies_dispatcher._studies_access:get_redirection_to_study_page(356) | log_uid=None | log_msg=Failed while copying project '[ISAN] 3D Visualization' to '[email protected]' [OEC:139795976177120]
Traceback (most recent call last):
  File "/lib/python3.11/site-packages/aiohttp/client_reqrep.py", line 899, in start
    message, payload = await protocol.read()  # type: ignore[union-attr]
                       ^^^^^^^^^^^^^^^^^^^^^
  File "/lib/python3.11/site-packages/aiohttp/streams.py", line 616, in read
    await self._waiter
  File "/lib/python3.11/site-packages/aiohttp/client_proto.py", line 213, in data_received
    messages, upgraded, tail = self._parser.feed_data(data)
                               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "aiohttp/_http_parser.pyx", line 557, in aiohttp._http_parser.HttpParser.feed_data
aiohttp.http_exceptions.BadHttpMessage: 400, message:
  Invalid header token:

    b'percent'
             ^

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/lib/python3.11/site-packages/simcore_service_webserver/studies_dispatcher/_studies_access.py", line 350, in get_redirection_to_study_page
    copied_project_id = await copy_study_to_account(request, template_project, user)
                        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/lib/python3.11/site-packages/simcore_service_webserver/studies_dispatcher/_studies_access.py", line 212, in copy_study_to_account
    await lr_task.result()
  File "/usr/local/lib/python3.11/concurrent/futures/_base.py", line 449, in result
    return self.__get_result()
           ^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/concurrent/futures/_base.py", line 401, in __get_result
    raise self._exception
  File "/lib/python3.11/site-packages/tenacity/asyncio/__init__.py", line 114, in __call__
    result = await fn(*args, **kwargs)
             ^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/lib/python3.11/site-packages/servicelib/aiohttp/long_running_tasks/client.py", line 81, in _task_result
    async with session.get(result_url) as response:
  File "/lib/python3.11/site-packages/aiohttp/client.py", line 1141, in __aenter__
    self._resp = await self._coro
                 ^^^^^^^^^^^^^^^^
  File "/lib/python3.11/site-packages/aiohttp/client.py", line 560, in _request
    await resp.start(conn)
  File "/lib/python3.11/site-packages/aiohttp/client_reqrep.py", line 901, in start
    raise ClientResponseError(
aiohttp.client_exceptions.ClientResponseError: 400, message="Invalid header token:

  b'percent'
           ^", url=URL('*/v0/futures/POST%2520%252Fv0%252Fsimcore-s3%252Ffolders%253Fuser_id%253D231026.12e6803e-c9f1-4ecd-9c14-eb1fbe88c5ac/result')
  • raised when receiving response from long-running-task /results entrypoint coming from storage
  • Can reproduce by just cloning the EM template in the GUI

Fixes

  • Show OEC in front-end (check with OM)

Related issue/s

  • e2e

How to test

Dev-ops checklist

@pcrespov pcrespov self-assigned this Sep 27, 2024
@pcrespov pcrespov changed the title WIP: fixing 3D e2e errors WIP: fixing 3D_em e2e errors Sep 27, 2024
@sonarqubecloud
Copy link

@pcrespov pcrespov added this to the MartinKippenberger milestone Sep 27, 2024
@pcrespov pcrespov added a:webserver webserver's codebase. Assigning the area is particularly useful for bugs a:storage issue related to storage service e2e Bugs found by or related to the end-2-end testing a:services-library issues on packages/service-libs and removed e2e Bugs found by or related to the end-2-end testing labels Sep 27, 2024
@matusdrobuliak66
Copy link
Collaborator

matusdrobuliak66 commented Nov 6, 2024

  • The issue was a corrupted file in the file metadata table. After removing rows that should not have been there and re-uploading the data.zip file, the file size and hash were corrected, and it started to work.
  • More info:
    image
    image
    image

@pcrespov pcrespov closed this Nov 6, 2024
@pcrespov pcrespov deleted the fix/e2e-3d-errors branch November 6, 2024 22:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

a:services-library issues on packages/service-libs a:storage issue related to storage service a:webserver webserver's codebase. Assigning the area is particularly useful for bugs

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants