acikyazilimagi / deprem-yardim-backend-go

Apache License 2.0
287 stars 56 forks source link

bug: docker-compose not working, also error handling issue, as it returns empty JSON. #88

Closed aea7 closed 1 year ago

aea7 commented 1 year ago

Error Description

docker-compose not working for several reasons:

There's a clear error handling issue, as it returns empty JSON instead of error message or meaningful information.

Reason: marshalling error interface will result in {"err": {}}

Discord username: aak#3635

Error Environment

Local Development

Describe how you got the error step by step

  1. run docker compose up
  2. The api does not run, after correction, I was calling the needs endpoint and it was returning empty JSON as a response, when I checked the db, nothing was inserted.

Expected Behaviour

Api issues and the local development with docker compose to be fixed, along with error handling.

Screenshots

If applicable, add screenshots to better illustrate the problem.

Desktop Environment

mac m1 pro

Additional Context

PR to follow.

mstrYoda commented 1 year ago

Docker compose is only for local development. Users should arrange the port according to their local ports.