Connection timed out error

Description

I’m regularly getting the “Connection timed out” error.

Repository

CI/CD

Travis CI

Uploader

Bash uploader

Commit SHAs

Codecov YAML

Codecov Output

The command "if [[ -n “{TRAVIS_PULL_REQUEST_SLUG}" && "{TRAVIS_PULL_REQUEST_SLUG}” != “{TRAVIS_REPO_SLUG}" ]]; then echo "The pull request from {TRAVIS_PULL_REQUEST_SLUG} is an EXTERNAL pull request. Skip sonar analysis.”
sh Scripts/travis_build_codecov.sh
else
sh Scripts/travis_build_codecov_sonar.sh
fi
" exited with 7.

Steps to Reproduce

Just upload

Expected behavior: Successful upload.

Actual behavior: “Connection timed out” error.

Flakiness? Always.

Hi @utilForever, can you provide the full Codecov output from this line or a link to the Travis build that is failing?

@tom Thanks for quick reply. :smiley:
https://travis-ci.com/github/utilForever/RosettaStone/jobs/363896467

@utilForever, I’m making some guesses here because this script seems to be doing a lot. Googling shows that exit code 7 on Travis is likely a failed curl command. We are working on moving the bash script to a CDN, but until then, I would suggest adding --retry 5 to the command

@tom Thanks! I added the command --retry 5 and works normally. :fireworks:

1 Like