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've encountered an issue with Axios where it appears to be modifying the id field in a JSON response when the id field is nested inside a projects array. This behavior is unexpected and causes inconsistency in handling JSON responses.
To Reproduce
Steps to Reproduce:
Make a GET request to an API endpoint using Axios.
Ensure that the response contains a projects array with an id field nested inside.
Log the response data to the console.
Expected Behavior:
The id field within the projects array should remain unchanged and match the original value in the JSON response.
Actual Behavior:
Axios appears to modify the id field within the projects array. For example, if the original id value is 123, Axios may convert it to 124 or another modified value.
Describe the bug
I've encountered an issue with Axios where it appears to be modifying the id field in a JSON response when the id field is nested inside a projects array. This behavior is unexpected and causes inconsistency in handling JSON responses.
To Reproduce
Steps to Reproduce:
Expected Behavior:
The id field within the projects array should remain unchanged and match the original value in the JSON response.
Actual Behavior:
Axios appears to modify the id field within the projects array. For example, if the original id value is 123, Axios may convert it to 124 or another modified value.
Code snippet
Expected behavior
No response
Axios Version
1.4.0
Adapter Version
No response
Browser
No response
Browser Version
No response
Node.js Version
20.01, 16
OS
ubuntu 22
Additional Library Versions
No response
Additional context/Screenshots
No response
The text was updated successfully, but these errors were encountered: