airbnb_error
Airbnb had an outage or timed out. The request is fine; retry with backoff.
When it fires
Airbnb did not complete a write — an outage, a timeout, or a server error on Airbnb's side. It comes from PUT /v1/channels/airbnb/listings/{id}/pricing and /availability. Only Airbnb-side failures produce it: a request Airbnb refuses is 422 airbnb_rejected, and an authorization problem is 403 connection_reauth_required.
Response shape
Every Repull error follows the same envelope. The code is stable and safe to switch on.
{
"error": {
"code": "airbnb_error",
"message": "Request timed out",
"fix": "Airbnb did not complete the request (an outage, timeout or server error on their side). Nothing about the request needs to change: retry with exponential backoff.",
"docs_url": "https://repull.dev/docs/errors/airbnb_error",
"request_id": "req_01J5X7Y8Z9ABCDEF12345678"
}
}How to fix
- Retry the same request with exponential backoff and jitter — nothing about it needs to change.
- If it keeps failing for several minutes, Airbnb is likely having an incident. Queue the write and try again later.
- Before retrying a large batch, you can read the current state with `GET /v1/channels/airbnb/listings/{id}/availability?start_date=…&end_date=…` to see whether part of it landed.
Examples
curl
# Safe to resend unchanged after a backoff
curl -X PUT https://api.repull.dev/v1/channels/airbnb/listings/4118/pricing \
-H "Authorization: Bearer sk_live_YOUR_KEY" \
-H "Content-Type: application/json" \
-d '{"type": "calendar", "operations": [{"dates": ["2026-07-01"], "daily_price": 240}]}'TypeScript
const res = await fetch('https://api.repull.dev/v1/channels/airbnb/listings/4118/pricing', {
method: 'PUT',
headers: {
Authorization: `Bearer ${process.env.REPULL_API_KEY}`,
'Content-Type': 'application/json',
},
body: JSON.stringify({ type: 'calendar', operations: [{ dates: ['2026-07-01'], daily_price: 240 }] }),
})
if (res.status === 502) {
const { error } = await res.json()
if (error.code === 'airbnb_error') {
// Airbnb-side failure: schedule a retry with backoff
await retryQueue.add({ listingId: 4118, attempt: 1 })
}
}If you're an AI agent
Airbnb had an outage or timed out. The request is fine: retry it unchanged with exponential backoff. If it keeps failing, tell the user Airbnb appears to be having problems and retry later.
Related
- Error reference — the full table of error codes
- Using Repull from AI agents — patterns for handling errors in agent loops
- Update Airbnb Pricing
- airbnb_rejected
Hit an error that isn't covered? Email hello@repull.dev with the request id from the response headers.