Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
nscm network debugging

nscm network debugging

HTTP(S)_PROXY env vars

$ set | grep -i HTTP

print nscm config

$ nscm config list
concurrency = 15
clientId = <redacted>
authProxy = nodesource.registry.nodesource.io
redirectUri = https://platform.nodesource.io/pkce
authDomain = nodesource.auth0.com
registry = https://$TEAM_ID.registry.nodesource.io
token = <redacted>

debug nscm command

$ DEBUG=* nscm whitelist list
nscm:tools { url: 'https://$TEAM_ID.registry.nodesource.io/api/v1/whitelist',
nscm:tools   method: 'GET',
...    

curl registry proxy

also try "http:"

$ curl -v https://$TEAM_ID.registry.nodesource.io
...
< HTTP/1.1 401 Unauthorized
< npm-notice: login with your NodeSource Certified Modules email and password
< WWW-Authenticate: Bearer

wget registry proxy

also try "http:"

$ wget --save-headers -v -O - https://$TEAM_ID.registry.nodesource.io/-/ping
...
HTTP/1.1 200 OK
Date: Wed, 28 Mar 2018 12:52:22 GMT
Content-Type: application/json; charset=utf-8    

ping registry proxy

also try "http:"

$ curl -v https://$TEAM_ID.registry.nodesource.io/-/ping
...
{}
@alex-nodesource

This comment has been minimized.

Copy link

@alex-nodesource alex-nodesource commented Apr 12, 2018

Adding - formatted for Windows wget and should give us more info

wget -d --header="Content-Type: application/json" --body-data="{\"email\":\"alex@example.com\",\"password\":\"mypassword\"}" --method POST -q -O - https://nodesource.registry.nodesource.io/-/signin -S

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.