Open prabhu opened 7 months ago
Looks like these bugs are still unresolved.
https://github.com/CycloneDX/cdxgen/actions/runs/8788201035/job/24115125965#step:75:74
Latest error with got 14.3.0
767 | const cacheRequest = cacheableStore.get(options.cache)(options, async (response) => {
768 | response._readableState.autoDestroy = false;
769 | if (request) {
770 | const fix = () => {
771 | if (response.req) {
772 | response.complete = response.req.res.complete;
^
TypeError: undefined is not an object (evaluating 'response.req.res.complete')
at fix (/home/runner/work/cdxgen/cdxgen/node_modules/got/dist/source/core/index.js:772:49)
at /home/runner/work/cdxgen/cdxgen/node_modules/got/dist/source/core/index.js:776:21
at /home/runner/work/cdxgen/cdxgen/node_modules/got/dist/source/core/index.js:767:84
at /home/runner/work/cdxgen/cdxgen/node_modules/cacheable-request/dist/index.js:148:25
at handler (/home/runner/work/cdxgen/cdxgen/node_modules/cacheable-request/dist/index.js:77:40)
at node:http:930:191
Tests that involve HTTP calls with got are broken with bun. It's best to wait till it improves since rewriting cdxgen without got is not risk-free.