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

Unable to complete TLS handshake: SSL operation failed with code 1 #8

Closed
Weissnix4711 opened this issue Dec 16, 2020 · 6 comments
Closed

Comments

@Weissnix4711
Copy link

Weissnix4711 commented Dec 16, 2020

Bot does not come online. Checking logs, this error appears: Unable to complete TLS handshake: SSL operation failed with code 1.

Full error below.

[2020-12-16T20:23:08.860126+00:00] DiscordPHP.HTTP.DEBUG: REQ GET https://discord.com/api/v6/gateway/bot queued [] []
[2020-12-16T20:23:08.869674+00:00] DiscordPHP.HTTP.WARNING: REQ GET https://discord.com/api/v6/gateway/bot failed: Connection to discord.com:443 failed during TLS handshake: Unable to complete TLS handshake: SSL operation failed with code 1. OpenSSL Error messages: error:1416F086:SSL routines:tls_process_server_certificate:certificate verify failed [] []
[2020-12-16T20:23:08.869719+00:00] DiscordPHP.WARNING: could not retrieve gateway, using default [] []
[2020-12-16T20:23:08.869742+00:00] DiscordPHP.INFO: gateway retrieved and set {"gateway":"wss://gateway.discord.gg/?v=6&encoding=json","session":{"total":1000,"remaining":1000,"reset_after":0,"max_concurrency":1}} []
[2020-12-16T20:23:08.869762+00:00] DiscordPHP.INFO: starting connection to websocket {"gateway":"wss://gateway.discord.gg/?v=6&encoding=json"} []
[2020-12-16T20:23:08.876393+00:00] DiscordPHP.ERROR: websocket error {"e":"Connection to gateway.discord.gg:443 failed during TLS handshake: Unable to complete TLS handshake: SSL operation failed with code 1. OpenSSL Error messages: error:1416F086:SSL routines:tls_process_server_certificate:certificate verify failed"} []
@JaxkDev
Copy link
Member

JaxkDev commented Dec 16, 2020

Are you using a server host ?
This is due to configuration on php’s end is not correct/present, there are ways around it but not possible without modifying vendor/ so It’s not public

link #2

@Weissnix4711
Copy link
Author

I host on my own Pterodactyl Panel instance.

Could you describe in simple terms what needs to be modified?

@JaxkDev

This comment was marked as outdated.

@Weissnix4711
Copy link
Author

Do you happen to have a precompiled version? I can't get pthreads working on Debian.

@JaxkDev
Copy link
Member

JaxkDev commented Dec 18, 2020

I don't have one that's anywhere near use-able and i don't fancy providing any insecure releases, you shouldnt need pthreads to build the phar, just don't install dev dependencies composer install --no-dev

@Weissnix4711
Copy link
Author

I'm not sure why, but running composer install is fine, yet when BUILD.php runs composer update, it moans because of no pthreads extension. Removing that line and it builds successfully.

Thank you very much.

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

No branches or pull requests

2 participants