The Bing Webmaster API has two throttle errors that look alike and mean different things. ERROR!!! ThrottleIP is about where the call comes from: Bing refused every call my Cloudflare Worker made, while the same key worked from any other machine. ERROR!!! ThrottleUser is about the account and the call: on 26 November Bing answered my sitemap submit (SubmitFeed) with 400 ThrottleUser from Cloudflare's build servers and from my home connection, while other calls with the same key, from the same machine, in the same minute, returned 200. Neither one means the key is wrong, and neither one is a reason to fail a deploy. Treating ThrottleUser as a failure is what broke my deploy script.
What does ERROR!!! ThrottleIP mean?
Bing is refusing the IP address the request came from. My daily index report ran inside a Cloudflare Worker and asked Bing for crawl stats. On 19 November, 20 of 20 calls came back ThrottleIP. The same API key, from my laptop, worked on the first try.
Cloudflare Workers make outbound requests from shared egress IPs, the same addresses thousands of other Workers use. Bing appears to rate-limit those addresses as a group, so your own call volume doesn't matter. You can't fix it with backoff. Move the call somewhere with its own IP. Mine now runs as a daily GitHub Actions job (pnpm check:bing), and the Worker no longer calls Bing at all.
What does ERROR!!! ThrottleUser mean?
This one followed the account, not the network. The response body was:
{"ErrorCode":4,"Message":"ERROR!!! ThrottleUser"}
What I could pin down, all with the same key:
| Call | From | Result |
|---|---|---|
SubmitFeed (sitemap) |
Cloudflare Workers Builds | 400 ThrottleUser |
SubmitFeed (sitemap) |
Home connection | 400 ThrottleUser |
GetUrlSubmissionQuota |
Home connection | 200 |
SubmitUrlBatch (3 URLs) |
Home connection | 200 |
So it isn't the IP and it isn't the key. Bing is refusing that call for that site. A deploy earlier the same day had submitted the same sitemap successfully, and Bing already knew the sitemap. My reading is that Bing limits how often you can resubmit a sitemap it already has. Bing doesn't document the window, so I don't depend on it.
How the throttle broke my deploy
Each deploy runs a script that tells search engines what changed:
- IndexNow gets the URLs whose content changed (Bing, Yandex, Seznam and Naver read it).
- Google Search Console and Bing get the sitemap, but only when a URL or a
lastmodmoved. - A D1 table records each URL's fingerprint and
lastmod, so the next deploy can tell what moved.
The script had one rule for step 2: if any engine refused the sitemap, keep the old lastmod values so the next deploy retries. That's reasonable for an outage. Against a throttle it never settles. Three new articles went out, Google accepted the sitemap with a 204, Bing said ThrottleUser, and the three rows kept a null lastmod. The next deploy saw the sitemap as changed again, pinged both engines again, and got the same refusal from Bing.
Nothing was visibly broken. The articles were live, and IndexNow had already sent them to Bing with a 200. The only sign was three nulls in a table. A query for lastmod IS NULL found exactly the three newest pages.
The fix: a throttle is a skip
The outcome of a sitemap submit now has three values, and only a real refusal counts as a failure:
/**
* Bing SubmitFeed result as 'ok' | 'skipped' | 'failed'. A throttle is a skip: Bing re-reads a
* sitemap it already has, and IndexNow already carries the changed URLs.
*/
export function bingFeedOutcome(status, text) {
if (status >= 200 && status < 300) return 'ok'
return status === 400 && /ERROR!!! Throttle/.test(text) ? 'skipped' : 'failed'
}
In the deploy script, a skip prints a notice instead of an error, and the lastmod values are saved:
const text = await res.text().catch(() => '')
const outcome = bingFeedOutcome(res.status, text)
if (outcome === 'skipped') console.log(`::notice::Bing sitemap throttled, already known to Bing: ${text.slice(0, 200)}`)
if (outcome !== 'failed') return outcome
An invalid key or a 500 still fails and still holds the lastmod values back for a retry. The test pins both sides:
test('bingFeedOutcome: 200 is ok, a Throttle* refusal is skipped, any other refusal fails', () => {
assert.equal(bingFeedOutcome(200, '{"d":null}'), 'ok')
assert.equal(bingFeedOutcome(400, '{"ErrorCode":4,"Message":"ERROR!!! ThrottleUser"}'), 'skipped')
assert.equal(bingFeedOutcome(400, '{"Message":"ERROR!!! ThrottleIP"}'), 'skipped')
assert.equal(bingFeedOutcome(400, '{"Message":"ERROR!!! InvalidApiKey"}'), 'failed')
assert.equal(bingFeedOutcome(500, 'Throttle in an HTML error page'), 'failed')
})
After the fix, one run saved the four pending rows, and the next dry run reported sitemap unchanged.
Read Bing's message, not just the status
Bing returns 400 for a bad key, a throttle and a malformed request alike. The reason is in the body's Message field. My API client puts it in every error it throws:
function reason(text) {
try {
return String(JSON.parse(text)?.Message ?? text).slice(0, 200)
} catch {
return text.slice(0, 200)
}
}
An error that says bing GetCrawlStats 400 ERROR!!! ThrottleIP sends you to the right fix on the first read. A bare 400 would have me checking the key first.
You may not need SubmitFeed on every deploy
Bing gets new and changed URLs in two other ways:
- IndexNow. Any change goes out at deploy time, and it doesn't depend on the sitemap call.
-
SubmitUrlBatch. It's the Webmaster API's own URL submit, with a quota of 10,000 a day on my site (
GetUrlSubmissionQuotareports yours).
Once Bing knows your sitemap, it re-reads it on its own schedule. Resubmitting it on every deploy mostly earns throttles.
Takeaways
-
ThrottleIPis about where the call comes from. Shared egress such as Cloudflare Workers gets it, so call Bing from somewhere with its own IP. -
ThrottleUserfollowed the account and the call (SubmitFeed), not the IP or the key. Other calls kept working. - If a failed submit holds back state for a retry, a throttle must not count as a failure, or the retry repeats forever.
- Check the stored state after the first deploy that adds pages. A null
lastmodwas the only sign of this one.
Top comments (0)