Requests failed when DoT/Private DNS enabled
Describe the bug Requests like listing, suggestions, fetching assets failed when DoT/Private DNS is enabled.
To Reproduce
- Open app
- Wait for app to list images/videos.
- Type anything in search bar and wait for suggestions.
- Open one of images and wait for it to load.
Expected behavior Images and videos listed successfully, suggestions appeared when typing in search bar, and images load successfully.
Screenshots
Platform
- Device: Samsung Galaxy A10
- OS: Android 11
- Version 19.0.1
Hi,
does the site load for you normally in your mobile browser when said private DNS is enabled?
@clragon It loads normally with Private DNS enabled.
I am unfortunately unable to reproduce this.
Using 1.1.1.1 on OS level, the app still loads fine for me.
Do you happen to know what message the requests are rejected with, in the Logs section of the App?
They can be found at Swipe Left to Right Sidebar -> Settings -> Scroll to bottom -> Logs
@clragon I have this issue too, where for me it doesn't load when I am logged into my account, the anonymous user posts load just fine with private dns
Here's my log
FINE | 14:34:51.041 | Routes: /settings was pushed
FINE | 14:34:50.756 | Dio: <<< Response │ GET │ 200 OK │ https://api.github.com/repos/clragon/e1547/releases
╔ Body ════════════════════════════════════════════════════════════════════════════════════╗
║
║ [{url: https://api.github.com/repos/clragon/e1547/releases/200582283, assets_url: https://api.github.com/repos/clragon/e1547/releases/200582283/assets, upload_url: https://uploads.github.com/repos/clragon/e1547/releases/200582283/assets{?name,label}, html_url: https://github.com/clragon/e1547/releases/tag/20.0.0%2B95, id: 200582283, author: {login: github-actions[bot], id: 41898282, node_id: MDM6Qm90NDE4OTgyODI=, avatar_url: https://avatars.githubusercontent.com/in/15368?v=4, gravatar_id: , url: https://api.github.com/users/github-actions%5Bbot%5D, html_url: https://github.com/apps/github-actions, followers_url: https://api.github.com/users/github-actions%5Bbot%5D/followers, following_url: https://api.github.com/users/github-actions%5Bbot%5D/following{/other_user}, gists_url: https://api.github.com/users/github-actions%5Bbot%5D/gists{/gist_id}, starred_url: https://api.github.com/users/github-actions%5Bbot%5D/starred{/owner}{/repo}, subscriptions_url: https://api.github.com/users/gi
║
╚══════════════════════════════════════════════════════════════════════════════════════════╝
FINE | 14:34:50.017 | Dio: >>> Request │ GET │ https://api.github.com/repos/clragon/e1547/releases
SEVERE | 14:34:49.283 | Dio: <<< DioError (No response) │ GET │ https://e621.net/posts.json?page=1&limit&tags=incineroar
╔ ERROR ═══════════════════════════════════════════════════════════════════════════════════╗
║
║ The connection errored: Connection reset by peer This indicates an error which most likely cannot be solved by the library.
║
╚══════════════════════════════════════════════════════════════════════════════════════════╝
FINE | 14:34:49.186 | Dio: >>> Request │ GET │ https://e621.net/posts.json?page=1&limit&tags=incineroar
SHOUT | 14:34:47.728 | Flutter: DioException [connection error]: The connection errored: Connection reset by peer This indicates an error which most likely cannot be solved by the library.
Error: SocketException: Connection reset by peer (OS Error: Connection reset by peer, errno = 104), address = e621.net, port = 46370
╔ Data ════════════════════════════════════════════════════════════════════════════════════╗
║
║ DioException [connection error]: The connection errored: Connection reset by peer This indicates an error which most likely cannot be solved by the library.
║ Error: SocketException: Connection reset by peer (OS Error: Connection reset by peer, errno = 104), address = e621.net, port = 46370
║
╚══════════════════════════════════════════════════════════════════════════════════════════╝
╔ Stacktrace ══════════════════════════════════════════════════════════════════════════════╗
║
║ #0 DioMixin.fetch (package:dio/src/dio_mixin.dart:520)
║ <asynchronous suspension>
║ #1 E621AccountService.get.<anonymous closure> (package:e1547/integrations/e621/account.dart:37)
║ <asynchronous suspension>
║ #2 E621AccountService.get (package:e1547/integrations/e621/account.dart:27)
║ <asynchronous suspension>
║
║
╚══════════════════════════════════════════════════════════════════════════════════════════╝
SEVERE | 14:34:47.727 | Dio: <<< DioError (No response) │ GET │ https://e621.net/users/rebloom.json
╔ ERROR ═══════════════════════════════════════════════════════════════════════════════════╗
║
║ The connection errored: Connection reset by peer This indicates an error which most likely cannot be solved by the library.
║
╚══════════════════════════════════════════════════════════════════════════════════════════╝
SEVERE | 14:34:47.726 | Dio: <<< DioError (No response) │ GET │ https://e621.net
╔ ERROR ═══════════════════════════════════════════════════════════════════════════════════╗
║
║ The connection errored: Connection reset by peer This indicates an error which most likely cannot be solved by the library.
║
╚══════════════════════════════════════════════════════════════════════════════════════════╝
SEVERE | 14:34:47.726 | Dio: <<< DioError (No response) │ GET │ https://e621.net/posts.json?page=1&limit&tags=incineroar
╔ ERROR ═══════════════════════════════════════════════════════════════════════════════════╗
║
║ The connection errored: Connection reset by peer This indicates an error which most likely cannot be solved by the library.
║
╚══════════════════════════════════════════════════════════════════════════════════════════╝
INFO | 14:34:47.618 | E621FollowSync#187097308: Sync finished!
FINE | 14:34:47.618 | E621FollowSync#187097308: Syncing 0 follows...
FINE | 14:34:47.613 | Dio: >>> Request │ GET │ https://e621.net/users/rebloom.json
FINE | 14:34:47.610 | Dio: >>> Request │ GET │ https://e621.net
FINE | 14:34:47.598 | Routes: / was pushed
INFO | 14:34:47.596 | E621FollowSync#187097308: Sync started for rebloom on https://e621.net
FINE | 14:34:47.468 | IsolateSetup: Initialized background tasks
had to use vpn now..
I assumed it does that because the server closed the connection unexpectedly, which makes the connection invalid and user can't retrieve any information from e621. The solution to this is probably to perform re-request on the API several times until it errors out.
I am able to use the app just fine with DoT enabled. depending on what country you're in, this could be your ISP/government blocking DoT. if you can use a VPN to route your traffic to another country and enable DoT and see if that works.
Without being able to reproduce this and it most likely being a issue of internet routing rather than one with the app itself, I will close this issue now. If you believe there is something we can do to fix this on our side, please make a new issue. Thanks!