-
-
Notifications
You must be signed in to change notification settings - Fork 548
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
to_json
times out
#10257
Comments
Needs further investigation. tried parsing another object and that worked. Upgrade does not like the JSON output which worked fine before upgrading....SyntaxError: Unexpected end of JSON input |
What is the Also, are you able to share the data for the |
It's not in a Yaml file, I'm looping through a nav:collection. This works
This also works
This works with the modifier
This used to work but now now has errors: Maximum execution time of 30 seconds exceeded. SyntaxError: Unexpected end of JSON input.
|
Thanks! Can you share the blueprint for the |
Marketplace blueprint
|
Perhaps you have a circular reference through the related entries? I.e. page 1 points to page 2, page 2 points to page 1 (or maybe 1 > 2 > 3 > 1). That would end up with an infinite loop when trying to serialize it to json (hence timing out). |
I thinks that's whats happening. It's weird that this was working right before I went to upgrade to V5 |
Let's try and rule out it being an infinite loop / circular reference loop... Can you try commenting out the various Entries fields from the blueprint, and see if that fixes the issue? If it does, can you try uncommenting the fields one-by-one to see which one is causing it. |
In v5 we serialize entries properly. Perhaps in v4 you had an empty object somewhere so you didn't run into the recursion. See #9672 |
Found it...this was relating to my post a few years ago ##5866. Same thing happening. I had a Related Articles repeater with entries. Max items was blank causing it to loop. Setting Max items in Appearance & Behaviour to 1 stopped this. |
Good find! |
This issue has not had recent activity and has been marked as stale — by me, a robot. Simply reply to keep it open and send me away. If you do nothing, I will close it in a week. I have no feelings, so whatever you do is fine by me. |
Bug description
Just upgraded to v5 and it appears that the json that was valid, now appears no to be valid or is timing out my browser.
How to reproduce
{{ servers | to_json | entities }} now does not render due to upgrade
Logs
Maximum execution time of 30 seconds exceeded. SyntaxError: Unexpected end of JSON input
Environment
Installation
Existing Laravel app
Additional details
No response
The text was updated successfully, but these errors were encountered: