Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
aea7 opened this issue Feb 11, 2023 · 1 comment · May be fixed by #89
Closed

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

aea7 opened this issue Feb 11, 2023 · 1 comment · May be fixed by #89
Labels
bug çalışmayan bir şey var waiting-approval pm onayı bekleyen issue

Comments

@aea7
Copy link

aea7 commented Feb 11, 2023

Error Description

docker-compose not working for several reasons:

  • kafka not accessible
  • postgres port is wrong since consumer and api need 5432 to access postgres
  • kafka_ui could not connect to kafka
  • consumer and api were failing to connect to kafka, so consumer panics.

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.

@aea7 aea7 added bug çalışmayan bir şey var unchecked henüz check edilmemiş pr veya issue labels Feb 11, 2023
@giveerr giveerr removed the unchecked henüz check edilmemiş pr veya issue label Feb 11, 2023
@yusufgns yusufgns added the waiting-approval pm onayı bekleyen issue label Feb 11, 2023
@mstrYoda
Copy link
Contributor

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug çalışmayan bir şey var waiting-approval pm onayı bekleyen issue
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants