Skip to content

fix(api): serve cached guilds when the Hypixel request fails - #981

Open
ugcodrr wants to merge 4 commits into
mainfrom
fix/guild-cache-on-hypixel-failure
Open

ugcodrr wants to merge 4 commits into
mainfrom
fix/guild-cache-on-hypixel-failure

Conversation

@ugcodrr

@ugcodrr ugcodrr commented Oct 19, 2026 •

Copy link
Copy Markdown
Member

Description: When a Hypixel guild request failed (timeout, rate limit or outage), the API treated it as a missing guild, so the bot said it couldn't find it and the API deleted the cached guild.

  1. With nothing cached, the API answers 503, so the bot shows its usual "Something went wrong" error.

#999 is stacked on this PR, with #1039, #926, #985, #1044 and #988 above it.

Testing: with hypixelApi.timeout set to 1, GET /guild for a guild you've looked up before returns it with cached: true.

@vercel

vercel Bot commented Oct 19, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

1 Skipped Deployment
Project Deployment Actions Updated
statsify Ignored Ignored Nov 5, 2026 8:06am UTC

@ugcodrr
ugcodrr force-pushed the fix/guild-cache-on-hypixel-failure branch from 49e5e0c to 0a77a2c Compare November 2, 2026 00:24
@vercel

vercel Bot commented Nov 3, 2026

Copy link
Copy Markdown

Deployment failed for project statsify with the following error:

Resource is limited - try again in 1 day (more than 100, code: "api-deployments-free-per-day").

Learn More: https://vercel.com/statsify-net?upgradeToPro=build-rate-limit

This branch was previously deployed

1 inactive (outdated) deployment
Preview — 49e5e0c3 Deployed Oct 19, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant