DavidKim
DavidKim3y ago

Upon running npx convex dev I get the

Upon running npx convex dev, I get the following error ⠋ Checking for changed table indexes...Network error connecting to dev deployment: unable to get local issuer certificate Couldn't find any solutions in the docs. Has anyone experienced this?
21 Replies
DavidKim
DavidKimOP3y ago
Getting this on the dashboard as well; Not sure if something's wrong on my side or if convex is down
No description
Indy
Indy3y ago
@ari this looks like the same transient failure I experienced on the dashboard. @gautamg For ideas.
sujayakar
sujayakar3y ago
hi @DavidKim, what operating system are you on?
DavidKim
DavidKimOP3y ago
mac! i've had no problem running convex locally the past few weeks I've been using it! just happened for the first time today
sujayakar
sujayakar3y ago
cool. do other websites and tools work with TLS? like going to https://google.com in a browser?
DavidKim
DavidKimOP3y ago
yeah, google, twitter, dsicord, youtube, ..etc all seem to work totally fine
sujayakar
sujayakar3y ago
i’m not seeing the cert errors on my side, but it could be cached. will keep digging.
DavidKim
DavidKimOP3y ago
thank you !
sujayakar
sujayakar3y ago
what’s odd is that TLS looks to be passing on your browser for dashboard.convex.dev, but the fetch is failing for some reason. @DavidKim could you open developer tools in your browser and see if you could get more information for why the fetch is failing? if you’re on chrome, https://developer.chrome.com/docs/devtools/network/ should work for finding the failing fetch.
Chrome Developers
Inspect network activity - Chrome Developers
A tutorial on the most popular network-related features in Chrome DevTools.
DavidKim
DavidKimOP3y ago
in the network tab, looks like get calls on instances, projetcs, and teams are returning status 200 so looks good but the shapes2 seems problematic
DavidKim
DavidKimOP3y ago
No description
DavidKim
DavidKimOP3y ago
i couldn't find any helpful error context though; sorry!
sujayakar
sujayakar3y ago
that's still helpful! so it's good to know that it's failing on *.convex.cloud. can you run curl -vvv -L https://cluttered-dragonfly-553.convex.cloud from your terminal and paste the output here?
DavidKim
DavidKimOP3y ago
curl -vvv -L https://cluttered-dragonfly-553.convex.cloud * Trying 146.112.61.110:443... * Connected to cluttered-dragonfly-553.convex.cloud (146.112.61.110) port 443 (#0) * ALPN, offering h2 * ALPN, offering http/1.1 * successfully set certificate verify locations: * CAfile: /etc/ssl/cert.pem * CApath: none * (304) (OUT), TLS handshake, Client hello (1): * (304) (IN), TLS handshake, Server hello (2): * TLSv1.2 (IN), TLS handshake, Certificate (11): * TLSv1.2 (OUT), TLS alert, unknown CA (560): * SSL certificate problem: unable to get local issuer certificate * Closing connection 0 * TLSv1.2 (IN), TLS handshake, Certificate (11): * TLSv1.2 (OUT), TLS alert, unknown CA (560): curl: (60) SSL certificate problem: unable to get local issuer certificate More details here: https://curl.se/docs/sslcerts.html curl failed to verify the legitimacy of the server and therefore could not establish a secure connection to it. To learn more about this situation and how to fix it, please visit the web page mentioned above.
sujayakar
sujayakar3y ago
okay! this is interesting. on my system (also macOS), I have
* successfully set certificate verify locations:
* CAfile: /etc/ssl/certs/ca-certificates.crt
CApath: /etc/ssl/certs
* successfully set certificate verify locations:
* CAfile: /etc/ssl/certs/ca-certificates.crt
CApath: /etc/ssl/certs
so for some reason CApath is none on your system
DavidKim
DavidKimOP3y ago
so i switched to my mobile hotspot and now it works
sujayakar
sujayakar3y ago
which might explain our cert not getting accepted woah!
DavidKim
DavidKimOP3y ago
wild weird thing is on this wifi, Convex was working for a couple hours before it stopped working out of nowhere
sujayakar
sujayakar3y ago
is it like café wifi or something like that where they may be trying to intercept the traffic?
DavidKim
DavidKimOP3y ago
yeah, hospital Wifi. Taking care of someone right now. I wonder if someone decided to block Convex sorry for the false alarm!
sujayakar
sujayakar3y ago
no problem! we can definitely improve our error message here + point to a help page or something like that with instructions for debugging this.

Did you find this page helpful?