-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
POST Key Event - exception handler #359
Comments
hey @iustinp, this shouldn't happen as there is a validation check for types in place here: https://github.com/adobe/spacecat-shared/blob/6bed3412af558946575f9f6be6d313ff0511db40/packages/spacecat-shared-data-access/src/models/key-event.js#L68-L70
The status code is 500 Internal Server error but it should a 400 - Bad Request as the type is incorrect. |
Hello! Indeed, i was able to see that the timeout-like behaviour is induced by Power Automate HTTP request action, because while the response from the spacecat API is instant (with the details you provided), the automation only fails after ~25minutes. |
Updated the title for this ticket The approach is to have an |
Description
Trying to create a new key event of a type other than the existing ones, will result in request timing out.
To Reproduce
E.g. Try adding a key of type: "type"
Expected behavior
Request should return an error.
The text was updated successfully, but these errors were encountered: