hotosm / galaxy-api

Backend to fetch data from Underpass
https://galaxy-api.hotosm.org/latest/redoc
GNU Affero General Public License v3.0
14 stars 5 forks source link

[BUG][DEV] /auth/me/ endpoint #323

Closed NicolasGrosjean closed 2 years ago

NicolasGrosjean commented 2 years ago

Describe the bug

When I call the /auth/me/ endpoint, I get some errors.

To Reproduce

  1. After following the README, I get a 401 response with the detail "User is not staff member" when using the /auth/me/ endpoint.
  2. After adding my ID as Admin in underpass database and regenerating a token, I get the error
    pydantic.error_wrappers.ValidationError: 1 validation error for AuthUser
    response -> img_url
    none is not an allowed value (type=type_error.none.not_allowed)

Expected behavior

Get my user data