-
Notifications
You must be signed in to change notification settings - Fork 19
Request for non-existing resource responds with 400 (runtime) #369
Comments
the problem here is not the strain cookie - it only manifests here, because the root path of the strain is wrong. the underlying problem is that eg:
|
running the action locally shows the correct response:
maybe something changed on openwhisk? |
apparently, when the eg:
vs:
|
as @alexkli pointed out: Once there is one
This is useful if you want a human readable error message and some programmatic error information such as codes. whether the activation is an error or not is your choice I guess. I agree, for webactions a 4xx or 5xx http response should usually be a so when we use:
then the result is as expected:
with:
However, I agree with @alexkli, that we should not treat expected errors as application errors. |
## [3.2.2](v3.2.1...v3.2.2) (2019-06-11) ### Bug Fixes * **openwhisk:** never set the 'error' property of the response. ([5fc020a](5fc020a)), closes [#369](#369)
🎉 This issue has been resolved in version 3.2.2 🎉 The release is available on: Your semantic-release bot 📦🚀 |
Description
a request with a x-strain cookie of strain that does not exist returns a 400.
To Reproduce
The activation on wsk shows:
Expected behavior
The server should respond with a
404
.@trieloff WDYT?
The text was updated successfully, but these errors were encountered: