Skip to content
This repository was archived by the owner on Feb 19, 2020. It is now read-only.

Commit acd640a

Browse files
authored
Add not found error to troubleshooting
1 parent 6a92246 commit acd640a

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

README.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,17 @@ If you are using an automated CI that also runs builds from forks but does not h
119119
project token to send coverage you should protect the coverage step in your configuration to avoid
120120
the build failure.
121121

122+
2. Failing to send coverage
123+
124+
> Message: `Failed to upload data. Reason: not found`
125+
126+
This issue is usually related to bad authentication. Make sure you are using the correct token.
127+
Most time you will want to use the Project API Token as described in [Updating Codacy](#updating-codacy).
128+
129+
If you decide to use the Account API Token, you will need to provide extra details about your project.
130+
You need to make sure to provide the project owner username and the project name on Codacy
131+
as part of the identification when pushing coverage.
132+
122133
**Example**
123134
```
124135
if [[ -n "$CODACY_PROJECT_TOKEN" ]]; then sbt codacyCoverage; else echo "Skipped coverage reporting since no token was found"; fi

0 commit comments

Comments
 (0)