Unexpected token 'R', "RuntimeErr"... is not valid JSON -> in Edge #1757
Replies: 4 comments 6 replies
-
|
Where exactly do you get this error? Is this in the webserver error log or in the browsers console? If it's in the webserver log and coming from PHP, check that the file stored on disk is not damaged. You can skip the first line, the rest should be valid JSON. If you repeatedly get broken files on disk and not just that one, do check if your systems filesystem isn't damaged or for hardware faults, etc. Or check if your webserver has any security mechanisms that would lead to truncated POST requests and incomplete JSON being sent to PHP (though that should get caught before storing it on disk). If it's in the browser, check the console to figure out which file causes this. If it's not something badly cached in the browser, check if you get the same broken JSON via curl or wget and if that is also the case, check if that file is already broken on disk or if some web server mechanism is truncating it during transmission. In either case, attack the problem from both ends - figure out which exact file is the cause of the error, check if it is or isn't broken on disk, then work your way up the stack to isolate where the file get's mangled. |
Beta Was this translation helpful? Give feedback.
-
|
Thank you for your reply. I get this error in the browser after I click on a link to a file. I create a new file, get a link, open that link and I will get this message. On two (!) different PrivateBin instances, two different setups (Alma/ Podman/ Nginx on a VPS vs. Ubuntu/ Docker/ Apache2 on a Proxmox VM). That's the reasony why I'm a bit puzzled. Furthermore, podman/ docker logs will not give me any errors beside a HTTP 200 for the request after clicking the link. During more tests it seems, that short texts are okay and will be displayed without any error. |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
|
I had to close all browser processes and I had to create a new paste. It seems that the feature affects the data when a paste is created, therefore pasted that were created successfully can opened with or without the Edge feature enabled.Hinweis: Bitte beachten Sie, dass diese E-Mail zur Sicherstellung der Absenderauthentizität digital signiert wurde.Am 25.01.2026 um 08:31 schrieb El RIDO ***@***.***>:
I tried reproducing it using our sponsored browserstack account. The setting is not enabled (there) by default, but even after turning it on and setting it to strict all of my samples still opened up fine. Does changing this setting require a restart of the browser? I attempted that, but after closing it, I can only reopen edge by launching a new session which resets the setting, as browserstack runs the apps in a kiosk mode that wont let you start new applications. :-(
If anyone other than OP can reproduce this, please share any findings you might get, so we can get to the bottom of this.
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you authored the thread.Message ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.


Uh oh!
There was an error while loading. Please reload this page.
-
Hello everyone. I'm facing a strange issue, and currently I don't know if it's a config issue or some kind of bug. I have two instances of PrivateBin, pretty plain with local storage. After upgrading both of them to 2.0.3, I'm getting the error
Unexpected token 'R', "RuntimeErr"... is not valid JSON
when I'm trying to open a paste. The past is successfully saved but the error occurs upon opening. Two different OS (Ubuntu 24.04 with Apache vs. Alma 9.6 with NGINX).
Any hints where I should take a closer look at?
TIA!
Beta Was this translation helpful? Give feedback.
All reactions