Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Authorization failed: jwt must be a string #529

Open
reyou opened this issue Apr 20, 2024 · 1 comment
Open

Authorization failed: jwt must be a string #529

reyou opened this issue Apr 20, 2024 · 1 comment

Comments

@reyou
Copy link

reyou commented Apr 20, 2024

 velo-external-db:
    image: velo-external-db
    restart: always
    networks:
      - my_network
    environment:
      PORT: 8082
      CLOUD_VENDOR: azure
      TYPE: postgres
      HOST: host_postgres 
      DB: my_db
      USER: database_user
      PASSWORD: ***
      SECRET_KEY: secret_key
    ports:
      - "8082:8082"

I created image by generating from this repo.
Then I am running it in my VM (not cloud provider).

image

But when I run following curl it says

curl -L -X POST 'https://velo-external-db.mywebsite.net/schemas/list' \
-H 'Content-Type: application/json' \
--data-raw '{
    "requestContext": {
        "settings": {
            "secretKey": "myBigSecret"
        },
        "role": "OWNER"
    }
}'

{"data":{"description":"Authorization failed: jwt must be a string"},"errorCode":"UNAUTHORIZED"}

how can I fix this issue?

@theophane-droid
Copy link

Hello, I'm also looking for an answer to this issue...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants