Discord GitHub Notifications fails for every new stargazer

Open
#2,255 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
58/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Active
Tech stack
github-actions
Domain
ci-cd, devops

Research direction

Start with the notify-discord job and the “Send to Google Apps Script (Stars only)” step in the Discord GitHub Notifications workflow, then inspect run #43300 and the linked neighboring runs. Verify the endpoint failure and determine whether the workflow should be repaired or let the Discord notification continue when tracking fails. Done means new-stargazer runs complete without skipping Discord notification.

Written by the indexing model from the issue text.

Description

⚙️ In-progress 🐞 Bug 📌 Root caused
Summary

The Discord GitHub Notifications workflow is currently failing for new stargazers. I noticed this when starring the repository, and the runs immediately before and after mine failed in the same way for other users.

Evidence

In run #43300, the notify-discord job fails at:

Send to Google Apps Script (Stars only)

The check annotation reports:

Process completed with exit code 22.

The workflow uses curl -fSs to POST to secrets.GOOGLE_SCRIPT_ENDPOINT, so exit code 22 indicates that the endpoint returned an HTTP error response. Because this first step fails, Set webhook based on event type and Discord Notification are skipped.

Expected behavior

A temporary failure in the optional stargazer-tracking endpoint should ideally not fail the complete workflow or prevent the Discord notification from running.

Possible resolution

There appear to be two possible directions:

  1. Fix or redeploy GOOGLE_SCRIPT_ENDPOINT if the current failure is only a service/configuration problem.
  2. If spreadsheet tracking is intended to be best-effort, handle this step as a warning (for example with continue-on-error: true) so the Discord notification can still run.

Would the maintainers prefer the second behavior? If so, I would be happy to submit a focused PR targeting develop.

Dominant language
Python
Stars
83.9k
Forks
8.7k
Avg merge
3d 7h
Merged PRs (30d)
11

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from unclecode/crawl4ai

All issues in unclecode/crawl4ai

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.