Title: Cloudflare websocket error "Message is too large" · Issue #261 · tinyplex/tinybase · GitHub
Open Graph Title: Cloudflare websocket error "Message is too large" · Issue #261 · tinyplex/tinybase
X Title: Cloudflare websocket error "Message is too large" · Issue #261 · tinyplex/tinybase
Description: Describe the bug When synchronizing data over websockets to Cloudflare durable objects and with larger store it hits a limit of message size causing silent fail of sync. There may be many situations when the message gets over 1mb, we're ...
Open Graph Description: Describe the bug When synchronizing data over websockets to Cloudflare durable objects and with larger store it hits a limit of message size causing silent fail of sync. There may be many situation...
X Description: Describe the bug When synchronizing data over websockets to Cloudflare durable objects and with larger store it hits a limit of message size causing silent fail of sync. There may be many situation...
Opengraph URL: https://github.com/tinyplex/tinybase/issues/261
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Cloudflare websocket error \"Message is too large\"","articleBody":"### Describe the bug\n\nWhen synchronizing data over websockets to Cloudflare durable objects and with larger store it hits a limit of message size causing silent fail of sync. There may be many situations when the message gets over 1mb, we're experiencing it with messages `6 = GetCellDiff`.\n\n[from CF docs:](https://github.com/tinyplex/tinybase/issues)\n\u003e Note\n\u003e WebSocket messages received by a Worker have a size limit of 1 MiB (1048576). If a larger message is sent, the WebSocket will be automatically closed with a 1009 \"Message is too large\" response.\n\nI've validated that by logging `ws.onclose(console.log)`\n\nProbable solution to that is to slice the messages in smaller pieces which not only can resolve this issue but probably also speedup the sync on initial init.\n\nI can look into that in few days, just listing here for visibility.\n\n### Your Example Website or App\n\n_No response_\n\n### Steps to Reproduce the Bug or Issue\n\n_No response_\n\n### Expected behavior\n\n_No response_\n\n### Screenshots or Videos\n\n_No response_\n\n### Platform\n\n- OS: [e.g. macOS, Windows, Linux]\n- Browser: [e.g. Chrome, Safari, Firefox]\n- Version: [e.g. 91.1]\n\n\n### Additional context\n\n_No response_","author":{"url":"https://github.com/jakubriedl","@type":"Person","name":"jakubriedl"},"datePublished":"2025-07-15T12:50:28.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":6},"url":"https://github.com/261/tinybase/issues/261"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:d89224f6-9c5f-eb62-cb3e-0577b539bdfc |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 8DD0:CA906:A7776E:F151F5:6A4E444F |
| html-safe-nonce | 6b4d6a7c85ddd52dcd244f6130ddf400633f4be0676191e7cbfedcc34b06b02b |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4REQwOkNBOTA2OkE3Nzc2RTpGMTUxRjU6NkE0RTQ0NEYiLCJ2aXNpdG9yX2lkIjoiNDM2OTAxMzA3NTEzMjQzMzQ4NyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | ce28d7e7f4baffcd0947c43ada240fb4bb3845c6245cac12cc64ff83a7cc6730 |
| hovercard-subject-tag | issue:3232133311 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/tinyplex/tinybase/261/issue_layout |
| twitter:image | https://opengraph.githubassets.com/ff7ccfc8f15b62628e70274e350ebcf13de19b46b39d17cbe81278c6477595a4/tinyplex/tinybase/issues/261 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/ff7ccfc8f15b62628e70274e350ebcf13de19b46b39d17cbe81278c6477595a4/tinyplex/tinybase/issues/261 |
| og:image:alt | Describe the bug When synchronizing data over websockets to Cloudflare durable objects and with larger store it hits a limit of message size causing silent fail of sync. There may be many situation... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | jakubriedl |
| hostname | github.com |
| expected-hostname | github.com |
| None | 030096ee0db095447bfe77409d33bfac127ca7128299c58deef27c52eaa1b1f0 |
| turbo-cache-control | no-preview |
| go-import | github.com/tinyplex/tinybase git https://github.com/tinyplex/tinybase.git |
| octolytics-dimension-user_id | 96894742 |
| octolytics-dimension-user_login | tinyplex |
| octolytics-dimension-repository_id | 443220240 |
| octolytics-dimension-repository_nwo | tinyplex/tinybase |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 443220240 |
| octolytics-dimension-repository_network_root_nwo | tinyplex/tinybase |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 9fabff9b8b127e686a3ec86f91422e818056ca2c |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width