Skip to content

req.data.target undefined #386

@sebastien-savalle

Description

@sebastien-savalle

We found an issue when migrating from cds 8 to cds 9.

req.data.target is undefined, which raise an exception:

TypeError: Cannot read properties of undefined (reading 'Symbol(unqueued)')
at cds.unqueued

@cap-js/telemetry/lib/metrics/queue.js:181

Image

Issue found during testing with sqlite when trying to insert data.

@sap/cds 9.4.4
@cap-js/telemetry 1.5.4
@cap-js/sqlite 2.0.4

Steps to reproduce:

  • Create a simple test case where you try to insert data in sqlite table (cds.outbox.Messages in our case)
  • Exception will be thrown due to undefined value.

Could you have a look ?
Thanks,
Sebastien

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions