on 01-28-2022 8:26 AM
Hi team,
I was just trying to call an CAP action as a webhook that uses the mime type "application/x-www-form-urlencoded" and got the following error:
No payload deserializer available for resource kind 'ACTION_PARAMETERS' and mime type 'application/x-www-form-urlencoded'
It works with the exact same payload when I use application/json but I cannot really control how the webhook is triggered. The action is defined as follows:
action restock( ![Body] : String, ![From] : String, .... );
And I'm using the following versions:
@sap/cds: 5.7.5
@sap/cds-compiler: 2.11.4
@sap/cds-dk: 4.7.3
@sap/cds-foss: 3.0.0
Node.js: v16.13.2
bookshop: 1.0.0
Can you confirm that this is intended?
Thanks David. I'll go ahead and move the logic to a custom middleware then 🙂
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
78 | |
9 | |
9 | |
7 | |
7 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.