Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

199
Views
La clave de ruta proporcionada no tiene el formato adecuado para el protocolo HTTP

Ocurrió un error: HttpApiRoutePostv1Banks : la clave de ruta proporcionada no tiene el formato adecuado para el protocolo HTTP. El formato debe ser "[MÉTODO HTTP]/[RUTA DE RECURSOS]" o "$predeterminado" (Servicio: AmazonApiGatewayV2; Código de estado: 400; Código de error: BadRequestException; ID de solicitud: 38370b30-9c11-4a66-9f2d-710fd2c25329; Proxy: nulo ).

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

Había configurado el archivo serverless.yml de acuerdo con la documentación oficial

cuando ejecuto el servidor sin conexión, todo funciona bien, pero cuando intento implementar, ocurre el error anterior.

¿No estoy seguro de dónde cometí un error?

tenga en cuenta que la implementación estuvo bien con el evento restApi

over 4 years ago · Santiago Trujillo
1 answers
Answer question

0

NOTA : el mensaje de error dice [HTTP METHOD] /[RESOURCE PATH] , lo que significa que / debe estar separado por un espacio en blanco al inicio de la ruta y la ruta.

 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 Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!