sourcefuse / loopback4-starter

Loopback 4 starter application. Multi-tenant architecture supported. Authentication, Authorization, Soft deletes, environment vars, Audit logs, included.
MIT License
158 stars 59 forks source link

Unable to run repo #31

Closed elvisfernandes closed 5 years ago

elvisfernandes commented 5 years ago

Describe the bug If we follow the instructions on README to setup this project we get the following error when we try to authenticate:

{
  "error": {
    "statusCode": 401,
    "name": "UnauthorizedError",
    "message": {
      "name": "error",
      "length": 121,
      "severity": "ERROR",
      "code": "42P01",
      "position": "194",
      "file": "parse_relation.c",
      "line": "1159",
      "routine": "parserOpenTable"
    }
  }
}

I have successfully executed the migrations and redis server is up and running (tested with redis-cli). If we provide wrong credentials the output is the same. I tested both with Postman and with /explorer.

To Reproduce Steps to reproduce the behavior:

  1. Follow the instructions on README to setup and run the project.
  2. Try to authenticate using the /auth/login endpoint
  3. See the error

Expected behavior The user should be authenticated and a JWT token should be returned.

Screenshots image

image

image

Am I doing something wrong?

elvisfernandes commented 5 years ago

I just found the problem. I didn't follow the instruction to replace lbstarter in the migrations folder.