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

Error 500 on /recovery/export when offline #323

Open
Landeers opened this issue Dec 6, 2023 · 0 comments
Open

Error 500 on /recovery/export when offline #323

Landeers opened this issue Dec 6, 2023 · 0 comments
Labels
bug Something isn't working client

Comments

@Landeers
Copy link
Contributor

Landeers commented Dec 6, 2023

2023-12-06T13:42:40 ERROR resana_secure.app - Exception on request POST /recovery/export
Traceback (most recent call last):
  File "parsec\core\backend_connection\transport.py", line 79, in _connect
  File "trio\_highlevel_open_tcp_stream.py", line 259, in open_tcp_stream
  File "trio\_socket.py", line 184, in getaddrinfo
  File "trio\_threads.py", line 227, in to_thread_run_sync
  File "trio\_core\_traps.py", line 172, in wait_task_rescheduled
  File "outcome\_impl.py", line 138, in unwrap
  File "trio\_threads.py", line 168, in do_release_then_return_result
  File "outcome\_impl.py", line 138, in unwrap
  File "trio\_threads.py", line 185, in worker_fn
  File "socket.py", line 954, in getaddrinfo
socket.gaierror: [Errno 11001] getaddrinfo failed

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

Traceback (most recent call last):
  File "parsec\core\backend_connection\expose_cmds.py", line 41, in wrapper
  File "contextlib.py", line 181, in __aenter__
  File "parsec\core\backend_connection\authenticated.py", line 645, in _acquire_transport
  File "parsec\core\backend_connection\authenticated.py", line 627, in _init_transport
  File "parsec\core\backend_connection\transport.py", line 64, in connect_as_authenticated
  File "parsec\core\backend_connection\transport.py", line 88, in _connect
_parsec.BackendNotAvailable: [Errno 11001] getaddrinfo failed

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "parsec\core\backend_connection\transport.py", line 79, in _connect
  File "trio\_highlevel_open_tcp_stream.py", line 259, in open_tcp_stream
  File "trio\_socket.py", line 184, in getaddrinfo
  File "trio\_threads.py", line 227, in to_thread_run_sync
  File "trio\_core\_traps.py", line 172, in wait_task_rescheduled
  File "outcome\_impl.py", line 138, in unwrap
  File "trio\_threads.py", line 168, in do_release_then_return_result
  File "outcome\_impl.py", line 138, in unwrap
  File "trio\_threads.py", line 185, in worker_fn
  File "socket.py", line 954, in getaddrinfo
socket.gaierror: [Errno 11001] getaddrinfo failed

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

Traceback (most recent call last):
  File "quart_trio\app.py", line 133, in handle_request
  File "quart_trio\app.py", line 161, in full_dispatch_request
  File "quart_trio\app.py", line 176, in handle_user_exception
  File "quart\app.py", line 1107, in handle_user_exception
  File "quart_trio\app.py", line 159, in full_dispatch_request
  File "quart\app.py", line 1718, in dispatch_request
  File "resana_secure\utils.py", line 100, in wrapper
  File "resana_secure\routes\recovery.py", line 83, in export_device
  File "parsec\core\recovery.py", line 79, in generate_recovery_device
  File "parsec\core\recovery.py", line 56, in _create_new_device_for_self
  File "parsec\core\backend_connection\expose_cmds.py", line 45, in wrapper
  File "contextlib.py", line 181, in __aenter__
  File "parsec\core\backend_connection\authenticated.py", line 645, in _acquire_transport
  File "parsec\core\backend_connection\authenticated.py", line 627, in _init_transport
  File "parsec\core\backend_connection\transport.py", line 64, in connect_as_authenticated
  File "parsec\core\backend_connection\transport.py", line 88, in _connect
_parsec.BackendNotAvailable: [Errno 11001] getaddrinfo failed

Should be a 503 error
{ "error": "offline" }

@Landeers Landeers added the client label Dec 6, 2023
@FirelightFlagboy FirelightFlagboy added the bug Something isn't working label Dec 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working client
Projects
None yet
Development

No branches or pull requests

2 participants