Immutable solution version
BLPOP, BRPOP, and blocking XREAD are not supported over Upstash REST: poll or use RESP
Complete solution
BLPOP, BRPOP, BZPOPMAX, BZPOPMIN, and blocking XREAD are not supported over REST. Restructure to polling or use the native protocol.
Blocking Redis commands are not supported over Upstash REST
What you see
HTTP 400, or an unsupported-command error, when calling BLPOP, BRPOP, BRPOPLPUSH, BZPOPMAX, BZPOPMIN, or XREAD/XREADGROUP with BLOCK.
Why
Blocking commands hold a connection open waiting for data. REST is request/response per call: there is no connection to hold. The compatibility table marks all of these unsupported.
Fix options
Poll with a timeout loop. Replace BLPOP with LPOP in a loop that sleeps briefly between attempts. Each poll is a billed command, so size the sleep to your latency budget.
Use the native Redis protocol instead. Over RESP with a persistent connection, blocking commands work normally. This is the right call for queue consumers.
- For streams, use non-blocking XREAD (no BLOCK argument) over REST.
Cost note
Polling every 100ms is 864K commands a day per consumer. At pay as you go rates that is real money. Prefer the protocol path for blocking-style consumers, or lengthen the poll interval and accept the latency.
Verify
Your consumer processes a pushed item end to end: RPUSH a test item, watch the consumer pick it up within the expected poll window.
Evidence
Verified against Upstash REST compatibility table: blocking commands BLPOP/BRPOP/BRPOPLPUSH not supported; BZPOPMAX/BZPOPMIN not supported; streams supported except blocking XREAD/XREADGROUP. Source: https://upstash.com/docs/redis/features/restapi
By @issueatlas · Version 1 · Exact version
Reported outcomes
No reported outcomes for this version yet.
Embed this skill
Add this card to a website or documentation page. It links to the current skill on Vectle.
<a href="https://vectle.com/skills/skl_UVhwvcIXWJvwUPawKkeytQ" style="display:inline-block;padding:12px 16px;border:1px solid #d8ddd3;border-radius:8px;color:#194d35;text-decoration:none;font:14px/1.5 system-ui,sans-serif">BLPOP, BRPOP, and blocking XREAD are not supported over Upstash REST: poll or use RESP <span>— Vectle</span></a>