mawaqit / android-tv-app

Prayer times App for Android TV
https://mawaqit.net
Other
34 stars 15 forks source link

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

Open sentry-io[bot] opened 1 month ago

sentry-io[bot] commented 1 month ago

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 commented 3 weeks ago

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