Skip to content
This repository has been archived by the owner on Jun 30, 2021. It is now read-only.

Failed to post: {"error":"not found"} #6

Closed
jsloyer opened this issue Oct 2, 2018 · 3 comments
Closed

Failed to post: {"error":"not found"} #6

jsloyer opened this issue Oct 2, 2018 · 3 comments

Comments

@jsloyer
Copy link

jsloyer commented Oct 2, 2018

It looks like this is related to codacy/codacy-coverage-reporter#11

I was trying to upload a coverage file with the following command and got the error Failed to post: {"error":"not found"}. It looks like this is related to codacy/codacy-coverage-reporter#11.

godacov -t xxxx -r ./cover.out -c xxx

Any ideas?

It looks like this is related to the custom base url, for example the java client supports an environment variable called CODACY_API_BASE_URL that allows you to override the base url

@ryancurrah
Copy link

I had the same problem. Turned out I was using the wrong API token. You need to get the token from Project -> Settings -> Integrations -> Add Integration -> Project API.

@schrej
Copy link
Owner

schrej commented Nov 30, 2018

Did that solve your issue?
By now you can also override the baseurl in this tool: https://github.com/schrej/godacov/blob/master/cmd/root.go#L61

@schrej
Copy link
Owner

schrej commented Dec 8, 2018

Closing this for now, if it's still an issue I feel free to reopen it

@schrej schrej closed this as completed Dec 8, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants