-
-
Notifications
You must be signed in to change notification settings - Fork 461
Proxy mode does not work with @mockoon/serverless v9.4.0 #2033
Copy link
Copy link
Open
Labels
component:lib-commons-serverIssue related to the @mockoon/commons-server libIssue related to the @mockoon/commons-server libeffort:mediumModerate effort requiredModerate effort requiredpriority:lowNice-to-have features or minor issuesNice-to-have features or minor issuesstatus:need-investigationMore investigation is required to decide if it's feasibleMore investigation is required to decide if it's feasible
Metadata
Metadata
Assignees
Labels
component:lib-commons-serverIssue related to the @mockoon/commons-server libIssue related to the @mockoon/commons-server libeffort:mediumModerate effort requiredModerate effort requiredpriority:lowNice-to-have features or minor issuesNice-to-have features or minor issuesstatus:need-investigationMore investigation is required to decide if it's feasibleMore investigation is required to decide if it's feasible
Describe the bug
I am running Mockoon in AWS Lambda. This bug does not happen when running Mockoon locally from the desktop app.
When an API request does not match a mock to Mockoon in proxy mode, it fails with a 404 error code instead of being passed to the proxy server.
Here are the Mockoon logs for the sample Mockoon config. Note that even though the first request was a match, it still outputted `requestProxied: true:
Steps to Reproduce
@mockoon/serverless@9.4.0<host>/pokemon/ditto. Get"pokemon": "ditto"as response<host>/pokemon/pikachu. Get 404 response as if request was not proxied.Mockoon version:
@mockoon/serverless@9.4.0
This bug does not happen in 9.3.0.
OS / OS version:
AWS Lambda running NodeJS v20