frames.js icon indicating copy to clipboard operation
frames.js copied to clipboard

TypeError: Invalid URL when calling Frames built using Next.js

Open michalkvasnicak opened this issue 1 year ago • 3 comments

If you built frames using Next.js and have that application behind multiple proxies you can get an error ⨯ TypeError: Invalid URL.

This happens because of multiple x-forwarded-proto headers. In order to get around this issue user has to downgrade to [email protected].

See https://github.com/vercel/next.js/issues/58914

michalkvasnicak avatar Apr 17 '24 08:04 michalkvasnicak

i got this error following the 5 minute speedrun video on youtube to a T

0x6e6f6c61 avatar Apr 18 '24 22:04 0x6e6f6c61

add DEBUGGER_URL="http://localhost:3010" to .env file

kurodenjiro avatar Apr 26 '24 05:04 kurodenjiro

Same for me! i added the .env file but still

CleanShot 2024-04-30 at 21 30 29@2x

humanagent avatar May 01 '24 00:05 humanagent

This happens because of multiple x-forwarded-proto headers.

I've been trying to reproduce this locally for a while. I just tested sending mulitple x-forwarded-proto headers (without a proxy) and didn't have any issues, even if they were different. However, when I added multiple x-forwarded-host headers, I did start seeing an error: Error: Invalid Server Actions request.

But that still isn't the same issue I was seeing in a deployed instance, which is TypeError: Invalid URL

This is on Next 14.2.4

redbmk avatar Oct 23 '24 18:10 redbmk