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

DioException: DioException [bad response]: This exception was thrown because the response has a status code of ... #1159

Open
sentry-io bot opened this issue May 22, 2024 · 4 comments · Fixed by #1162
Assignees
Labels
Milestone

Comments

@sentry-io
Copy link

sentry-io bot commented May 22, 2024

Sentry Issue: ANDROIDTV-3E

DioException: DioException [bad response]: This exception was thrown because the response has a status code of 404 and RequestOptions.validateStatus was configured to throw for this status code.
The status code of 404 has the following meaning: "Client error - the request contains bad syntax or cannot be fulfilled"
Read more about status codes at https://developer.mozilla.org/en-US/docs/Web/HTTP/Status
In order to resolve this exception you typically have either to verify and fix your request code or you have to fix the server code.
  File "mosque_manager.dart", line 145, in MosqueManager.fetchMosque.onItemError
...
(18 additional frame(s) were not displayed)
@YassinNouh21
Copy link
Contributor

when checking for the internet and dio is not connected to internet the same error code is appeared which is 404 which makes the mosque not found in the offline mode

@ibrahim-zehhaf-mawaqit
Copy link
Contributor

Still present in the last version v1.11.2

@YassinNouh21
Copy link
Contributor

@ibrahim-zehhaf-mawaqit could u please tell me how did u find this error when ?

@ibrahim-zehhaf-mawaqit
Copy link
Contributor

I don't know I just get this error from sentry

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants