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

Remove integer port requirement for Facebook #435

Merged
merged 1 commit into from
Oct 12, 2016
Merged

Conversation

dwcares
Copy link

@dwcares dwcares commented Oct 9, 2016

PaaS hosting offerings like Heroku and Azure App Service do not have a standard numerical port, as it's randomly generated when the app is re-started.

The code currently has a check that ensures the port specified is a number. This will always fail and throw an exception on Heroku and Azure App Service, causing the app the crash.

Example port from Azure App Service: ".\pipe\a59322f5-0005-4a3b-9242-24625191a3f2"

My fix removes the number check as ExpressJS, which is how the bots are served, has no requirement that ports are a number.

Closes #369

@anonrig
Copy link
Contributor

anonrig commented Oct 12, 2016

Nice catch!

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

Successfully merging this pull request may close these issues.

webhooks failing on facebook messenger heroku hosted app
3 participants