-
Notifications
You must be signed in to change notification settings - Fork 10
Open
Labels
bugSomething isn't workingSomething isn't working
Description
Describe the bug
Whenever trying to upload a file with the PUT request, it fails stating 'Invalid object'. Then, the application crashes and restarts.
...
{
"x_ssl_client": "***",
"x_ssl_client_issuer_dn": "***",
"x_ssl_client_notafter": "***",
"x_ssl_client_notbefore": "***",
"x_ssl_client_root_ca_dn": "***",
"x_ssl_client_session_id": "***",
"x_ssl_client_subject_cn": "***",
"x_ssl_client_subject_dn": "***",
"x_ssl_client_verify": "***",
"x_ugw_rerouter": "gateway-routkr77w/uifilter",
"x_vcap_request_id": "***",
"request_id":"***",
"x_correlation_id": "***",
"timestamp": "2025-07-22T12:44:31.408Z",
"msg": "❗️Uncaught Invalid Object",
"stacktrace": [
"Error: Invalid Object",
"at Socket.<anonymous> (/home/vcap/app/node_modules/@sap/hana-client/lib/index.js:53:13)",
"at Socket.emit (node:events:520:28)",
"at addChunk (node:internal/streams/readable:559:12)",
"at readableAddChunkPushByteMode (node:internal/streams/readable:510:3)",
"at Readable.push (node:internal/streams/readable:390:5)",
"at Pipe.onStreamRead (node:internal/stream_base_commons:191:23)",
"at Pipe.callbackTrampoline (node:internal/async_hooks:130:17)"
],
"code": -20001,
"sqlState": "HY000",
"query": false,
"layer": "cds",
"component_type": "application",
"container_id": "***",
"component_id": "***",
"component_name": "***",
"component_instance": 0,
"source_instance": 0,
"organization_name": "***",
"organization_id": "***",
"space_name": "***",
"space_id": "***",
"type": "log"
}
To Reproduce
1- Send a POST to /ui/odata/v1/<ENTITY>Service/<ENTITY>(1)/attachments
to prepare payload
{
"filename": "image25.png"
}
2- Send a PUT to /ui/odata/v1/<ENTITY>Service/<ENTITY>_attachments(up__ID=1,ID=<RESULTING ID FROM PREVIOUS REQUEST>)/content
Payload is a binary file.
Expected behavior
Upload successfully without crashes
[ ] is it a regression issue?
Screenshots
If applicable, add screenshots to help explain your problem.
Customer Info
SAP
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working