'Why does long inactivity break nextj ssr with firestore?
I am learning Firestore and NextJS. In my application I have a server side render page, that queries Firestore. Works fine, but I noticed, that if I am inactive long enough (few minutes), and then load the page (by clicking on a link), the props returned getServerSideProps will be null. In the logs I see the following:
@firebase/firestore: Firestore (9.6.8): Connection GRPC stream error. Code: 14 Message: 14 UNAVAILABLE: read ECONNRESET
I need to click the link again and second time it works again. Anyone knows the reason?
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
