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

Format ExceptionGroup traceback #6919

Merged
merged 1 commit into from
Feb 23, 2024
Merged

Format ExceptionGroup traceback #6919

merged 1 commit into from
Feb 23, 2024

Conversation

fantix
Copy link
Member

@fantix fantix commented Feb 23, 2024

2 errors in the ExceptionGroup:

edgedb error: InternalServerError: cannot fetch database version: ExceptionGroup: unhandled errors in a TaskGroup (2 sub-exceptions)
  Hint: This is most likely a bug in EdgeDB. Please consider opening an issue ticket at https://github.com/edgedb/edgedb/issues/new?template=bug_report.md
  Server traceback:
        | ExceptionGroup: unhandled errors in a TaskGroup (2 sub-exceptions)
        +-+---------------- 1 ----------------
          | Traceback (most recent call last):
          |   File "edb/server/protocol/binary.pyx", line 861, in err
          |     1/0
          | ZeroDivisionError: float division
          +---------------- 2 ----------------
          | Traceback (most recent call last):
          |   File "edb/server/protocol/binary.pyx", line 861, in err
          |     1/0
          | ZeroDivisionError: float division
          +------------------------------------

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

      Traceback (most recent call last):
        File "edb/server/protocol/binary.pyx", line 999, in edb.server.protocol.binary.EdgeConnection.main_step
          await self.execute()
        File "edb/server/protocol/binary.pyx", line 863, in execute
          async with asyncio.TaskGroup() as g:
        File "asyncio/taskgroups.py", line 145, in __aexit__
          raise me from None
      edb.errors.InternalServerError: ExceptionGroup: unhandled errors in a TaskGroup (2 sub-exceptions)

1 error in the ExceptionGroup:

edgedb error: InternalServerError: cannot fetch database version: ZeroDivisionError: float division
  Hint: This is most likely a bug in EdgeDB. Please consider opening an issue ticket at https://github.com/edgedb/edgedb/issues/new?template=bug_report.md
  Server traceback:
      Traceback (most recent call last):
        File "edb/server/protocol/binary.pyx", line 861, in err
          1/0
      edb.errors.InternalServerError: ZeroDivisionError: float division

@fantix fantix requested review from elprans and msullivan February 23, 2024 21:50
@fantix fantix merged commit e4484de into master Feb 23, 2024
23 checks passed
@fantix fantix deleted the ex-group-tb branch February 23, 2024 23:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants