Error cml writing metrics to md file with Github Actions
Bwan109 opened this issue · 4 comments
Bwan109 commented
Hi, I'm facing this issue when running cat metrics.txt >> report.md
{"code":"ERR_INVALID_URL","input":"\r\n<title>400 Bad Request</title>\r\n\r\n
400 Bad Request
\r\ncloudflare\r\n\r\n\r\n","level":"error","message":"Invalid URL","stack":"TypeError [ERR_INVALID_URL]: Invalid URL\n at new NodeError (node:internal/errors:399:5)\n at new URL (node:internal/url:560: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:349: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:247:26)\n at async Promise.all (index 1)\n at async publishLocalFiles (/usr/local/lib/node_modules/@dvcorg/cml/src/cml.js:261:7)"}
dacbd commented
It is likely from your node version, can you try with node v16?
…On Sat, Jun 24, 2023, 08:11 VS - Brandon Wan ***@***.***> wrote:
Hi, I'm facing this issue when running cat metrics.txt >> report.md
{"code":"ERR_INVALID_URL","input":"\r\n<title>400 Bad
Request</title>\r\n\r\n
400 Bad Request\r\n
------------------------------
cloudflare\r\n\r\n\r\n","level":"error","message":"Invalid
URL","stack":"TypeError [ERR_INVALID_URL]: Invalid URL\n at new NodeError
(node:internal/errors:399:5)\n at new URL (node:internal/url:560:13)\n at
uriParam ***@***.***/cml/src/utils.js:149:15)\n at
watermarkUri
***@***.***/cml/src/utils.js:140:10)\n at
CML.publish ***@***.***/cml/src/cml.js:349:13)\n
at process.processTicksAndRejections
(node:internal/process/task_queues:95:5)\n at async visitor
***@***.***/cml/src/cml.js:247:26)\n at async
Promise.all (index 1)\n at async publishLocalFiles
***@***.***/cml/src/cml.js:261:7)"}
Find my Actions file here:
https://github.com/Bwan109/MLOps-cml-dvcpipeline/blob/experiment/.github/workflows/train.yaml
—
Reply to this email directly, view it on GitHub
<#1393>, or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAIN7M4OZTVYWWRG6DTXUT3XM37R7ANCNFSM6AAAAAAZSR7WP4>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
Bwan109 commented
dacbd commented
@Bwan109 how you have that workflow wont work, try something like this please:
jobs:
run:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
- uses: actions/setup-node@v3
with:
node-version: 16
- uses: iterative/setup-dvc@v1
- uses: iterative/setup-cml@v1
...
you can also use the latest container image we build:
jobs:
run:
runs-on: ubuntu-latest
container: ghcr.io/iterative/cml:0-dvc3-base1
steps:
- uses: actions/checkout@v3
...
Bwan109 commented
Thanks, it's able to work now