Closed zafrul-adfenix closed 7 years ago
This is a duplicate of an issue we have in our internal issue tracker. I've bumped that issue.
How urgent is this for you?
Yes it is urgent. It would be nice if I can solve this by today.
@Mackiovello please explain the reason of the issue and how to avoid it, if that is possible.
@Mackiovello please explain the reason of the issue and how to avoid it, if that is possible.
There is a limit to the size of patches. The only solution is to limit the size of patches. That's everything I know.
The code I have already posted. The page is just showing list of data in a table. Each row has a checkbox. When we select all the rows with checkboxes checked, and want to do on action on all the rows, it works 20 rows. But when I increase the rows to 40,50 or 100 and I check all the rows checked, it immediately throws exception. Problem is I cannot get the error while I debug in local.
Can you provide me an example to limit the size of of patches.
Problem is I cannot get the error while I debug in local.
Yes, this issue doesn't seem to be consistent from machine to machine, I've hit that too.
Could you check if you're getting this exception in the log:
System.Exception: Unknown WebSocket frame type: 0
at Starcounter.GatewayHandlers.HandleWebSocket(UInt16 managedHandlerId, Byte* rawChunk, BMX_TASK_INFO* taskInfo, Boolean* isHandled) in c:\users\christian\code\Starcounter\Versions\v2.3\Level1\src\Starcounter\Apps\GatewayHandlers.cs:line 771
HResult=-2146233088
Can you provide me an example to limit the size of of patches.
I don't have a good answer, but from the client I guess you could setInterval
and send the changes in smaller chunks by splitting them and sending them over in packages and then toggling a flag when everything is sent. That seems hacky, though. I'm not sure how it would be done from the server-side. Again, I'm not the expert on this.
@alemoi or @warpech could you please help out here?
I got this error message in log:
System.Exception: Unknown WebSocket frame type: 0
at Starcounter.GatewayHandlers.HandleWebSocket(UInt16 managedHandlerId, Byte* rawChunk, BMX_TASK_INFO* taskInfo, Boolean* isHandled) in C:\TeamCity\TeamCity10\buildAgent\work\sc-3487\Level1\src\Starcounter\Apps\GatewayHandlers.cs:line 719
HResult=-2146233088
I am working on fixing WebSocket fragmentation actually now. Hopefully very soon providing support!
The support for fragmentation is added and tested via Autobahn. Hope you enjoy this feature 😄
@alemoi Hi how would I apply this change. Do I need to update the star counter or any dll?
@zafrul-adfenix the nightly failed because of insufficient disk space, but I have produced a new build for you: http://downloads.starcounter.com/download/Starcounter/Custom/2.3.1.6885 You need an update of Starcounter.
Hi , I am having a problem Starcounter polymer page. When I browse a page where there are number of rows and I can set page size. Upto page size 20 every thing is working fine. But when I make page size more than 20 it break and I get the following error:
Connection error: WebSocket connection closed. (1011) WS ws://79.adfenix.com/__default/7A6E82777E707B3080000070 Newtonsoft.Json.JsonReaderException: Unterminated string. Expected delimiter: ". Path '[10].path', line 1, position 992.
Here is the html:
Here is strongly typed json:
This is the main event getting called for binding: