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

I really don't know #6448

Open
pschaeffer opened this issue Mar 17, 2024 · 6 comments
Open

I really don't know #6448

pschaeffer opened this issue Mar 17, 2024 · 6 comments
Labels
type: bug code to address defects in shipped code

Comments

@pschaeffer
Copy link

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

@pschaeffer pschaeffer added the type: bug code to address defects in shipped code label Mar 17, 2024
@pschaeffer
Copy link
Author

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.

@Skn0tt
Copy link
Member

Skn0tt commented Mar 26, 2024

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?

@pschaeffer
Copy link
Author

pschaeffer commented Mar 26, 2024 via email

@pschaeffer
Copy link
Author

pschaeffer commented Mar 27, 2024 via email

@Skn0tt
Copy link
Member

Skn0tt commented Mar 27, 2024

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.

@pschaeffer
Copy link
Author

pschaeffer commented Mar 27, 2024 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug code to address defects in shipped code
Projects
None yet
Development

No branches or pull requests

2 participants