Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using sentry-cli uploaded soucemaps and always alert "error: API request failed and SSL connect error" #1921

Closed
oliver3109 opened this issue Jan 30, 2024 · 9 comments

Comments

@oliver3109
Copy link

oliver3109 commented Jan 30, 2024

image

Using sentry-cli uploaded soucemaps and always alert:
error: API request failed
caused by: [35] SSL connect error (Server aborted the SSL handshake)

Environment:
node: v18.19.0
npm: v10.2.3
@sentry/cli: 2.26.0
@sentry/webpack-plugin: 2.10.3

OS:
Apple M3 Max macOS Sonoma

@szokeasaurusrex
Copy link
Member

@ChihYungChang based on the error message, it seems that there may be an issue with your network connection or proxy configuration (if you are using a proxy).

Please try running the command that produced the error again, in case the problem has resolved itself. If the problem is still ongoing, please run the following command to confirm whether there is a network issue:

$ curl -X POST https://sentry.io/api/0/projects/pixel-order/qingtian-xr/releases/

If above command produces the same error message as the sentry-cli command, then there is most likely a network problem. Otherwise, please let me know what the output from the curl command is, so I can better understand what is going on.

@oliver3109
Copy link
Author

@szokeasaurusrex image

@szokeasaurusrex
Copy link
Member

@ChihYungChang I think you probably have some issue with your network setup, since the error message you observe from the curl command indicates that there is some problem connecting with the server. When I run the same command, I receive the following output:

user@host ~ % curl -X POST https://sentry.io/api/0/projects/pixel-order/qingtian-xr/releases/
{"detail":"Authentication credentials were not provided."}

My output indicates that I was able to reach the server, since the server replied that my authentication credentials were missing, which is expected because this curl command makes an empty POST request.

I would recommend checking your system's and network's proxy and firewall settings to check whether they may be blocking you from accessing our server. You could also try using a different network.

@oliver3109
Copy link
Author

@szokeasaurusrex
If I activate the global proxy, it becomes as follows:
image

@szokeasaurusrex
Copy link
Member

As long as your output for the curl command is different from mine, you most likely still have a problem with your network configuration because any other error message would indicate that you are unable to connect with the sentry.io server.

Unfortunately, it is extremely difficult for me to assist with resolving this problem, since it is likely specific to your network configuration, which I am unfamiliar with. If you continue to struggle debugging this problem, I would suggest reaching out to your network administrator, since they are the ones who would be able to help you.

@oliver3109
Copy link
Author

Oh! I have resolved it, the Mac console did not go through proxy requests.

Need to be in ~/.zshrc, configure the following proxy address:

export https_proxy=http://127.0.0.1:xxxx http_proxy=http://127.0.0.1:xxxx all_proxy=socks5://127.0.0.1:xxxx 
image

@szokeasaurusrex
Copy link
Member

Okay, is the Sentry CLI working now? @ChihYungChang

@oliver3109
Copy link
Author

Perfect, Everything is normal.

@szokeasaurusrex
Copy link
Member

Great, then I will close the issue!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

No branches or pull requests

2 participants