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

Getting a comment for discussion returns an internal server error #214

Open
Chief-Rishab opened this issue Feb 24, 2023 · 0 comments
Open
Labels
bug Something isn't working

Comments

@Chief-Rishab
Copy link
Member

Describe the bug
After creating a comment for a discussion and a call on GetAllComments or GetComment APIs is giving an internal server error with logs that the owner's email is NULL and cant be converted to string.

Server logs:

ERRO[0173] error getting list of comments: sql: Scan error on column index 7, name "owner.email": converting NULL to string is unsupported  ref=1677205983
ERRO[0173] finished unary call with code Internal        error="rpc error: code = Internal desc = Internal Server Error - ref (1677205983)" grpc.code=Internal grpc.method=GetAllComments grpc.service=odpf.compass.v1beta1.CompassService grpc.start_time="2023-02-24T08:03:03+05:30" grpc.time_ms=2.061 peer.address="127.0.0.1:48390" span.kind=server system=grpc

To Reproduce
Steps to reproduce the behavior:
1.Create a comment for a discussion
2. Get all comments or Get the comment by id

Expected behavior
Should return the comment body

@Chief-Rishab Chief-Rishab added the bug Something isn't working label Feb 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant