hello. can anyone here help with this by any chanc...
# ios
a
hello. can anyone here help with this by any chance ? https://kotlinlang.slack.com/archives/C3PQML5NU/p1728384726477019
f
You can try/catch the Apollo request. it throws an error when it can’t communicate to the server.
A GraphQL response can’t have an http code different than 200 by design.
a
I managed to do it, but casting the throwable to an ApolloNEtworkException and then checking if either IOException or NSError and it worked ... but thanks for the info, i did not know that about GQL, the 200 response code.
f
a
oh, so only 4 error types. wow. good to know
😄