CodeYourFuture / CodeYourFuture/immersive-go-course
server-database doesn't error or recover from a closed connection
Open
bug
good first issue
- Dominant language
- Go
- Stars
- 157
- Forks
- 107
- PR merge metrics
- No merged PRs in 30d
Description
Steps to repro:
- `git checkout impl/server-database`
- Setup the database according to README instructions (in particular, `go-server-database` database)
- `DATABASE_URL='postgres://localhost:5432/go-server-database' go run .`
- `curl "http://localhost:8080/images.json" -iL`
- turn off the database
- `curl "http://localhost:8080/images.json" -iL`
Expected:
- An error or
- An automatically reopened connection
- Error message in the logs
Actual:
- `null` HTTP response
Contributor guide
Assessment
This issue has not been assessed yet.