Saltar al contenido

Bedrock keeps responding with 503 Error (Service unavailable)

0

My team has started using Bedrock (Claude 3.5 sonnet) (calling from Lambda) since last week. The issue is that from yesterday, Bedrock keeps responding with 503 Error (Service unavailable), while it sometimes works well. (More 503 than 200). We do understand that there is a runtime limit per minute, and we have confirmed that the limit has not been reached yet. We have no idea on what's causing this. Does anyone have experience encountering the same issue? Any possible solutions / reasons are highly appreciated!

preguntada hace un año5,9 mil visualizaciones
1 Respuesta
2

Hi there!

A 503 error generally indicates that the service is temporarily unavailable, which can be frustrating when you're within your usage limits. Here are a few things to consider:

Regional Availability: Make sure you're using Bedrock in a region where it's fully supported. Sometimes, 503 errors can occur if the service is experiencing high demand in a particular region.

Concurrency Limits: Even if you're within your overall rate limits, you might be hitting concurrency limits. Bedrock has limits on the number of concurrent requests. Consider staggering your Lambda invocations to see if that reduces the frequency of 503 errors.

Retry Logic: Implement exponential backoff in your Lambda function. This means that if you receive a 503 error, your function waits a little longer before trying again. This can help manage temporary service issues.

You can find more details on handling AWS service limits and errors in the AWS documentation about service quotas.

I hope this helps! 😁

respondido hace un año
EXPERTO
revisado hace un año
EXPERTO
revisado hace un año
  • Hi, catching ThrottlingException is very important with Bedrock: you'll get it on regular basis if you submit too many requests. Then, exponential backoff should be implemented.

No has iniciado sesión. Iniciar sesión para publicar una respuesta.

Una buena respuesta responde claramente a la pregunta, proporciona comentarios constructivos y fomenta el crecimiento profesional en la persona que hace la pregunta.