question

newuser-4c9c005c-4f8f-49c1-8fd2-0c560db889e0 avatar image

Why is this error displaying on ask init?

After going to the login and successfully entering user credentials on ask init. The browser says: "Sign in was successful. Close this browser and return to the command line interface." However, when I look at the CLI I receive an error. : " [Error]: Cannot obtain access token. Error: unable to get local issuer certificate." What could be causing this error?

ask cli
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Ron Wang avatar image
Ron Wang answered

Hi!

Thank you for posting! This error message seems not from CLI itself, but more like you have some special settings with your proxy. Quoted from https://github.com/nodejs/node/issues/3742, "The error itself just means that a TLS certificate in the chain is signed by an unknown CA, presumably the cert your proxy uses."

I suggest you to check your proxy settings, switch network environment, and also try setting NODE_TLS_REJECT_UNAUTHORIZED to 0, which is mentioned in https://github.com/Microsoft/vscode/issues/1862.

Let me know if those two posts help!

Thanks,

Ron

10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Amazon_Bernardo Bezerra avatar image
Amazon_Bernardo Bezerra answered

Hi and thanks for your message.

Are you still facing this issue? Can you please share what is the version of ASK CLI you are currently using?

Regards,
Barry

10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

newuser-4c9c005c-4f8f-49c1-8fd2-0c560db889e0 avatar image
newuser-4c9c005c-4f8f-49c1-8fd2-0c560db889e0 answered

Thank you for the information. This confirms my suspicion!

10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

newuser-4c9c005c-4f8f-49c1-8fd2-0c560db889e0 avatar image
newuser-4c9c005c-4f8f-49c1-8fd2-0c560db889e0 answered

This issue was resolved when my company allowed *.amazon.com certificates through our firewall rather than replacing it with our own.

10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.