I'm trying to run my discord bot on Replit, but I keep running into this error #2450
Unanswered
emp86472
asked this question in
Questions and Help
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
This is the error below
[JDA RateLimit-Worker 1] ERROR Requester - There was an I/O error while executing a REST request: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
I have 2 replits, one using gradle and another using maven. I thought for some reason it would work on one but not the other. I do get the same error message for both.
Here are the links to both public replits:
https://replit.com/@synrg/jda-mvn#.replit
https://replit.com/@synrg/jda-gradle#
You can view the entire error message by running the replit projects
Other useful stuff:
I think this error may be related to this user's post:
DiscordSRV/DiscordSRV#997
The answer they recieved:
"More specifically the reason is an outdated CA-Certificate-Store.
Either update your java installation (which will also bring a fresh CA Cert list) or manually add the certificate, e.g. by following the first advise here:" https://stackoverflow.com/questions/21076179/pkix-path-building-failed-and-unable-to-find-valid-certification-path-to-requ
So based on this I have to obtain the SSL certificate of the server. I can do it by opening the URL in a web browser and exporting the SSL certificate from the browser's certificate store. And then import the SSL certificate into my Java keystore on replit.
Where can I find the URL?
There are steps for importing the certificate on my local machine, but how would I do that on Replit?
I'm a student, and I barely understand any of this. Any help would be greatly appreciated!
Beta Was this translation helpful? Give feedback.
All reactions