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 am working through an issue with making an axios call to an invalid URL. A simple mistake I made in my URL is that when importing I was accidentally importing an object as the URL and so the request URL looked something like this "[object]/blog" which is an invalid URL. The error that was thrown by axios had circular JSON and so I was getting a very unhelpful error thrown by express that it could not parse circular JSON. Axios should throw errors that are natively able to be stringified from JSON so that I can stringify the error. PR #1625 looked to have fixed this issue however it looks like the same issue is occurring that it was looking to fix.
Context
axios version: v0.18.0
Environment: node v10.6.0, macOS v10.14.1
The text was updated successfully, but these errors were encountered:
Summary
I am working through an issue with making an axios call to an invalid URL. A simple mistake I made in my URL is that when importing I was accidentally importing an object as the URL and so the request URL looked something like this "[object]/blog" which is an invalid URL. The error that was thrown by axios had circular JSON and so I was getting a very unhelpful error thrown by express that it could not parse circular JSON. Axios should throw errors that are natively able to be stringified from JSON so that I can stringify the error. PR #1625 looked to have fixed this issue however it looks like the same issue is occurring that it was looking to fix.
Context
The text was updated successfully, but these errors were encountered: