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

GitHub Trigger Not Working #734

Closed
rori4 opened this issue Jul 7, 2020 · 10 comments · May be fixed by saurabharch/n8n#56
Closed

GitHub Trigger Not Working #734

rori4 opened this issue Jul 7, 2020 · 10 comments · May be fixed by saurabharch/n8n#56

Comments

@rori4
Copy link

rori4 commented Jul 7, 2020

Describe the bug
Github trigger returns There was a problem running the workflow: Github error response [404]: Not Found

To Reproduce
Steps to reproduce the behavior:

  1. Create a GitHub trigger for any repository that exists
  2. Run the workflow
  3. See error

Expected behavior
To execute the workfow as in this video https://www.youtube.com/watch?v=3w7xIMKLVAg

Environment (please complete the following information):

@janober
Copy link
Member

janober commented Jul 8, 2020

Please ask by default all questions in the forum here:
https://community.n8n.io/
Only if you are 100% sure that it is a bug open an issue on Github. Only if we stick to that rule can we be sure that people find solutions for their problems easily. Thanks!

GitHub allows only to set webhooks for repositories you are part of. I guess the problem you are having is that you try to set it for repositories you are not.

@rori4
Copy link
Author

rori4 commented Jul 8, 2020

OK I will post this in the community. However, I am sure I am trying with a repo that I am part of.

@janober
Copy link
Member

janober commented Jul 8, 2020

Thanks a lot!

Are you member or owner?

@rori4
Copy link
Author

rori4 commented Jul 8, 2020

I am a member of the organisation and contributor to the repo

@janober
Copy link
Member

janober commented Jul 24, 2020

Did you try with a repro you own or are an admin of? Is possible that it works only for those.

@rori4
Copy link
Author

rori4 commented Jul 24, 2020

yes on my own repo it works fine but org repos it doesn’t for some reason

@janober
Copy link
Member

janober commented Jul 24, 2020

hm, then there is probably sadly nothing we can do about it as that would be something GitHub would have to change. All we can do is to use their API and if it behaves strange or unexpected they would have to "fix" it. I expect however that it probably behaves like this on purpose and they will not change it.

@rori4
Copy link
Author

rori4 commented Jul 24, 2020

Yeah sadly it is so. I wanted to use this for notifications but I found an alternative and I have shared the workflow here => https://n8n.io/workflows/471

I will be closing this now as apparently its not a bug but an issue with GitHub permissions on their side.

@rori4 rori4 closed this as completed Jul 24, 2020
@janober
Copy link
Member

janober commented Jul 24, 2020

Ah really cool. Thanks a lot for sharing your workaround! Is very appreciated.

@posixpascal
Copy link

I've found a solution for this as it's happened to me as well. I got 404 errors when trying to trigger actions (i.e. issue creation/releases) on an organization repository. The problem is not within the workflow integration but rather how GitHub handles it's permissions.

Background: I'm signed into my Workflow using OAuth2 and my personal account. I'm the owner of the organization.
The workflow fails with your given error message.

I then headed to my organizations access page: (github.com/org/repository/settings/access) and added my user account (it wasn't in this listed because I didn't add myself thinking I already had "admin" access.).

After adding myself, the workflow is running smoothly.

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

Successfully merging a pull request may close this issue.

3 participants