screeps-typescript-starter icon indicating copy to clipboard operation
screeps-typescript-starter copied to clipboard

push not working through proxy

Open Pillarish opened this issue 7 years ago • 4 comments
trafficstars

When I try to push I get this error:

node:744) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): FetchError: request to https://screeps.com:443/api/user/branches? failed, reason: read ECONNRESET

I can only assume this is because I am behind a proxy, is there any way of adding proxy info to the config file to allow this to work?

Pillarish avatar Jun 08 '18 08:06 Pillarish

Done a bit of research into this and it looks like node's http doesn't really support proxies. I'll do some more research into it and let you know but I'm not that hopeful.

Arcath avatar Jun 11 '18 09:06 Arcath

Will be interesting to see what you come up with, normally node would use either the environment variables for HTTP_PROXY or HTTPS_PROXY, or the npm config setting for http-proxy or https-proxy. That's how I've got everything else working through the proxy but for some reason rollup doesn't seem to use the same settings.

Pillarish avatar Jun 12 '18 07:06 Pillarish

I'm having same issue on a corporate laptop and it's a huge bummer that I cannot use this as main dev station and have to use much worse personal laptop :(

rudykocur avatar May 06 '21 15:05 rudykocur

I believe this would be more accurately described as an improvement for the node-screeps-api project which handles the low level websocket connections.

pyrodogg avatar May 09 '21 18:05 pyrodogg