Skip to content

Instantly share code, notes, and snippets.

@pmuellr
Last active April 12, 2018 20:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pmuellr/2a701707c331ad0addc4cbca14c7a1a3 to your computer and use it in GitHub Desktop.
Save pmuellr/2a701707c331ad0addc4cbca14c7a1a3 to your computer and use it in GitHub Desktop.
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
Copy link

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