Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Publishing Plot in PR Comments Not Working #101

Open
Chapi15 opened this issue Jun 18, 2024 · 1 comment
Open

Publishing Plot in PR Comments Not Working #101

Chapi15 opened this issue Jun 18, 2024 · 1 comment

Comments

@Chapi15
Copy link

Chapi15 commented Jun 18, 2024

I am trying to publish the confusion matrix in the comments section of a PR, it seems that there is a problem with the permissions of the runner:

{"code":"ERR_INVALID_URL","input":"<html>\r\n<head><title>400 Bad Request</title></head>\r\n<body>\r\n<center><h1>400 Bad Request</h1></center>\r\n<hr><center>cloudflare</center>\r\n</body>\r\n</html>\r\n","level":"error","message":"Invalid URL","stack":"TypeError [ERR_INVALID_URL]: Invalid URL\n at new NodeError (node:internal/errors:405:5)\n at new URL (node:internal/url:676:13)\n at uriParam (/usr/local/lib/node_modules/@dvcorg/cml/src/utils.js:149:15)\n at watermarkUri (/usr/local/lib/node_modules/@dvcorg/cml/src/utils.js:140:10)\n at CML.publish (/usr/local/lib/node_modules/@dvcorg/cml/src/cml.js:351:13)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async visitor (/usr/local/lib/node_modules/@dvcorg/cml/src/cml.js:249:26)\n at async Promise.all (index 0)\n at async publishLocalFiles (/usr/local/lib/node_modules/@dvcorg/cml/src/cml.js:263:7)"}

@Chapi15
Copy link
Author

Chapi15 commented Jun 18, 2024

This command doesn't break the workflow: cml comment create --pr --publish metrics.txt. It crashes if I try to publish a markdown file

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant