{"action":"opened","issue":{"url":"https://api.github.com/repos/probot/friction/issues/16","repository_url":"https://api.github.com/repos/probot/friction","labels_url":"https://api.github.com/repos/probot/friction/issues/16/labels{/name}","comments_url":"https://api.github.com/repos/probot/friction/issues/16/comments","events_url":"https://api.github.com/repos/probot/friction/issues/16/events","html_url":"https://github.com/probot/friction/issues/16","id":268112160,"number":16,"title":"Confusing \"Not Found\" error for creating a new installation token","user":{"login":"bkeepers","id":173,"avatar_url":"https://avatars0.githubusercontent.com/u/173?v=4","gravatar_id":"","url":"https://api.github.com/users/bkeepers","html_url":"https://github.com/bkeepers","followers_url":"https://api.github.com/users/bkeepers/followers","following_url":"https://api.github.com/users/bkeepers/following{/other_user}","gists_url":"https://api.github.com/users/bkeepers/gists{/gist_id}","starred_url":"https://api.github.com/users/bkeepers/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bkeepers/subscriptions","organizations_url":"https://api.github.com/users/bkeepers/orgs","repos_url":"https://api.github.com/users/bkeepers/repos","events_url":"https://api.github.com/users/bkeepers/events{/privacy}","received_events_url":"https://api.github.com/users/bkeepers/received_events","type":"User","site_admin":true},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-10-24T17:04:28Z","updated_at":"2017-10-24T17:04:28Z","closed_at":null,"author_association":"OWNER","body":"At least 3 users have reported this issue now. Here's the most [recent discussion](https://probot-talk.slack.com/archives/C6S4FC8AF/p1508817240000067):\r\n\r\n> I'm getting an error that haven't had before, trying to figure out what's going on. It doesn't seem to be related to a code change since I wasn't getting these before...\r\n\r\n```\r\n03:50:29.530Z ERROR Probot: {\"message\":\"Not Found\",\"documentation_url\":\"https://developer.github.com/v3/apps/#create-a-new-installation-token\"}\r\n  err: {\r\n    \"code\": 404,\r\n    \"status\": \"Not Found\",\r\n    \"message\": \"{\\\"message\\\":\\\"Not Found\\\",\\\"documentation_url\\\":\\\"https://developer.github.com/v3/apps/#create-a-new-installation-token\\\"}\"\r\n  }\r\n  --\r\n  event: {\r\n    \"id\": \"79e16f20-b86e-11e7-8b0e-fc84f6028c53\",\r\n    \"event\": \"pull_request\",\r\n    \"action\": \"edited\",\r\n    \"repository\": \"rtsao/probot-playground\"\r\n  }\r\n```\r\n\r\n> Any clues what this could be? I am testing my probot apps in a new github app. The webhook key and private key are correct...\r\n\r\nThis error is caused by having multiple GitHub Apps installed that are both pointing to the same URL, which is common in development with the way we currently setup localtunnel.\r\n\r\nSuggestions:\r\n\r\n1. Update the [Development docs](https://probot.github.io/docs/development/#configure-a-github-app) to strongly recommend using a single app for local development. Personally, I have an app called `bkeepers-dev` that has all permissions and webhooks enabled, and I just symlink `.env` and `private_key.pem` into the local directory.\r\n1. Rescue this specific error and link to documentation that spells out this specific issue\r\n1. Consider updating the default localtunnel config to include the app name in the URL (conflicts with the first recommendation, but might make sense as a default)\r\n\r\ncc @rtsao @JasonEtco \r\n"}}
{"actor":{"display_login":"bkeepers"}}