CodeYourFuture / CodeYourFuture/immersive-go-course

server-database doesn't error or recover from a closed connection

Open
#12 0 comments 0 reactions 0 assignees View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.