This repository was archived by the owner on Jan 10, 2023. It is now read-only.
This repository was archived by the owner on Jan 10, 2023. It is now read-only.
TypeError: Cannot read property 'startsWith' of undefined #324
Closed
Description
I know there is a related error in #284, I decided to open a new issue as this hits us 100% of the time, instead of rare cases reported in the other issue.
Since the last few weeks Codecov cannot upload coverage reports from Github Actions 100% of the time for some repositories. This causes a lot of work for us as all automated PRs like dependency updates must be merged manually.
We use the following command to upload our coverage:
codecov -f ./coverage/clover.xml -t --commit=$GITHUB_SHA --branch=${GITHUB_REF##*/}
The log from the CLI is the following:
codecov -f ./coverage/clover.xml -t --commit=$GITHUB_SHA --branch=${GITHUB_REF##*/}
shell: /usr/bin/bash -e {0}
_____ _
/ ____| | |
| | ___ __| | ___ ___ _____ __
| | / _ \ / _` |/ _ \/ __/ _ \ \ / /
| |___| (_) | (_| | __/ (_| (_) \ V /
\_____\___/ \__,_|\___|\___\___/ \_/
v3.8.2
==> Detecting CI Provider
GitHub Actions CI Detected
==> Configuration:
Endpoint: codecov.io
{
commit: '<redacted>',
branch: 'node-6.7.2',
package: 'node-v3.8.2'
}
==> Building file structure
==> Generating gcov reports (skip via --disable=gcov)
$ find /home/runner/work/<redacted>-api/<redacted>-api -type f -name '*.gcno' -exec gcov {} +
Failed to run gcov command.
==> Targeting specific file
+ /home/runner/work/<redacted>-api/<redacted>-api/coverage/clover.xml
==> Uploading reports
/opt/hostedtoolcache/node/16.3.0/x64/lib/node_modules/codecov/node_modules/teeny-request/build/src/agents.js:33
const isHttp = uri.startsWith('http://');
^
TypeError: Cannot read property 'startsWith' of undefined
at Object.getAgent (/opt/hostedtoolcache/node/16.3.0/x64/lib/node_modules/codecov/node_modules/teeny-request/build/src/agents.js:33:24)
at requestToFetchOptions (/opt/hostedtoolcache/node/16.3.0/x64/lib/node_modules/codecov/node_modules/teeny-request/build/src/index.js:65:30)
at teenyRequest (/opt/hostedtoolcache/node/16.3.0/x64/lib/node_modules/codecov/node_modules/teeny-request/build/src/index.js:121:30)
at /opt/hostedtoolcache/node/16.3.0/x64/lib/node_modules/codecov/lib/codecov.js:214:9
at /opt/hostedtoolcache/node/16.3.0/x64/lib/node_modules/codecov/node_modules/teeny-request/build/src/index.js:219:13
at processTicksAndRejections (node:internal/process/task_queues:96:5)
Error: Process completed with exit code 1.
Metadata
Metadata
Assignees
Labels
No labels