Why is ODataV4Adaptor sending batch requests with payload like "PATCH null(109) HTTP/1.1"?
By following this doc page: Adaptors in EJ2 TypeScript DataManager | Syncfusion
I recently have setup a Apache Olingo ODataV4 data service to support Gantt chart
And I was trying to integrate them today. But the gantt chart keeps sending batch requests like the following when i was editing a task's taskname(or text) inline:
Note that the batch request payload shows " PATCH null(101) HTTP/1.1 ", which should be " PATCH Tasks(101) HTTP/1.1 "
This is apparently a frontend setup issue, please help, thanks a lot!
The request and payload:
App.vue
main.ts
Hi Ryan,
We attempted to replicate the issue you described, where the batch request payload shows "PATCH null(101) HTTP/1.1" instead of the expected "PATCH Tasks(101) HTTP/1.1". However, we were unable to reproduce the issue on our end.
We suspect that the issue may be related to the configuration or path of the batchUrl method. To help us investigate further, please provide the following:
- The backend controller file:
GanttTasksService/DemoService.svc - A video demonstration showing how the issue occurs
- Alternatively, you may replicate the issue using the sample provided below or share your runnable back-end sample.
Client Sample - Ratwuh5o (duplicated) - StackBlitz
Server Sample - https://www.syncfusion.com/downloads/support/directtrac/general/ze/OdataV4_Server
Regards,
Sridharan
Hi Ryan,
Thank you for sharing your code samples.
We have reviewed both the backend and frontend code you provided in your previous response. While we were unable to run the backend sample directly, we noticed that the localhost was still accessible (refer screenshot). Therefore, we used the specified port number to run the client-side application and were able to successfully fetch data using the GET method.
We also attempted to perform CRUD operations but were unable to execute them successfully.
To proceed, we created a separate backend sample based on your controller file. Using this setup, we tested the scenario you reported — specifically, editing the task name in a cell and checking the payload in the network tab. However, we were not able to reproduce the issue on our end.
We recommend reviewing our backend implementation and adapting it to your application. This approach may help resolve the issue you're facing.
Back End Sample - https://www.syncfusion.com/downloads/support/directtrac/general/ze/Batch_OdataV4_Crud
Front End Sample - https://stackblitz.com/edit/l8etbz9p-zqynxssr?file=src%2FApp.vue
Documentation - Bind data & perform CRUD action with ODataV4Adaptor in Syncfusion Grid
Video demo - https://www.syncfusion.com/downloads/support/directtrac/general/ze/OdataVideo
Regards,
Sridharan
- 3 Replies
- 2 Participants
-
RY Ryan.L
- Jul 12, 2025 12:29 PM UTC
- Jul 22, 2025 01:54 PM UTC