You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
in our application we have some custom coding which sends an odata batch request of content type application/json. This is how the request looks like:
Unfortunately the mock server seems to not be able to process this batch request correctly and throws an error in batchParser.js when parsing the request:
ERR! server:ux-fe-mockserver TypeError: input.indexOf is not a function
I assume this is a bug in the mockserver or a not supported feature.
Could you please let me know how to solve this?
We are using the latest version "@sap-ux/ui5-middleware-fe-mockserver": "^2.2.87"
Thanks in advance! :)
Expected results
It should parse the batch request and return the data for the 3 mocked endpoints
Actual results
The error shown above is thrown
Version/Components/Environment
Add any other context about the problem here
OS:
Mac OS
Windows
Other
Root Cause Analysis
Problem
{describe the problem}
Fix
{describe the fix}
Why was it missed
{Some explanation why this issue might have been missed during normal development/testing cycle}
How can we avoid this
{if we don’t want to see this type of issues anymore what we should do to prevent}
The text was updated successfully, but these errors were encountered:
This looks like json batch ?
Can you send the full request detail (har file works), but overall we don't support json batch so we would need to look into whether it make sense or not :)
Description
Hi team,
in our application we have some custom coding which sends an odata batch request of content type application/json. This is how the request looks like:
Unfortunately the mock server seems to not be able to process this batch request correctly and throws an error in batchParser.js when parsing the request:
ERR! server:ux-fe-mockserver TypeError: input.indexOf is not a function
I assume this is a bug in the mockserver or a not supported feature.
Could you please let me know how to solve this?
We are using the latest version "@sap-ux/ui5-middleware-fe-mockserver": "^2.2.87"
Thanks in advance! :)
Expected results
It should parse the batch request and return the data for the 3 mocked endpoints
Actual results
The error shown above is thrown
Version/Components/Environment
Add any other context about the problem here
OS:
Root Cause Analysis
Problem
{describe the problem}
Fix
{describe the fix}
Why was it missed
{Some explanation why this issue might have been missed during normal development/testing cycle}
How can we avoid this
{if we don’t want to see this type of issues anymore what we should do to prevent}
The text was updated successfully, but these errors were encountered: