Skip to content
This repository has been archived by the owner on Sep 20, 2024. It is now read-only.

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 subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

webhooks failing on facebook messenger heroku hosted app
3 participants