x-socket-id header default causing issues.
See original GitHub issueWhy is the X-Socket-Id
set per default?
This causes a shitload of problems with most API’s and it would be more beneficial to add it whenever you need to call a socket endpoint, rather than to remove it when it causes problems.
The Github API for example does not allow it in their preflight response. For Axios I have to do this all over the place now:
axios.get('user/repos', {
transformRequest: [function (data, headers) {
delete headers['X-Socket-Id'];
return data;
}]
})
Issue Analytics
- State:
- Created 6 years ago
- Reactions:5
- Comments:19 (1 by maintainers)
Top Results From Across the Web
socket.io-client how to set request header when making ...
Headers are only provided when the connection is over http(s) which is always true for the initial handshake. After that, if the client/server...
Read more >Troubleshooting connection issues | Socket.IO
You are trying to reach a plain WebSocket server; The server is not reachable; The client is not compatible with the version of...
Read more >TCP/IP port exhaustion troubleshooting - Windows Client
Learn how to troubleshoot port exhaustion issues. Port exhaustion occurs when all the ports on a machine are used.
Read more >Java Secure Socket Extension (JSSE) Reference Guide
Get the default factory by calling the SSLSocketFactory. ... If you have trouble using or configuring the JSSE application to use Kerberos, ...
Read more >socket
Specifying a protocol of 0 causes socket() to use an unspecified default ... can be used for the domain argument are defined in...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Temporary workaround is to just unset this header like this:
After creating new Echo’s instance.
i have same issue using axios