gitify-app / gitify

GitHub notifications on your menu bar. Available on macOS, Windows & Linux.

Home Page:https://www.gitify.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

High api usage

snowe2010 opened this issue Β· comments

πŸ” 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

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 😬

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.

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

Thank you very much!

These additionally should also help reduce the symptoms

@snowe2010 - all the above are now released in 5.3.0

thank you very much! y'all are fast!