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

Failing to unregister hooks #1

Open
skierkowski opened this issue Oct 3, 2014 · 2 comments
Open

Failing to unregister hooks #1

skierkowski opened this issue Oct 3, 2014 · 2 comments

Comments

@skierkowski
Copy link
Member

Depending on external factors, the process may be killed before the "stop" block runs. The stop block unregisters the hook, so sometimes a hook may not be unregistered properly.

The hook_url is generated per instance, meaning it changes every time the process restarts. While the start block checks to see if the hook is already registered, this will always fail since the URL it searches for will always be different every time the block runs.

The solution would be pass the 'id' to the web_hook, so that it generates a URL like /v0.4/web_hooks/:id. The ID would have to be static across restarts, fixed to the user and room, and unique from any other user/room. As such it could be generated as a hash of the room name and api_key.

@skierkowski
Copy link
Member Author

@andrewrdakers this might be a good one for you to fix. You'll have to work with the web_hooks to fix this issue which will teach you about listeners and web hooks in creating connectors.

@alismxwll
Copy link
Contributor

I'll take a look, could you give me permissions so I can push to a branch. Thanks!

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