Skip to content

High api usage #986

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

Closed
1 task done
snowe2010 opened this issue Apr 8, 2024 · 7 comments
Closed
1 task done

High api usage #986

snowe2010 opened this issue Apr 8, 2024 · 7 comments
Labels
bug Something isn't working

Comments

@snowe2010
Copy link

🔍 Is there already an issue for your problem?

  • I have checked older issues, open and closed

📝 Description

Gitify is using an insane amount of api calls, causing me to hit my api usage every hour. Closing gitify solves the issue. Just opening Gitify uses up over a hundred api calls. (104 in my most recent test)

🪜 Steps To Reproduce

run

        -H "Accept: application/vnd.github+json" \
        -H "X-GitHub-Api-Version: 2022-11-28" \
        /rate_limit

to check your usage.

Wait a minute, run again and your usage will be several hundred api calls higher.

Gitify Version

5.2.0

Operating System

macOS

GitHub Account

GitHub.com

📸 Screenshots

image
then after opening gitify
image

@snowe2010 snowe2010 added the bug Something isn't working label Apr 8, 2024
@afonsojramos
Copy link
Member

afonsojramos commented Apr 8, 2024

We fetch notifications every minute, but your issue may be something else. Can you try disabling GitHub-like state colors? That is a potential high usage setting 😬

@snowe2010
Copy link
Author

I turned github like state colors off and it seems to have reduced the usage. I went from 24 to 128 on startup, then disabled the colors, but then 1 minute later the usage jumped to 230, but finally seems to have slowed down. Setting might have taken a minute to go into effect. What is this setting? I can't find it on the website, faq, or readme.

@setchy
Copy link
Member

setchy commented Apr 15, 2024

Thanks for reporting @snowe2010

While we look into optimizing our API calls + caching, I have raised two PRs to help with the reported issues above

@snowe2010
Copy link
Author

Thank you very much!

@setchy
Copy link
Member

setchy commented Apr 16, 2024

These additionally should also help reduce the symptoms

@setchy
Copy link
Member

setchy commented Apr 16, 2024

@snowe2010 - all the above are now released in 5.3.0

@snowe2010
Copy link
Author

thank you very much! y'all are fast!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants