Same webhook endpoint produce different result for different repos #177793
Replies: 2 comments
-
| 💬 Your Product Feedback Has Been Submitted 🎉 Thank you for taking the time to share your insights with us! Your feedback is invaluable as we build a better GitHub experience for all our users. Here's what you can expect moving forward ⏩ 
 Where to look to see what's shipping 👀 
 What you can do in the meantime 💻 
 As a member of the GitHub community, your participation is essential. While we can't promise that every suggestion will be implemented, we want to emphasize that your feedback is instrumental in guiding our decisions and priorities. Thank you once again for your contribution to making GitHub even better! We're grateful for your ongoing support and collaboration in shaping the future of our platform. ⭐ | 
Beta Was this translation helpful? Give feedback.
-
| Hello @shivenigma, This is a classic issue, and the fact that the  It confirms that: 
 This means the problem is almost certainly in your server-side code (the code running at your webhook URL). 💡 The Probable CauseThe  The reason the  
 Your server code probably contains logic that explicitly checks for the working repository (Repo A). When a payload arrives from a different repository (Repo B), this check fails, and your code returns a  🔍 Common Mistakes in Server-Side CodeCheck your webhook receiver code for the following: 
 Next Steps
 In summary: GitHub is working correctly. The problem is with your server's logic, which is not correctly processing the payloads from "Repo B." | 
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Select Topic Area
Bug
Body
I have two repos under my organisation account and I'm trying to setup webhooks in those repositories. They both point to the same webhook URL, one of the repo events are fired successfully. But the other repo either gives 302 or 404.
I tried even deleting the webhook and setting it up multiple times but the same issue persists. On the problematic repo, the ping event worked fine and succeeded but everything after that just fails.
Beta Was this translation helpful? Give feedback.
All reactions