Skip to content

database-query error #1

@a0925260369

Description

@a0925260369

When I try to run lens with npm run dev
I got a response

connected
WEBSOCKET OPENED
(node:15656) Warning: Setting the NODE_TLS_REJECT_UNAUTHORIZED environment variable to '0' makes TLS connections and HTTPS requests insecure by disabling certificate verification.
{ error: true, decorator: 'GET_EVERY_SLATE' }
[ database-query ] { query: 'GET_EVERY_SLATE' }
{ error: true, decorator: 'GET_EVERY_USER' }
[ database-query ] { query: 'GET_EVERY_USER' }

I try to start slate and sign up a user
I got a error response

event - build page: /api/users/check
wait  - compiling...
event - compiled successfully
[ SLATE            ] [ 2021-01-07 03:27:21 ] DB:GET_USER_BY_USERNAME: select * from "users" where "username" = $1 limit $2 - relation "users" does not exist
[ SLATE            ] [ 2021-01-07 03:27:21 ] DB:GET_USER_BY_USERNAME
POST /api/users/check 500 43 - 573.860 ms

So, I try to create a table which name is users
Users check api success but create user api error

[ SLATE            ] [ 2021-01-07 03:29:48 ] DB:GET_USER_BY_USERNAME
POST /api/users/check 200 30 - 511.595 ms
event - build page: /api/users/create
wait  - compiling...
event - compiled successfully
POST /api/users/create 403 48 - 428.818 ms

How should I do? I don't know what slate db table is correct.
Please help me. Thanks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions