probot: HTTP server example does not work out of the box
Bug Report
Current Behavior
Used the code from the example in documentation for app.route, I cannot hit the route and I see the server logging a 404.
Expected behavior/code The example to work as documented, allowing me to mount arbitrary http routes to be hit on my probot server.
Environment
- Probot version(s): latest
- Node/npm version: Node 10
- OS: OSX mojave
About this issue
- Original URL
- State: closed
- Created 6 years ago
- Reactions: 3
- Comments: 16 (6 by maintainers)
Quick note š If you are attempting to auto-configure be sure that you start probot with the following
npm run devThe process does not complete otherwise which means a manual config as @tcbyrd mentions āļø
Oh hey I noticed your screenshot is says āto get startedā, which means itās loading the startup app that walks you through setting up your app on GitHub. Until that part is completed (or you manually configure all the environment variables), the routing wonāt work since the app doesnāt have an App ID to startup with yet. Let me know if that helps at all!
Also just recently ran into this. In fact, nothing Iāve tried for routing seems to work. Iāve tried node versions 9, 10, and 11.