netlify/cli

I really don't know

Opened this issue · 6 comments

Describe the bug

I was told to report this. See below.

Please report this problem at https://ntl.fyi/cli-error including the error details below.

URIError: URI malformed
at decodeURIComponent ()
at rewriter (file:///C:/Users/Peter/AppData/Roaming/npm/node_modules/netlify-cli/dist/utils/rules-proxy.js:90:19)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async onRequest (file:///C:/Users/Peter/AppData/Roaming/npm/node_modules/netlify-cli/dist/utils/proxy.js:623:19)

System:
OS: Windows 10 10.0.19045
CPU: (8) x64 Intel(R) Core(TM) i7-4702HQ CPU @ 2.20GHz
Binaries:
Node: 20.9.0 - C:\Program Files (x86)\nodejs\node.EXE
npm: 10.1.0 - C:\Program Files (x86)\nodejs\npm.CMD
Browsers:
Edge: Chromium (122.0.2365.92)

Steps to reproduce

I entered 'netlify dev' (without the quotes)

Configuration

System:
OS: Windows 10 10.0.19045
CPU: (8) x64 Intel(R) Core(TM) i7-4702HQ CPU @ 2.20GHz
Binaries:
Node: 20.9.0 - C:\Program Files (x86)\nodejs\node.EXE
npm: 10.1.0 - C:\Program Files (x86)\nodejs\npm.CMD
Browsers:
Edge: Chromium (122.0.2365.92)

Environment

System:
OS: Windows 10 10.0.19045
CPU: (8) x64 Intel(R) Core(TM) i7-4702HQ CPU @ 2.20GHz
Memory: 6.21 GB / 15.91 GB
Binaries:
Node: 20.9.0 - C:\Program Files (x86)\nodejs\node.EXE
Yarn: 1.22.21 - ~\Documents\Visual_Studio_Code\Projects\WebApplication5\WebApplication5\node_modules.bin\yarn.CMD
npm: 9.9.2 - ~\Documents\Visual_Studio_Code\Projects\WebApplication5\WebApplication5\node_modules.bin\npm.CMD

I have some more details on this 'bug'. I am not sure (either way) if this is really a Netlify bug or not. The error is occurring in a decodeURICompont() call in rules-proxy.js. What is interesting is that decodeURIComponent is being invoked on 'bad' data. However, I don't know if the code should have even made it that far. I have many more details, if you need them.

Hi Peter! What version of the Netlify CLI are you using? Also, could you provide a minimal reproduction repo, that I can use to look at this on my machine?

https://github.com/pschaeffer/my-remix-udemy-section3-netlify3 gives me an error when running npm run build. I can't reproduce the error you're reporting based on that. I'd be happy help here, but I really need a minimal reproduction case.