-
|
Hi, I want to show block reset timer, session usage, weekly reset timer and weekly usage. My container is running via a proxy and allowed these domains: anthropic.com, claude.com, claude.ai. If I run claude without proxy, everything works. The block reset timer works, but other 3 cannot pass the proxy and showing "API Error". Do you know what differences are between block reset timer and others? Which domains do the others use to request the information? Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 6 replies
-
|
@xuanswe Thanks for the detailed report. I traced this behavior and the difference is expected based on how each widget gets its data. Block Reset Timer works behind your proxy because it has a local fallback path. The other three widgets do not have that fallback:
Those three rely on a live API call to: So if that request fails, they show The key proxy requirement is not only domain allowlisting, but header preservation.
If either header is stripped, rewritten, or blocked, the request will fail (auth/beta contract failure), and ccstatusline will surface it as What to check in your proxy:
So the short answer: Block Reset Timer survives because it can run locally; the other three require a successful proxied call to |
Beta Was this translation helpful? Give feedback.
@xuanswe Thanks for the detailed report. I traced this behavior and the difference is expected based on how each widget gets its data.
Block Reset Timer works behind your proxy because it has a local fallback path.
If the usage API is unavailable, it can still compute the current 5-hour window from local Claude transcript/cache data, so it can continue rendering.
The other three widgets do not have that fallback:
Those three rely on a live API call to:
https://api.anthropic.com/api/oauth/usage
So if that request fails, they show
[API Error].The key proxy requirement is not only domain allowlisting, but header preservation.
That request must…