[BUG]: error on v0.11.1 #73

Closed
opened 2025-07-08 08:39:18 -04:00 by AtHeartEngineer · 0 comments

Originally created by @rubenixnagios on 5/16/2025

Checklist

  • [X ] I have searched existing issues to make sure this bug hasn't already been reported.
  • [ X] I have checked the documentation at https://docs.endurain.com and didn't find a solution.

Description

Cannot Connect Endurain to Garmin

Steps to Reproduce

Click on Connect on Integrations option

Expected Behavior

Get connected to Garmin to get activities

Screenshots, logs or files

`
ERROR: Exception in ASGI application

  • Exception Group Traceback (most recent call last):
    | File "/usr/local/lib/python3.13/site-packages/starlette/_utils.py", line 76, in collapse_excgroups
    | yield
    | File "/usr/local/lib/python3.13/site-packages/starlette/middleware/base.py", line 177, in call
    | async with anyio.create_task_group() as task_group:
    | ~~~~~~~~~~~~~~~~~~~~~~~^^
    | File "/usr/local/lib/python3.13/site-packages/anyio/_backends/_asyncio.py", line 772, in aexit
    | raise BaseExceptionGroup(
    | "unhandled errors in a TaskGroup", self._exceptions
    | ) from None
    | ExceptionGroup: unhandled errors in a TaskGroup (1 sub-exception)
    +-+---------------- 1 ----------------
    | Traceback (most recent call last):
    | File "/usr/local/lib/python3.13/site-packages/uvicorn/protocols/http/h11_impl.py", line 403, in run_asgi
    | result = await app( # type: ignore[func-returns-value]
    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    | self.scope, self.receive, self.send
    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    | )
    | ^
    | File "/usr/local/lib/python3.13/site-packages/uvicorn/middleware/proxy_headers.py", line 60, in call
    | return await self.app(scope, receive, send)
    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    | File "/usr/local/lib/python3.13/site-packages/fastapi/applications.py", line 1054, in call
    | await super().call(scope, receive, send)
    | File "/usr/local/lib/python3.13/site-packages/starlette/applications.py", line 112, in call
    | await self.middleware_stack(scope, receive, send)
    | File "/usr/local/lib/python3.13/site-packages/starlette/middleware/errors.py", line 187, in call
    | raise exc
    | File "/usr/local/lib/python3.13/site-packages/starlette/middleware/errors.py", line 165, in call
    | await self.app(scope, receive, _send)
    | File "/usr/local/lib/python3.13/site-packages/opentelemetry/instrumentation/asgi/init.py", line 743, in call
    | await self.app(scope, otel_receive, otel_send)
    | File "/usr/local/lib/python3.13/site-packages/starlette/middleware/base.py", line 176, in call
    | with recv_stream, send_stream, collapse_excgroups():
    | ~~~~~~~~~~~~~~~~~~^^
    | File "/usr/local/lib/python3.13/contextlib.py", line 162, in exit
    | self.gen.throw(value)
    | ~~~~~~~~~~~~~~^^^^^^^
    | File "/usr/local/lib/python3.13/site-packages/starlette/_utils.py", line 82, in collapse_excgroups
    | raise exc
    | File "/usr/local/lib/python3.13/site-packages/starlette/middleware/base.py", line 178, in call
    | response = await self.dispatch_func(request, call_next)
    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    | File "/app/backend/session/schema.py", line 62, in dispatch
    | response = await call_next(request)
    | ^^^^^^^^^^^^^^^^^^^^^^^^
    | File "/usr/local/lib/python3.13/site-packages/starlette/middleware/base.py", line 156, in call_next
    | raise app_exc
    | File "/usr/local/lib/python3.13/site-packages/starlette/middleware/base.py", line 141, in coro
    | await self.app(scope, receive_or_disconnect, send_no_error)
    | File "/usr/local/lib/python3.13/site-packages/starlette/middleware/cors.py", line 93, in call
    | await self.simple_response(scope, receive, send, request_headers=headers)
    | File "/usr/local/lib/python3.13/site-packages/starlette/middleware/cors.py", line 144, in simple_response
    | await self.app(scope, receive, send)
    | File "/usr/local/lib/python3.13/site-packages/starlette/middleware/exceptions.py", line 62, in call
    | await wrap_app_handling_exceptions(self.app, conn)(scope, receive, send)
    | File "/usr/local/lib/python3.13/site-packages/starlette/_exception_handler.py", line 53, in wrapped_app
    | raise exc
    | File "/usr/local/lib/python3.13/site-packages/starlette/_exception_handler.py", line 42, in wrapped_app
    | await app(scope, receive, sender)
    | File "/usr/local/lib/python3.13/site-packages/starlette/routing.py", line 714, in call
    | await self.middleware_stack(scope, receive, send)
    | File "/usr/local/lib/python3.13/site-packages/starlette/routing.py", line 734, in app
    | await route.handle(scope, receive, send)
    | File "/usr/local/lib/python3.13/site-packages/starlette/routing.py", line 288, in handle
    | await self.app(scope, receive, send)
    | File "/usr/local/lib/python3.13/site-packages/starlette/routing.py", line 76, in app
    | await wrap_app_handling_exceptions(app, request)(scope, receive, send)
    | File "/usr/local/lib/python3.13/site-packages/starlette/_exception_handler.py", line 53, in wrapped_app
    | raise exc
    | File "/usr/local/lib/python3.13/site-packages/starlette/_exception_handler.py", line 42, in wrapped_app
    | await app(scope, receive, sender)
    | File "/usr/local/lib/python3.13/site-packages/starlette/routing.py", line 73, in app
    | response = await f(request)
    | ^^^^^^^^^^^^^^^^
    | File "/usr/local/lib/python3.13/site-packages/fastapi/routing.py", line 290, in app
    | async with AsyncExitStack() as async_exit_stack:
    | ~~~~~~~~~~~~~~^^
    | File "/usr/local/lib/python3.13/contextlib.py", line 768, in aexit
    | raise exc
    | File "/usr/local/lib/python3.13/contextlib.py", line 751, in aexit
    | cb_suppress = await cb(*exc_details)
    | ^^^^^^^^^^^^^^^^^^^^^^
    | File "/usr/local/lib/python3.13/contextlib.py", line 235, in aexit
    | await self.gen.athrow(value)
    | File "/usr/local/lib/python3.13/site-packages/fastapi/concurrency.py", line 30, in contextmanager_in_threadpool
    | await anyio.to_thread.run_sync(
    | cm.exit, type(e), e, e.traceback, limiter=exit_limiter
    | )
    | File "/usr/local/lib/python3.13/site-packages/anyio/to_thread.py", line 56, in run_sync
    | return await get_async_backend().run_sync_in_worker_thread(
    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    | func, args, abandon_on_cancel=abandon_on_cancel, limiter=limiter
    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    | )
    | ^
    | File "/usr/local/lib/python3.13/site-packages/anyio/_backends/_asyncio.py", line 2470, in run_sync_in_worker_thread
    | return await future
    | ^^^^^^^^^^^^
    | File "/usr/local/lib/python3.13/site-packages/anyio/_backends/_asyncio.py", line 967, in run
    | result = context.run(func, *args)
    | File "/usr/local/lib/python3.13/contextlib.py", line 195, in exit
    | exc.traceback = traceback
    | ^^^^^^^^^^^^^^^^^
    | File "", line 16, in setattr
    | dataclasses.FrozenInstanceError: cannot assign to field 'traceback'
    +------------------------------------
    `

Additional Context

*Originally created by @rubenixnagios on 5/16/2025* ## Checklist - [X ] I have searched **existing issues** to make sure this bug hasn't already been reported. - [ X] I have checked the **documentation** at [https://docs.endurain.com](https://docs.endurain.com) and didn't find a solution. ## Description Cannot Connect Endurain to Garmin ## Steps to Reproduce Click on Connect on Integrations option ## Expected Behavior Get connected to Garmin to get activities ## Screenshots, logs or files ` ERROR: Exception in ASGI application + Exception Group Traceback (most recent call last): | File "/usr/local/lib/python3.13/site-packages/starlette/_utils.py", line 76, in collapse_excgroups | yield | File "/usr/local/lib/python3.13/site-packages/starlette/middleware/base.py", line 177, in __call__ | async with anyio.create_task_group() as task_group: | ~~~~~~~~~~~~~~~~~~~~~~~^^ | File "/usr/local/lib/python3.13/site-packages/anyio/_backends/_asyncio.py", line 772, in __aexit__ | raise BaseExceptionGroup( | "unhandled errors in a TaskGroup", self._exceptions | ) from None | ExceptionGroup: unhandled errors in a TaskGroup (1 sub-exception) +-+---------------- 1 ---------------- | Traceback (most recent call last): | File "/usr/local/lib/python3.13/site-packages/uvicorn/protocols/http/h11_impl.py", line 403, in run_asgi | result = await app( # type: ignore[func-returns-value] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | self.scope, self.receive, self.send | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | ) | ^ | File "/usr/local/lib/python3.13/site-packages/uvicorn/middleware/proxy_headers.py", line 60, in __call__ | return await self.app(scope, receive, send) | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | File "/usr/local/lib/python3.13/site-packages/fastapi/applications.py", line 1054, in __call__ | await super().__call__(scope, receive, send) | File "/usr/local/lib/python3.13/site-packages/starlette/applications.py", line 112, in __call__ | await self.middleware_stack(scope, receive, send) | File "/usr/local/lib/python3.13/site-packages/starlette/middleware/errors.py", line 187, in __call__ | raise exc | File "/usr/local/lib/python3.13/site-packages/starlette/middleware/errors.py", line 165, in __call__ | await self.app(scope, receive, _send) | File "/usr/local/lib/python3.13/site-packages/opentelemetry/instrumentation/asgi/__init__.py", line 743, in __call__ | await self.app(scope, otel_receive, otel_send) | File "/usr/local/lib/python3.13/site-packages/starlette/middleware/base.py", line 176, in __call__ | with recv_stream, send_stream, collapse_excgroups(): | ~~~~~~~~~~~~~~~~~~^^ | File "/usr/local/lib/python3.13/contextlib.py", line 162, in __exit__ | self.gen.throw(value) | ~~~~~~~~~~~~~~^^^^^^^ | File "/usr/local/lib/python3.13/site-packages/starlette/_utils.py", line 82, in collapse_excgroups | raise exc | File "/usr/local/lib/python3.13/site-packages/starlette/middleware/base.py", line 178, in __call__ | response = await self.dispatch_func(request, call_next) | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | File "/app/backend/session/schema.py", line 62, in dispatch | response = await call_next(request) | ^^^^^^^^^^^^^^^^^^^^^^^^ | File "/usr/local/lib/python3.13/site-packages/starlette/middleware/base.py", line 156, in call_next | raise app_exc | File "/usr/local/lib/python3.13/site-packages/starlette/middleware/base.py", line 141, in coro | await self.app(scope, receive_or_disconnect, send_no_error) | File "/usr/local/lib/python3.13/site-packages/starlette/middleware/cors.py", line 93, in __call__ | await self.simple_response(scope, receive, send, request_headers=headers) | File "/usr/local/lib/python3.13/site-packages/starlette/middleware/cors.py", line 144, in simple_response | await self.app(scope, receive, send) | File "/usr/local/lib/python3.13/site-packages/starlette/middleware/exceptions.py", line 62, in __call__ | await wrap_app_handling_exceptions(self.app, conn)(scope, receive, send) | File "/usr/local/lib/python3.13/site-packages/starlette/_exception_handler.py", line 53, in wrapped_app | raise exc | File "/usr/local/lib/python3.13/site-packages/starlette/_exception_handler.py", line 42, in wrapped_app | await app(scope, receive, sender) | File "/usr/local/lib/python3.13/site-packages/starlette/routing.py", line 714, in __call__ | await self.middleware_stack(scope, receive, send) | File "/usr/local/lib/python3.13/site-packages/starlette/routing.py", line 734, in app | await route.handle(scope, receive, send) | File "/usr/local/lib/python3.13/site-packages/starlette/routing.py", line 288, in handle | await self.app(scope, receive, send) | File "/usr/local/lib/python3.13/site-packages/starlette/routing.py", line 76, in app | await wrap_app_handling_exceptions(app, request)(scope, receive, send) | File "/usr/local/lib/python3.13/site-packages/starlette/_exception_handler.py", line 53, in wrapped_app | raise exc | File "/usr/local/lib/python3.13/site-packages/starlette/_exception_handler.py", line 42, in wrapped_app | await app(scope, receive, sender) | File "/usr/local/lib/python3.13/site-packages/starlette/routing.py", line 73, in app | response = await f(request) | ^^^^^^^^^^^^^^^^ | File "/usr/local/lib/python3.13/site-packages/fastapi/routing.py", line 290, in app | async with AsyncExitStack() as async_exit_stack: | ~~~~~~~~~~~~~~^^ | File "/usr/local/lib/python3.13/contextlib.py", line 768, in __aexit__ | raise exc | File "/usr/local/lib/python3.13/contextlib.py", line 751, in __aexit__ | cb_suppress = await cb(*exc_details) | ^^^^^^^^^^^^^^^^^^^^^^ | File "/usr/local/lib/python3.13/contextlib.py", line 235, in __aexit__ | await self.gen.athrow(value) | File "/usr/local/lib/python3.13/site-packages/fastapi/concurrency.py", line 30, in contextmanager_in_threadpool | await anyio.to_thread.run_sync( | cm.__exit__, type(e), e, e.__traceback__, limiter=exit_limiter | ) | File "/usr/local/lib/python3.13/site-packages/anyio/to_thread.py", line 56, in run_sync | return await get_async_backend().run_sync_in_worker_thread( | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | func, args, abandon_on_cancel=abandon_on_cancel, limiter=limiter | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | ) | ^ | File "/usr/local/lib/python3.13/site-packages/anyio/_backends/_asyncio.py", line 2470, in run_sync_in_worker_thread | return await future | ^^^^^^^^^^^^ | File "/usr/local/lib/python3.13/site-packages/anyio/_backends/_asyncio.py", line 967, in run | result = context.run(func, *args) | File "/usr/local/lib/python3.13/contextlib.py", line 195, in __exit__ | exc.__traceback__ = traceback | ^^^^^^^^^^^^^^^^^ | File "<string>", line 16, in __setattr__ | dataclasses.FrozenInstanceError: cannot assign to field '__traceback__' +------------------------------------ ` ## Additional Context
AtHeartEngineer added the bugbugbugbugbugbugbugbugbugbugbugbugbugbugbug labels 2025-07-08 08:39:19 -04:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github/endurain#73