Skip to content
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

BUG - Invalid boundary while parsing batch request (@sap-ux/ui5-middleware-fe-mockserver) with karma #394

Closed
tobiasso85 opened this issue Jan 11, 2023 · 2 comments

Comments

@tobiasso85
Copy link

tobiasso85 commented Jan 11, 2023

Error Invalid boundary while parsing batch request occurred when running ui5-middleware-fe-mockserver after compression task within karma-ui5

Features

@sap-ux/ui5-middleware-fe-mockserver

Description

when running the mockserver within karma-ui5, OData $batch requests fail with Invalid boundary while parsing batch request.
The batch request's body becomes {}

  • ui5.yaml
...
server:
  customMiddleware:
    - name: sap-fe-mockserver
      afterMiddleware: compression
...

see related:

Workaround

When changing

afterMiddleware: compression

to

beforeMiddleware: csp

it works.

Expectation

Documentation of the issue or fix

@tobiasso85 tobiasso85 changed the title BUG - Invalid boundary while parsing batch request (@sap-ux/ui5-middleware-fe-mockserver) BUG - Invalid boundary while parsing batch request (@sap-ux/ui5-middleware-fe-mockserver) with karma Jan 11, 2023
@nlunets
Copy link
Member

nlunets commented Jan 12, 2023

HI @tobiasso85 thanks for this, we actually had that in the readme before but i can't find it so we probably lost it during migration.
Will update this :)

@nlunets
Copy link
Member

nlunets commented Jan 12, 2023

Documentation update in main, will be included in the next release !

@nlunets nlunets closed this as completed Jan 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants