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

190
Visualizações
The provided route key is not formatted properly for HTTP protocol

An error occurred: HttpApiRoutePostv1Banks - The provided route key is not formatted properly for HTTP protocol. Format should be "[HTTP METHOD] /[RESOURCE PATH]" or "$default" (Service: AmazonApiGatewayV2; Status Code: 400; Error Code: BadRequestException; Request ID: 38370b30-9c11-4a66-9f2d-710fd2c25329; Proxy: null).

provider:
  ...
  httpApi:
    payload: '2.0' # Define Http format needed for API GW
  ...
functions:
  banksCreate:
    handler: src/banks.create
    events:
      - httpApi: 'POST v1/banks'

I had set up serverless.yml file according to the official documentation

when I run serverless offline everything working fine, but when I try to deploy error above occurs.

I am not sure where I make a mistake?

note that deployment was ok with restApi event

over 4 years ago · Santiago Trujillo
1 Respostas
Responde à pergunta

0

NOTE: error message says [HTTP METHOD] /[RESOURCE PATH] which means that / should at path start and path be separated by blank space.

provider:
  ...
  httpApi:
    payload: '2.0' # Define Http format needed for API GW
  ...
functions:
  banksCreate:
    handler: src/banks.create
    events:
      - httpApi: 'POST /v1/banks'
over 4 years ago · Santiago Trujillo Relatório
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