serverless-offline icon indicating copy to clipboard operation
serverless-offline copied to clipboard

Search for a configuration registered in responses

Open denys-correia opened this issue 2 years ago • 2 comments

Feature Request

We are receiving an error when calling an endpoint where it does not have a "response" registered as "default" key. image

Sample Code

Searches for the first configuration registered within the response configurations.

  • file: dist\events\http\HttpServer.js
let responseName = Object.keys(endpoint.responses)[0];

Expected behavior/code When calling the endpoint is returned successfully. even with the absence of a setting called "default"

Additional context/Screenshots

Motivation and Context Fixes: 1680

denys-correia avatar Jul 03 '23 19:07 denys-correia

Up

Faires12 avatar Jul 06 '23 13:07 Faires12

Up

matricali avatar Nov 06 '23 07:11 matricali

up

JoshuaCEnrico avatar Mar 06 '24 23:03 JoshuaCEnrico

@Denis-String Fixed in v13.3.4

DorianMazur avatar Apr 19 '24 15:04 DorianMazur