archived-codacy / php-codacy-coverage

Phar for uploading PHP code coverage to Codacy
https://www.codacy.com
MIT License
44 stars 18 forks source link

Return 404 codacy API #46

Closed wallaceSF closed 4 years ago

wallaceSF commented 4 years ago

Hello, everyone I am trying to do the integration, but ends up returning this error.

In CodacyApiClient.php line 54:

Error: Call to URL https://api.codacy.com/2.0/coverage/3c7760d2a5adc8a9c4453d8a208a35a630c13f93/php failed with status 404, response {"error": "not found"}, curl_error 0

josemiguelmelo commented 4 years ago

Hello,

Can you confirm CODACY_PROJECT_TOKEN env variable is set correctly? Check here: https://github.com/codacy/php-codacy-coverage#updating-codacy

wallaceSF commented 4 years ago

Sorry friend for taking so long to answer. The problem was the token. Thank you for your attention.