bug: crash when no env file and no env vars are specified #3

Open
opened 2026-06-20 17:55:52 +02:00 by michi.vonah · 0 comments
Owner

How to reproduce:

  1. run container with docker run -p 8080:8080 projects-api
  2. Open http://localhost:8080/?limit=10&page=1 in your browser
  3. The application inside the container will crash

Error message/log:

2026/06/20 15:52:48 http: panic serving 172.17.0.1:58524: runtime error: invalid memory address or nil pointer dereference
goroutine 20 [running]:
...

What should happen:

  • No crash (handling the error)
  • Empty response or error message to the user (send a response instead of crashing)
How to reproduce: 1. run container with `docker run -p 8080:8080 projects-api` 2. Open `http://localhost:8080/?limit=10&page=1` in your browser 3. The application inside the container will crash Error message/log: ```log 2026/06/20 15:52:48 http: panic serving 172.17.0.1:58524: runtime error: invalid memory address or nil pointer dereference goroutine 20 [running]: ... ``` What should happen: - No crash (handling the error) - Empty response or error message to the user (send a response instead of crashing)
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
michi.vonah/projects-api#3
No description provided.