You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm attempting to use the component for an asynchronous REST service, where the /status endpoint will respond with 202 and an empty response body until the service eventually succeeds.
However, since the response function evaluates Body.json(), I'm suspecting the polling stops on an unhandled error. Perhaps the function should guard with a test for non-empty body before evaluating Body.json()?
The text was updated successfully, but these errors were encountered:
I am also facing this issue, I am receiving plain text response from an API successfully, but the library is considering it as failure. It triggers onFailure after receiving the success response 200.
Hey @asgeirn and @qtcoder999 , apologies for the delay. The last couple of months have been really hectic in terms of work.
But I am hoping latest release v1.0.7 will address all your concerns.
Thank you for creating this issue and I hope the new release is helpful.
Please try it and let me know if it fixes your issue.
react-polling/src/ReactPolling.js
Line 127 in 6a807c2
I'm attempting to use the component for an asynchronous REST service, where the
/status
endpoint will respond with202
and an empty response body until the service eventually succeeds.However, since the response function evaluates
Body.json()
, I'm suspecting the polling stops on an unhandled error. Perhaps the function should guard with a test for non-empty body before evaluatingBody.json()
?The text was updated successfully, but these errors were encountered: