nhost / hasura-auth

Authentication for Hasura.
https://nhost.io
MIT License
386 stars 114 forks source link

What's the best way to debug a 500 error on local passwordless sms login? #388

Closed etodanik closed 1 year ago

etodanik commented 1 year ago

Right now I'm getting a quite opaque error 500, with not many details:

hasura-musing_blackwell-graphql-1       | {"detail":{"http_info":{"content_encoding":"gzip","http_version":"HTTP/1.1","ip":"172.28.0.11","method":"POST","status":200,"url":"/v1/graphql"},"operation":{"query_execution_time":8.073542e-3,"request_id":"fc0dc398-1824-491c-baf3-55736da272b0","request_mode":"single","request_read_time":2.042e-6,"response_size":369,"uncompressed_response_size":527,"user_vars":{"x-hasura-role":"admin"}},"request_id":"fc0dc398-1824-491c-baf3-55736da272b0"},"level":"info","timestamp":"2023-05-18T18:26:03.485+0000","type":"http-log"}
hasura-musing_blackwell-auth-1          | {"latencyInNs":151000000,"level":"error","message":"POST /signin/passwordless/sms 500 151ms","method":"POST","statusCode":500,"url":"/signin/passwordless/sms"}
hasura-musing_blackwell-graphql-1       | {"detail":{"http_info":{"content_encoding":"gzip","http_version":"HTTP/1.1","ip":"172.28.0.11","method":"POST","status":200,"url":"/v1/graphql"},"operation":{"query_execution_time":2.0761459e-2,"request_id":"87decfd9-b62f-4066-89cc-2c378b4bcb2a","request_mode":"single","request_read_time":2.0e-6,"response_size":366,"uncompressed_response_size":530,"user_vars":{"x-hasura-role":"admin"}},"request_id":"87decfd9-b62f-4066-89cc-2c378b4bcb2a"},"level":"info","timestamp":"2023-05-18T18:26:03.485+0000","type":"http-log"}
etodanik commented 1 year ago

Resolved via: https://github.com/nhost/cli/issues/449

Turns out the default config.yaml schema I was trying to edit was incorrect.