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

Error while enabling auth0 hook #250

@kjarmicki

Description

@kjarmicki

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions