on 2022 Oct 06 5:23 AM
Hi CAP Community,
I am wondering if anyone has encountered error like the following when "axios" like call is involved in cds.test implementatoin.

It's just simple call retrieving $metadata like the following:
it("serves custom endpoint", async () => {
const {
headers,
status
} = await GET("/user/$metadata", {});
expect(status).to.equal(200);
})
RegardsChong Wah
Request clarification before answering.
Hi,
the error is caused by the new version 1.0.0 of axios. We will provide a fix as part of this week's sap/cds release 6.2.1. So stay tuned or go back to an older axios version with `npm i axios@0.x`
We have also reported the issue against axios: https://github.com/axios/axios/issues/5017
Christian
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 17 | |
| 8 | |
| 7 | |
| 6 | |
| 4 | |
| 3 | |
| 3 | |
| 2 | |
| 2 | |
| 2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.