Closed yveskalume closed 2 years ago
Any updates?
@vj-codes have you tried sending the request without an active internet connection while testing?
@YvesKalume any updates here?
@epicadk calling httpException.response()?.errorBody()?.string()
is returning HTML instead of JSON.
The value of the response variable after calling this is
<html>
<head>
<title>Internal Server Error</title>
</head>
<body>
<h1><p>Internal Server Error</p></h1>
</body>
</html>
I think we can just return an instance of CustomResponse
with the error message in the constructor instead of using gson :
replace return gson.fromJson(response.toString(), CustomResponse::class.java)
with return CustomResponse(response.toString())
@YvesKalume closing the PR due to inactivity. Thank you for your contribution:)
Description
Fixes #1175
Type of Change:
Code/Quality Assurance Only
How Has This Been Tested?
open the app > go to Sign Up screen > complete the informations > click on Sign Up button > and see the error message without the app crashing
Checklist: