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
Percy17mo ago
Project ID: N/A
Percy
Percy17mo ago
⚠️ experimental feature
sebastiantf
sebastiantf17mo ago
N/A I dont have a custom domain any misconfiguration in railway?
Brody
Brody17mo ago
whats the domain youre getting the ssl error from? it didnt
sebastiantf
sebastiantf17mo ago
wss://eth-mainnet.g.alchemy.com/<api_key>
Brody
Brody17mo ago
Cloudflare config issue
sebastiantf
sebastiantf17mo ago
anything i should change?
Brody
Brody17mo ago
Idk cloudflare has a lot of options surrounding SSL, play around
sebastiantf
sebastiantf17mo ago
but i am not using cloudflare for anything do you mean the url i am connecting to?
Brody
Brody17mo ago
eth-mainnet.g.alchemy.com is registered on cloudflare
sebastiantf
sebastiantf17mo ago
it works when connecting from local tho
Brody
Brody17mo ago
what ws library
sebastiantf
sebastiantf17mo ago
ethers - Rust
Complete Ethereum & Celo library and wallet implementation.
Brody
Brody17mo ago
oh thats not even your domain please be more clear in your questions
sebastiantf
sebastiantf17mo 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
Brody17mo ago
i get it now
sebastiantf
sebastiantf17mo ago
i tried setting the autogenerated domain. its still the same with that too
Brody
Brody17mo ago
though this would be an issue with the crate / code, not specifically railway
sebastiantf
sebastiantf17mo 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
Brody17mo 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
sebastiantf17mo ago
hmm an older version seem to be working fine i'll check whats going wrong
Brody
Brody17mo ago
now would that be running the same codebase as you are now, or have you since made changes?
sebastiantf
sebastiantf17mo ago
an older version of the same codebase is running. newer version of the codebase is failing
Brody
Brody17mo ago
older version of codebase, and not just a rollback?
sebastiantf
sebastiantf17mo ago
i didnt try a rollback. i dont really know which deployment i had to rollback to
Brody
Brody17mo ago
okay just reverted github or however that works on github?
sebastiantf
sebastiantf17mo ago
not on github. just on my local. switched to another branch and railway up
Brody
Brody17mo ago
well i guess that does mean its a code issue then, if a earlier version of your code works
sebastiantf
sebastiantf17mo ago
yeah guess so. looking into it
Brody
Brody17mo ago
alright, good luck!
sebastiantf
sebastiantf17mo 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
Brody17mo ago
You where building your own Dockerfile, you should have said that!!!