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
Error while downloading large size file over IIS Blazor Server #5
Comments
@merajsyed it's seems you are getting a timeout from SignalR. This is by security design, SignalR max message size by default its only 32 KB. Take a look of SignalR Security. To fix this issues you have options like: Increase SignalR Download the file from using |
Same error after increasing I tried by increasing |
Can you attach a sample which reproduces this error? |
Did you increased or tried |
Yes, I tried by increasing |
I haven't try the library over iis and over blazor server so I don't know how and if this works over them, only blazor wasm. But you have confirmed that it works over blazor server, that it's good. I haven't try run blazor over iis so I don't know what could be wrong. Are you deploying to iis over azure or local iis? |
The only way to fix this may be comparing you iis express setting vs your iis settings in production envinroment. |
Accidentally closed the issue. |
The link shared redirects to this repository. |
I copy the text instead. |
I read the issue, its seems a problem with blazor server with deployment host, related. Have you tried or have a chance to deploy this on top of blazor wasm? If not possible, I just ran out of ideas, we would need to wait for a fix. |
I ended up downloading in chunks as used in this gist and it worked. |
@merajsyed so It's seems I may have a bug with max capacity of downloading a file... I will keep this issue open to upgrade the library with buffer management. Thanks for the link. |
Can "the buffer management" solution, also have a way of
As per a rework of the gist above ? |
I almost got this. But have been struggling for some hours to fix byte[] and Stream overload methods when converting to base64 for some reason atob works for the first buffer but not for the rest of the buffers in my test example. Base64 string buffered method work perfectly. I may take a deeper look on the weekend. If anyone wants to take a look and help me, this is the commit f64ef3d |
Ok I just figured out what was wrong, it won't work after decoding cause the root of the base64 string is need for decoding correctly. I will try another approach I have in mind. |
Getting following error while downloading large size file (around 30 MB) after publishing to IIS
Error: Connection disconnected with error 'Error: WebSocket closed with status code: 1006 ().'.
The text was updated successfully, but these errors were encountered: