cancel
Showing results for 
Search instead for 
Did you mean: 

Command line Utility upload error with proxy's self signed cert

grag042
Honored Guest
In the environment, we have a proxy that has a self signed cert. this causes an issue when trying to upload with the command line utility. is there an option to bypass the cert check or to trust the self signed cert?

Platform: OSX

Error log - this error repeats. 

2019-02-19T17:33:46.622Z [DEBUG] A network error occurred. The request will be retried.


2019-02-19T17:33:46.622Z [ERROR] Server log: {"app_id":2074348875920137,"log_level":"ERROR","event_name":"NETWORK_ERROR","stack_trace":"Error: self signed certificate in certificate chain\n    at Error (native)\n    at TLSSocket.<anonymous> (_tls_wrap.js:1060:38)\n    at emitNone (events.js:86:13)\n    at TLSSocket.emit (events.js:185:7)\n    at TLSSocket._finishInit (_tls_wrap.js:584:8)\n    at TLSWrap.ssl.onhandshakedone (_tls_wrap.js:416:38)","extra":"{\"options\":{\"method\":\"POST\",\"url\":\"https://graph.oculus.com/graphql\",\"qs\":{},\"formData\":{\"q\":\"node(1462426033810370){\\n    latest_binary {\\n      version,\\n      release_date,\\n      size,\\n      checksum_hash,\\n      uri,\\n    },\\n  }\"},\"json\":true,\"disableRetries\":false},\"os\":\"{\\\"platform\\\":\\\"darwin\\\",\\\"arch\\\":\\\"x64\\\",\\\"type\\\":\\\"Darwin\\\"}\",\"cli_version\":\"1.35.0.000001\",\"compatibility_version\":2}"}




2 REPLIES 2

Anonymous
Not applicable
You can bypass the certificate check by setting the environment variable NODE_TLS_REJECT_UNAUTHORIZED to 0. Keep in mind that this is quite dangerous.

grag042
Honored Guest
That does work as a work around. Thank you. I will keep looking for a better way to handle the proxy Cert.