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

502 Bad Gateway #6

Open
can-lang opened this issue Mar 17, 2021 · 0 comments
Open

502 Bad Gateway #6

can-lang opened this issue Mar 17, 2021 · 0 comments

Comments

@can-lang
Copy link

Hi,

I try to use an example custom-plugin on tyk-cloud. But I got error 502 Bad Gateway.

Produce Steps:

  1. Created AWS IAM user then enable plugins like https://tyk.io/docs/tyk-cloud/configuration-options/using-plugins/setup-control-plane/
  2. Created manifest.json and middleware.py like https://tyk.io/docs/tyk-cloud/configuration-options/using-plugins/python-code-bundle/
  3. Created bundle.zip with docker:
  docker run \
  --rm \
  -v $(pwd):/cloudplugin \
  --entrypoint "/bin/sh" -it \
  -w "/cloudplugin" \
  tykio/tyk-gateway:v3.1.2 \
  -c '/opt/tyk-gateway/tyk bundle build -y'
  1. Downloaded mservctl for mac
  2. Created python-demo.mservctl.yaml file with endpoint and token that coming from dashboard.
  3. Push bundle.zip to s3: ./mservctl.macos.amd64 --config ~/my-tyk-plugin/python-demo.mservctl.yaml push ~/my-tyk-plugin/bundle.zip
  4. Checked s3 and seen bundle.zip file
  5. Created new api with bundle-id and Custom-Authorization like https://tyk.io/docs/tyk-cloud/configuration-options/using-plugins/api-test/
  6. Tested but gotten 502 Bad Gateway as response. Tested with and without Authorization header but result is same.

Any suggestion?

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

1 participant