node-jenkins
node-jenkins copied to clipboard
Issue when creating SPA
When using this package in standalone node scripts everything works as expected. However, when trying to use it to implement an SPA (I'm using React) it throws the following error:
Uncaught (in promise) TypeError: Cannot read property 'remoteAddress' of undefined
at module.exports.<anonymous> (client.js:535)
at module.exports.EventEmitter.emit (events.js:81)
at module.exports.ClientRequest._connect (request.js:247)
at request.js:140
at <anonymous>
Not sure what's causing it so I'm unsure if it's an issue with the node-jenkins package.