Ticket Created
over 5 years ago

WERETECH-8758

Wrong response code when using makeImageRequest

Hi,

I'm using the makeImageRequest to request some image.

Sometimes, the server returns a 401 status code but the value of the response code in the callback is 404.

As long as there is this problem, I don't know how to differentiate errors.

Please note that in spite of a very close signature, there is no problem with the markeWebRequest method.

Best regards,

Parents
  • This occurs with the ConnectIQ simulator (I just test with forerunner 235, fenix 6S Pro and vivoactiv 4). I can reproduce the error with other status code like 403 or 500. In the HTTP Traffic logs, the response code is OK (I can see 401,403, or 500) but response code in the callback is still 404 As you demand, I also check on my watch (forerunner 235), but this time have an unknown error (response code=0) with these different status code from the server (401,403 or 500)
Comment
  • This occurs with the ConnectIQ simulator (I just test with forerunner 235, fenix 6S Pro and vivoactiv 4). I can reproduce the error with other status code like 403 or 500. In the HTTP Traffic logs, the response code is OK (I can see 401,403, or 500) but response code in the callback is still 404 As you demand, I also check on my watch (forerunner 235), but this time have an unknown error (response code=0) with these different status code from the server (401,403 or 500)
Children
No Data