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)

Most upvoted comments

Quick note šŸ““ If you are attempting to auto-configure be sure that you start probot with the following

npm run dev

The 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.