You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Maybe I'm massively confused here (most certainly), but I don't know what I'm missing here.
I have a local setup on https localhost using an express server. It works - because the route loads over https.
However, within the route, I make an api call to another route, and that fails with this error:
FetchError: request to https://localhost:3000/session failed, reason: unable to verify the first certificate
I'm confused because the certificate is valid (fresh with mkcert, CA in Windows Store, installed in Firefox Store) - and is working fine for the browser request - but when trying to access a route via api, it's being rejected.
On every subsequent call - it works fine. It's only the first request that gets the SSL error. And I'm assuming it's coming from there somewhere. When I invalidate that query - and it refetches - it works fine and I get this response:
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Maybe I'm massively confused here (most certainly), but I don't know what I'm missing here.
I have a local setup on https localhost using an express server. It works - because the route loads over https.
However, within the route, I make an api call to another route, and that fails with this error:
FetchError: request to https://localhost:3000/session failed, reason: unable to verify the first certificate
I'm confused because the certificate is valid (fresh with mkcert, CA in Windows Store, installed in Firefox Store) - and is working fine for the browser request - but when trying to access a route via api, it's being rejected.
Pretty simple request func:
The caveat I'm unaware of is I'm using Tanstack Query as well with hydration. This is the loader function being use in an index:
And the resulting Tanstack call in the component:
On every subsequent call - it works fine. It's only the first request that gets the SSL error. And I'm assuming it's coming from there somewhere. When I invalidate that query - and it refetches - it works fine and I get this response:
GET /session 200
What am I missing??
Beta Was this translation helpful? Give feedback.
All reactions