App doesn't show that the network error is the DNS lookup failure #508

Open
opened 2024-05-22 11:16:23 +03:00 by inex · 0 comments

Expected Behavior

During server installation or recovery, if the network request to the provider's API, app shows that it is a network error, and that it is a DNS lookup failure.

Actual Behavior

It just shows "Couldn't connect to the provider" and doesn't let you to press "Continue" unless you change something in the input field.
image

Steps to Reproduce

  1. Start installing a server
  2. Somehow have problems with resolving api.hetzner.cloud
  3. Try to insert a correct token to the Hetzner field

Context and notes

Probably related to the russian censorship?

Relevant log output

[  +79 ms] I/flutter ( 9870): 
[        ] I/flutter ( 9870): ╔╣ Request ║ GET 
[        ] I/flutter ( 9870): ║  https://api.hetzner.cloud/v1/servers
[        ] I/flutter ( 9870): ╚══════════════════════════════════════════════════════════════════════════════════════════╝
[ +371 ms] I/flutter ( 9870): 
[        ] I/flutter ( 9870): ╔╣ DioError ║ DioExceptionType.connectionError
[        ] I/flutter ( 9870): ║  The connection errored: Failed host lookup: 'api.hetzner.cloud' This indicates an error which most likely cannot be solved by the library.
[        ] I/flutter ( 9870): ╚══════════════════════════════════════════════════════════════════════════════════════════╝
[   +1 ms] I/flutter ( 9870): /servers
[        ] I/flutter ( 9870): null
[        ] I/flutter ( 9870): The connection errored: Failed host lookup: 'api.hetzner.cloud' This indicates an error which most likely cannot be solved by the library.
[        ] I/flutter ( 9870): null
[        ] I/flutter ( 9870): DioException [connection error]: The connection errored: Failed host lookup: 'api.hetzner.cloud' This indicates an error which most likely cannot be solved by the library.
[        ] I/flutter ( 9870): Error: SocketException: Failed host lookup: 'api.hetzner.cloud' (OS Error: No address associated with hostname, errno = 7)
[log] DioException [connection error]: The connection errored: Failed host lookup: 'api.hetzner.cloud' This indicates an error which most likely cannot be solved by the library.
Error: SocketException: Failed host lookup: 'api.hetzner.cloud' (OS Error: No address associated with hostname, errno = 7)

App Version

inex/april-refactor

Server API Version

No response

Operating System

Android

### Expected Behavior During server installation or recovery, if the network request to the provider's API, app shows that it is a network error, and that it is a DNS lookup failure. ### Actual Behavior It just shows "Couldn't connect to the provider" and doesn't let you to press "Continue" unless you change something in the input field. ![image](/attachments/79376b73-8ae0-4641-8aa3-f48e66df9a68) ### Steps to Reproduce 1. Start installing a server 2. Somehow have problems with resolving `api.hetzner.cloud` 3. Try to insert a correct token to the Hetzner field ### Context and notes Probably related to the russian censorship? ### Relevant log output ```shell [ +79 ms] I/flutter ( 9870): [ ] I/flutter ( 9870): ╔╣ Request ║ GET [ ] I/flutter ( 9870): ║ https://api.hetzner.cloud/v1/servers [ ] I/flutter ( 9870): ╚══════════════════════════════════════════════════════════════════════════════════════════╝ [ +371 ms] I/flutter ( 9870): [ ] I/flutter ( 9870): ╔╣ DioError ║ DioExceptionType.connectionError [ ] I/flutter ( 9870): ║ The connection errored: Failed host lookup: 'api.hetzner.cloud' This indicates an error which most likely cannot be solved by the library. [ ] I/flutter ( 9870): ╚══════════════════════════════════════════════════════════════════════════════════════════╝ [ +1 ms] I/flutter ( 9870): /servers [ ] I/flutter ( 9870): null [ ] I/flutter ( 9870): The connection errored: Failed host lookup: 'api.hetzner.cloud' This indicates an error which most likely cannot be solved by the library. [ ] I/flutter ( 9870): null [ ] I/flutter ( 9870): DioException [connection error]: The connection errored: Failed host lookup: 'api.hetzner.cloud' This indicates an error which most likely cannot be solved by the library. [ ] I/flutter ( 9870): Error: SocketException: Failed host lookup: 'api.hetzner.cloud' (OS Error: No address associated with hostname, errno = 7) [log] DioException [connection error]: The connection errored: Failed host lookup: 'api.hetzner.cloud' This indicates an error which most likely cannot be solved by the library. Error: SocketException: Failed host lookup: 'api.hetzner.cloud' (OS Error: No address associated with hostname, errno = 7) ``` ### App Version inex/april-refactor ### Server API Version _No response_ ### Operating System Android
inex added the
Bug
label 2024-05-22 11:16:23 +03:00
Sign in to join this conversation.
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: SelfPrivacy/selfprivacy.org.app#508
There is no content yet.