socket hang up Error axios Post request #5722
Unanswered
satishdhavan
asked this question in
Q&A
Replies: 1 comment
-
This is probably not related, but I've seen this error with axios as a result of a proxy misconfiguration - see #5741. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello All,
we are using axios version 1.3.4 in our project to make post request to server and frequently getting "Socket Hangup" Error immediately after the call, the response object doesn't populate with either response code or data.
const axios = require('axios');
const bossCossClient = axios.create({
httpsAgent: new https.Agent({
keepAlive: true
})
});
Could you let us know if there is an easy way to fix this error without having to retry the request
Beta Was this translation helpful? Give feedback.
All reactions