SSL Error for WSS

i am getting ssl error unable to get local issuer certificate while connecting to a wss. it works fine when running in local. it used to work fine so far on railway too. suddenly stopped working
32 Replies
Percy
Percy2y ago
Project ID: N/A
Percy
Percy2y ago
⚠️ experimental feature
sebastiantf
sebastiantfOP2y ago
N/A I dont have a custom domain any misconfiguration in railway?
Brody
Brody2y ago
whats the domain youre getting the ssl error from? it didnt
sebastiantf
sebastiantfOP2y ago
wss://eth-mainnet.g.alchemy.com/<api_key>
Brody
Brody2y ago
Cloudflare config issue
sebastiantf
sebastiantfOP2y ago
anything i should change?
Brody
Brody2y ago
Idk cloudflare has a lot of options surrounding SSL, play around
sebastiantf
sebastiantfOP2y ago
but i am not using cloudflare for anything do you mean the url i am connecting to?
Brody
Brody2y ago
eth-mainnet.g.alchemy.com is registered on cloudflare
sebastiantf
sebastiantfOP2y ago
it works when connecting from local tho
Brody
Brody2y ago
what ws library
sebastiantf
sebastiantfOP2y ago
ethers - Rust
Complete Ethereum & Celo library and wallet implementation.
Brody
Brody2y ago
oh thats not even your domain please be more clear in your questions
sebastiantf
sebastiantfOP2y ago
oh no. thats not my domain. its just the ws endpoint that i'm connecting to from the rust application that i'm running on railway my application doesnt have any domain
Brody
Brody2y ago
i get it now
sebastiantf
sebastiantfOP2y ago
i tried setting the autogenerated domain. its still the same with that too
Brody
Brody2y ago
though this would be an issue with the crate / code, not specifically railway
sebastiantf
sebastiantfOP2y ago
i dont think so tbh, its working in local. and it used to work fine before too on railway itself not sure what changed
Brody
Brody2y ago
railway hasnt changed anything with the rust provider itself, they've only bumped base images, try to rollback to a known working deployment and let me know how it goes
sebastiantf
sebastiantfOP2y ago
hmm an older version seem to be working fine i'll check whats going wrong
Brody
Brody2y ago
now would that be running the same codebase as you are now, or have you since made changes?
sebastiantf
sebastiantfOP2y ago
an older version of the same codebase is running. newer version of the codebase is failing
Brody
Brody2y ago
older version of codebase, and not just a rollback?
sebastiantf
sebastiantfOP2y ago
i didnt try a rollback. i dont really know which deployment i had to rollback to
Brody
Brody2y ago
okay just reverted github or however that works on github?
sebastiantf
sebastiantfOP2y ago
not on github. just on my local. switched to another branch and railway up
Brody
Brody2y ago
well i guess that does mean its a code issue then, if a earlier version of your code works
sebastiantf
sebastiantfOP2y ago
yeah guess so. looking into it
Brody
Brody2y ago
alright, good luck!
sebastiantf
sebastiantfOP2y ago
it was because the docker container was missing ca-certificates added this and fixed:
RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y ca-certificates
RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y ca-certificates
Brody
Brody2y ago
You where building your own Dockerfile, you should have said that!!!
Want results from more Discord servers?
Add your server