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
Making a request without URL (config.url being undefined, null or an empty string) is very likely bug in the application using axios. It would help finding these if axios could fail fast (before calling the adapter).
This behavior can only be implemented with request interceptors if it can be ensured that the interceptor containing the check
is the last one (because other request interceptors may set the URL)
Summary
Making a request without URL (
config.url
beingundefined
,null
or an empty string) is very likely bug in the application using axios. It would help finding these if axios could fail fast (before calling the adapter).This behavior can only be implemented with request interceptors if it can be ensured that the interceptor containing the check
I'd like to suggest adding the following code in https://github.com/axios/axios/blob/v0.18.0/lib/core/dispatchRequest.js#L57:
Context
The text was updated successfully, but these errors were encountered: