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
{{ message }}
Repository navigation
Getting ECONNRESET Error: socket hang up error #75
This issue is because the library is pulling the URL apart and looking for the pieces it needs to reconstruct it when making a request.
The problem is, if it doesn't find a piece it will replace it with the default value. In this case, the default port is 8088.
Changing the url to (note the 443 port):
Activity
dkoloditch commentedon Aug 25, 2022
+1
dkoloditch commentedon Aug 26, 2022
@alok2k5ingh Here's an alternate solution using the
axioslibrary:bmccleave commentedon Sep 5, 2022
I've hit this issue when attempting publish to splunkcloud as well. I found the removing the port from the url here
splunk-javascript-logging/splunklogger.js
Line 440 in c3795ab
Here is the current line:
requestOptions.url = this.config.protocol + "://" + this.config.host + ":" + this.config.port + this.config.path;
Changing it to this resolved the issue for me:
requestOptions.url = this.config.protocol + "://" + this.config.host + this.config.path;
This is just a hack. Ideally there would be a configuration option to allow the URL to be explicitly passed without a port
serdalis commentedon Sep 7, 2022
This issue is because the library is pulling the URL apart and looking for the pieces it needs to reconstruct it when making a request.
The problem is, if it doesn't find a piece it will replace it with the default value. In this case, the default port is 8088.
Changing the url to (note the 443 port):
const splunkCollectorUrl = 'https://<yoursubdomain>.splunkcloud.com:443/services/collector/event'will fix the issue you're having.
The problem is from these lines:
splunk-javascript-logging/splunklogger.js
Line 235 in c3795ab
splunk-javascript-logging/splunklogger.js
Line 257 in c3795ab