src-d / code-annotation

🐈 Code Annotation Tool
GNU General Public License v3.0
28 stars 26 forks source link

Login fails when using a PostgreSQL internal database #225

Closed dpordomingo closed 6 years ago

dpordomingo commented 6 years ago

Login fails when using a PostgreSQL internal database

INFO[2018-03-22 17:10:23] request started                               http_method=GET http_proto=HTTP/1.1 http_scheme=http remote_addr="127.0.0.1:56504" uri="http://cat.sourced.tech:8080/api/auth?code=83a753980a4acfcb5cdc&state=w-RLrHCx0s3uXaq97M9msg%3D%3D" user_agent="Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/62.0.3202.62 Safari/537.36"
ERRO[2018-03-22 17:10:24] get user from db: Error getting user from the DB: sql: Scan error on column index 4: can't scan a valid Role  http_method=GET http_proto=HTTP/1.1 http_scheme=http remote_addr="127.0.0.1:56504" uri="http://cat.sourced.tech:8080/api/auth?code=83a753980a4acfcb5cdc&state=w-RLrHCx0s3uXaq97M9msg%3D%3D" user_agent="Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/62.0.3202.62 Safari/537.36"

the underlaying error is:

panic="interface conversion: interface {} is string, not []uint8"