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

Bot not receiving anything #976

Closed
Juarrow opened this issue Aug 5, 2019 · 10 comments
Closed

Bot not receiving anything #976

Juarrow opened this issue Aug 5, 2019 · 10 comments
Labels

Comments

@Juarrow
Copy link

Juarrow commented Aug 5, 2019

Bug Report

Current Behavior
The bot does not seem to receive anything.

module.exports = app => {
  // Your code here
  app.log('Yay, the app was loaded!')

  app.on('*', async context => {
    console.log(`Event received: ${JSON.stringify(context)}`);
    //const issueComment = context.issue({ body: 'Thanks for opening this issue!' });
    //return context.github.issues.createComment(issueComment);
  })

Expected behavior/code
Any log message indicating a received event.

Environment

  • Probot version(s): 7.2.0
  • Node/npm version: 10.15.3/6.4.1
  • OS: Windows 10

Additional context/Screenshots
ProbotFuckuo

I did follow the tutorial with the manual setup.
I did download the key into the root project.
I did run npm start

@issue-label-bot issue-label-bot bot added the bug label Aug 5, 2019
@welcome
Copy link

welcome bot commented Aug 5, 2019

Thanks for opening this issue. A contributor should be by to give feedback soon. In the meantime, please check out the contributing guidelines and explore other ways you can get involved.

@issue-label-bot
Copy link

Issue-Label Bot is automatically applying the label bug 🐞 to this issue, with a confidence of 0.95. Please mark this comment with 👍 or 👎 to give our bot feedback!

Links: app homepage, dashboard and code for this bot.

@Juarrow Juarrow changed the title Bot not receiving anything, Tutorial does not work with automatic registration Bot not receiving anything Aug 5, 2019
@Juarrow
Copy link
Author

Juarrow commented Aug 5, 2019

Same happens when running on a debian server.

With and without using smee.

@gr2m
Copy link
Contributor

gr2m commented Aug 5, 2019

Are the events showing up on smee?

@stale
Copy link

stale bot commented Oct 4, 2019

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the wontfix label Oct 4, 2019
@johnsonsamuel
Copy link

Any update on this issue? I am facing the same issue. I am unable to receive any logs.

@stale stale bot removed the wontfix label Oct 10, 2019
@MaximDevoir
Copy link
Contributor

MaximDevoir commented Oct 10, 2019

Can you verify that events are being emitted from GitHub (go to your apps -> Edit -> Advanced -> Recent Deliveries)?

From there, is Smee receiving those deliveries from GitHub?

@johnsonsamuel
Copy link

Thanks @MaximDevoir for your reply. The events were emitted once I gave the permission to read my code base. Is this how it is supposed to work ? Just curious..

@MaximDevoir
Copy link
Contributor

MaximDevoir commented Oct 10, 2019

If you have read access on the contents permission, you will be able to read a user's codebase/repository file contents. If you have the push event enabled and no access on contents, you will receive a payload with some meta information each time someone pushes to the repo, but you will not have access to the code contents.

Take a look at these resources:

@JasonEtco
Copy link
Member

JasonEtco commented Oct 10, 2019

Thanks for jumping in to help here @MaximDevoir. @johnsonsamuel, it sounds like you hadn't installed the app on the repository - GitHub Apps work by being installed on a repo to get the access and subscriptions it needs for that given repo. You can learn more about that here: https://developer.github.com/apps/differences-between-apps/#who-can-install-github-apps-and-authorize-oauth-apps

I'll close this out because I think your question has been answered, but if not feel free to reopen!

GitHub Developer
Get started with one of our guides, or jump straight into the API documentation.

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

No branches or pull requests

5 participants