Skip to content

fix: remove the Docker Hub pull count fetch - #678

Merged
mesutoezdil merged 1 commit into
masterfrom
fix/remove-docker-pulls-fetch
Jul 29, 2026
Merged

fix: remove the Docker Hub pull count fetch#678
mesutoezdil merged 1 commit into
masterfrom
fix/remove-docker-pulls-fetch

Conversation

@mesutoezdil

Copy link
Copy Markdown
Contributor

Docker Hub's API sends no Access-Control-Allow-Origin header, so this fetch is blocked by the browser on every homepage load:

Access to fetch at 'https://hub.docker.com/v2/repositories/projecthami/hami/'
has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present

The catch block hid the failure, so the displayed count always stayed at the hardcoded fallback while still logging a console error. Removing the fetch keeps the same number on screen and clears the error.

The GitHub stars fetch is left alone, api.github.com does send the header.

Verified with npm ci, npm run build and npm run format:check.

Docker Hub's API returns no Access-Control-Allow-Origin header, so the
browser blocks this request every time. The catch block hid the failure
and the displayed number always stayed at the hardcoded fallback, but
the blocked request still logged a CORS error on every homepage load.

Dropping the fetch keeps the same number on screen and clears the
console error. The GitHub stars fetch is untouched, api.github.com does
send the header.

Signed-off-by: mesutoezdil <mesudozdil@gmail.com>
@hami-robot
hami-robot Bot requested a review from archlitchi July 29, 2026 12:44
@netlify

netlify Bot commented Jul 29, 2026

Copy link
Copy Markdown

Deploy Preview for project-hami ready!

Name Link
🔨 Latest commit 265a84a
🔍 Latest deploy log https://app.netlify.com/projects/project-hami/deploys/6a69f59154ce380007f1a64a
😎 Deploy Preview https://deploy-preview-678--project-hami.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
🤖 Make changes Run an agent on this branch

To edit notification comments on pull requests, go to your Netlify project configuration.

@hami-robot

hami-robot Bot commented Jul 29, 2026

Copy link
Copy Markdown
Contributor

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: mesutoezdil
Once this PR has been reviewed and has the lgtm label, please assign archlitchi for approval. For more information see the Kubernetes Code Review Process.

The full list of commands accepted by this bot can be found here.

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@hami-robot
hami-robot Bot requested a review from rootsongjc July 29, 2026 12:44
@coderabbitai

coderabbitai Bot commented Jul 29, 2026

Copy link
Copy Markdown

Warning

Review limit reached

@mesutoezdil, you've reached your PR review limit, so we couldn't start this review.

Next review available in: 11 minutes

Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available.
You're only billed for reviews past your plan's rate limits ($0.25/file).

How can I continue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews.

How do review limits work?

CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability.

For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window.

Please refer docs for additional details.

Review details
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro Plus

Run ID: d773bf5e-b522-4f10-8eb5-f62388f6d7c0

📥 Commits

Reviewing files that changed from the base of the PR and between 18d975c and 265a84a.

📒 Files selected for processing (1)
  • src/pages/index.js

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@hami-robot hami-robot Bot added the size/S label Jul 29, 2026
@mesutoezdil
mesutoezdil merged commit 65354a0 into master Jul 29, 2026
9 of 13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant