Skip to content

How to get response data when status 401? (error handling) #850

Answered by qkreltms
qkreltms asked this question in General
Discussion options

You must be logged in to vote

It was because of this

// axios interceptors
instance.interceptors.response.use(undefined, (error) => { }

When I deleted this it works what I expected

    onError: (err) => {
      console.log('err', err.response) 
    },

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by qkreltms
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
1 participant