You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
__data.json page invalidation returns corrupted JSON in some rare cases #15511
In some cases, specially on slower network devices (also happens simulating slow network in chrome dev tools), the page invalidation call to __data.json contains invalid json making JSON.parse fail.
`{"id":239,�"url":240,`
Reproduction
I've only experienced this issue on routes having a streamed promise from a load function.
This issue has been poping up in my sentry issues for almoast a year and kept happening about 10 to 20 times a day for various users. I could never reproduce the issue my self so i put it of as a user issue with their network. Today this exact issue happened to me in my local dev environment which implies it most likely is not a user network issue and made me open this bug report.
Logs
__Local error:__
VM26528:1 Uncaught (in promise) SyntaxError: Expected ',' or '}' after property value in JSON at position 57040 (line 1 column 57041)
at JSON.parse (<anonymous>)
at client.js?v=55e50156:2943:23
VM26529:1 Uncaught (in promise) SyntaxError: Expected double-quoted property name in JSON at position 11079 (line 1 column 11080)
at JSON.parse (<anonymous>)
at client.js?v=55e50156:2943:23
happening in the `function load_data(url, invalid)` function
__One of the errors reported in Sentry:__
SyntaxError
Unexpected token '�', "�{"type":""... is not valid JSON
Activity
elliott-with-the-longest-name-on-github commentedon Mar 12, 2026
I'll throw this one at an agent to see what it comes up with, but without a reproduction this is going to be very hard to track down 😓
fix: reject malformed streamed data encoding (#16423)