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
  • I understand very well the problem and the work that it can represent, it seems fair to me. I did not expect it to be corrected in a hurry, I have already thought about finding a workaround. The proposed solution seems right to me. If an error occurs during image processing, I think that it sould not be a client error (4xx) but a server error (5xx) or a custom code (like 0xx). If you decide to use 5xx code, I think it is a bad idea to use standard code like 500 that can be already used by the server. I propose you can use non-standard code like 520+ code. I'll let you brainstorm about the most appropriate solution for your product. I am at your disposal to help you or if you need more informations. Please keep me informed of the progress of an hypothetical fix Thank you
Comment
  • I understand very well the problem and the work that it can represent, it seems fair to me. I did not expect it to be corrected in a hurry, I have already thought about finding a workaround. The proposed solution seems right to me. If an error occurs during image processing, I think that it sould not be a client error (4xx) but a server error (5xx) or a custom code (like 0xx). If you decide to use 5xx code, I think it is a bad idea to use standard code like 500 that can be already used by the server. I propose you can use non-standard code like 520+ code. I'll let you brainstorm about the most appropriate solution for your product. I am at your disposal to help you or if you need more informations. Please keep me informed of the progress of an hypothetical fix Thank you
Children
No Data