Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

321
Visualizações
Does AWS sdk have error handling logic? If not, which sdk have error handling logic?

There is no error handling logic in the sdk that I am currently making. So when an error occurs in the API call, the error message given by the API is just displayed to the user.

I think sdk needs backoff logic (error handling, retry, etc.) for user convenience.

So I'm looking at aws sdk. However, AWS sdk also seems to be simply creating an error object and displayed errors from the API.

According to my research, Forexample ...

// 1. When input invalidate accountId type.
var client = new AWS.S3Control().getPublicAccessBlock({AccountId : accountId}).build();
// 2. It occur error.
getPublicAccessBlock(params: ...params, callback?: (err: AWSError, data: ...data) => void): Request< ...data, AWSError>;

// 3. AWS sdk simply displayed error in AWSError object 
export type AWSError = Error & {
  code: string;
  message: string;
  retryable?: boolean;
  statusCode?: number;
  time: Date;
  hostname?: string;
  region?: string;
  retryDelay?: number;
  requestId?: string;
  extendedRequestId?: string;
  cfId?: string;
  originalError?: Error
}

MyGoal is

  • Is there an error handling logic in aws sdk?
  • If not, which sdk is helpful with error handling logic among the other sdk?
about 4 years ago · Juan Pablo Isaza
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda