You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
My local environment was running smoothly with netlify dev booting my custom framework, which simply started an http server using browser-sync. However, I wanted my local dev environment to use http2, so I updated my setup accordingly. Now when I start my server through netlify dev, my custom framework is serving everything well with http2 at port 8000, but the netlify layer at port 9000 returns "Could not proxy request."
I've tried debugging netlify-cli, but no luck so far. Does anyone have a clue what could be the issue?
Hey @dsolanorush, I tried to debug this issue with the given repo but wasn't able to due to unrelated errors in the repository.
If you've a public repo where I could reproduce this issue, I can try again.
@tinfoil-knight - the root of the issue for me was two-fold. In nuxt.config.js server config I had:
host set to 0.0.0.0
https cert applied
I completely removed the custom server config and let Nuxt use defaults, then applied my existing cert to the Netlify dev server TOML config. This allowed proxying to work as expected.
Describe the bug
My local environment was running smoothly with
netlify dev
booting my custom framework, which simply started an http server using browser-sync. However, I wanted my local dev environment to use http2, so I updated my setup accordingly. Now when I start my server throughnetlify dev
, my custom framework is serving everything well with http2 at port 8000, but the netlify layer at port 9000 returns "Could not proxy request."I've tried debugging netlify-cli, but no luck so far. Does anyone have a clue what could be the issue?
Steps to reproduce
git clone [email protected]:hylmar/http2-test.git
;yarn
to install;yarn dev
to start;https://localhost:8000/
; this works;https://localhost:9000/
; this saysCould not proxy request.
.Configuration
Environment
The text was updated successfully, but these errors were encountered: