-
Notifications
You must be signed in to change notification settings - Fork 594
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: do not throw unhandled exception when data is undefined in interceptor.reply #4036
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
CI seems failing |
I am not sure the CI failure relates to my changes? Or at least, it isn't clear for me that it would. Any pointers? |
Failures seems unrelated, are the same ones failing in other PRs (e.g. #4044) |
Hey @mcollina and @metcoder95, is there anything I can do to help progress this PR? |
It seems windows CI is utterly broken. I'm not keen on landing any changes until that's sorted, and I haven't had time yet. |
No worries at all. I entirely understand and I am not rushed in getting this out (we have worked around the behavior in our code-base, and don't need this change to unblock ourselves. I mainly just wanted to solve this for others that may encounter it). Just trying to follow up. Take your time, I might drive by to follow up a few times, with no bad intentions to put any kind of pressure to land this, I entirly understand and appreciate you even willing to put the time to look into this eventually. |
This relates to...
N/A
Rationale
See below (Bug Fixes)
Changes
See below (Bug Fixes)
Features
N/A
Bug Fixes
When interceptor.reply would return
{ data: undefined }
, it blows up ingetResponseData
:This got introduced here, more specifcally, this change
More specifically, in the before and after, data is not the same when it was undefined originally:
vs
As previously, when data was undefined,
''
would be passed togetResponseData
, andgetResponseData
would return''
, I ensured we now also return''
whendata
being passed togetResponseData
isundefined
.Breaking Changes and Deprecations
N/A
Status