Error Deploying Phoenix with Nginx: Bad Request to GraphQL
I am hitting an error when deploying phoenix behind nginx. The error is bad request to graphql Unexpected token ‘U’, unable to … is not a valid JSON. When I check the request payload, the query parameter is “…fragment APIKeysTableFragment on User {\n apiKeys…” For context, my nginx configuration location /phoenix_root_path/ { proxy_pass http://<>:6006/; proxy_set_header Host \$host; sub_filter ‘href=“/assets/‘ ‘href=“/phoenix_root_path/assets/‘ sub_filter ‘href=“/‘ ‘href=“/phoenix_root_path/‘; sub_filter_once off; In my helm chart, I have set PHOENIX_HOST_ROOT_PATH: /phoenix_root_path And PHOENIX_PROJECT_NAME and PHOENIX_HOST_URL both to be accessed by env var in my code.
