Closed pathikrit closed 6 years ago
Hi @pathikrit that seems like a permission issue. Can you confirm you have an environment variable named CODACY_PROJECT_TOKEN
with the token you can find in Project > Settings > Integrations
?
Yes, I have the CODACY_PROJECT_TOKEN
:
The version of the lib seems the latest and the token seems to be correctly exported. I did some tests and cannot replicate the issue.
Can you retry the build to make sure it was not some problem with the API at that time?
If not, can you check if the token is being correctly encrypted? Your token should end with eb2
, can you confirm this?
It ends with jQ !
That is the issue. You need to get the token from Project -> Settings -> Integrations -> Add Integration -> Project API
.
Check https://github.com/codacy/sbt-codacy-coverage#updating-codacy for any more details.
let me know if it works.
Ok, my bad, I updated the token and it worked: https://travis-ci.org/pathikrit/better-files
Feedback:
Failed to upload data. Reason: not found
if an invalid token is used - that would have clued the user to the cause.I added some more info to the README and eventually we will try to improve the messages.
Just out of curiosity, how did you find about the account token?
Scala Version (2.10.x / etc)
Operating System (Ubuntu 15.10 / MacOS 10.10 / Windows 10)
JDK (Oracle 1.8.0_72, OpenJDK 1.8.x, Azul Zing)
Library Dependencies
Expected Behavior
This should work:
Actual Behavior
Reproducible Test Case
See: https://travis-ci.org/pathikrit/better-files/builds/382231885