Skip to content
This repository was archived by the owner on Mar 18, 2025. It is now read-only.

Error while enabling auth0 hook #250

Open
kjarmicki opened this issue Apr 11, 2019 · 0 comments
Open

Error while enabling auth0 hook #250

kjarmicki opened this issue Apr 11, 2019 · 0 comments

Comments

@kjarmicki
Copy link

kjarmicki commented Apr 11, 2019

Hello,

I'm having trouble with enabling a hook that was created with the cli. I have successfully initialized the cli and can confirm with wt init that my token is not expired.

It goes like this:

> auth0 create --type post-user-registration --name test-hook test-hook.js

Auth0 hook created in disabled state. To enable this hook to run in production, call:
$ auth0 enable test-hook

> auth0 enable test-hook

Enabling hook undefined.
Uncaught error:  rejecting request with JWT token signed with untrusted key
Error: Forbidden
    at Request.callback (/home/kjarmicki/.nvm/versions/node/v10.13.0/lib/node_modules/wt-cli/node_modules/superagent/lib/node/index.js:706:15)
    at parser (/home/kjarmicki/.nvm/versions/node/v10.13.0/lib/node_modules/wt-cli/node_modules/superagent/lib/node/index.js:916:18)
    at IncomingMessage.res.on (/home/kjarmicki/.nvm/versions/node/v10.13.0/lib/node_modules/wt-cli/node_modules/superagent/lib/node/parsers/json.js:19:7)
    at IncomingMessage.emit (events.js:187:15)
    at endReadableNT (_stream_readable.js:1094:12)
    at process._tickCallback (internal/process/next_tick.js:63:19)
Please report this at: https://github.com/auth0/wt-cli/issues

I'm able to create and remove hooks, but not to enable them. Note that it also says Enabling hook undefined, so maybe there's a data mismatch somewhere?

Any help appreciated :)

OS: Ubuntu 18.04 LTS
Node: 10.13.0
auth0: 11.0.2

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

No branches or pull requests

1 participant