mawaqit / android-tv-app

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

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

Closed sentry-io[bot] closed 2 months ago

sentry-io[bot] commented 5 months 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 5 months 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

ibrahim-zehhaf-mawaqit commented 4 months ago

Still present in the last version v1.11.2

YassinNouh21 commented 4 months ago

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

ibrahim-zehhaf-mawaqit commented 4 months ago

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