devtunnels.ms tunnel port forwarding giving response 413 Request Entity Too Large if I upload large file

200 Views Asked by At

I tried local port forwarding to the internet in vscode, it runs smoothly. However my web app is about uploading video/image. So when I upload video with size 63 MB I got error after checked it in network inspect element with XHR as client:

My forwarded address running on https://npzg*****-****.asse.devtunnels.ms/

<html>
<head><title>413 Request Entity Too Large</title></head>
<body>
<center><h1>413 Request Entity Too Large</h1></center>
<hr><center>nginx</center>
</body>
</html>

But it runs perfectly if I upload video with size 1MB.

How do I setup maximum upload size for tunnel server?

I tried reading this docs, but it didn't helpful.

Edit: Here is most related docs but still didn't helpful for 413 entity too large, I cannot find how to handle that request in devtunnel command.

I see why, it said that max request body is 16MB based on this limitation

0

There are 0 best solutions below