-
Notifications
You must be signed in to change notification settings - Fork 202
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
"Maximum call stack size exceeded" on circular-references #194
Comments
hi @mrsteele , Khaled |
Just an FYI This issue appears to exist in any version greater than |
i will have a look 👀 |
Also experiencing this issue |
This issue should be fixed now in the Best, |
We released another beta release to address this issue. Feedback is very welcome :) Install via |
Thanks @axe312ger! I can confirm installing this locally resolved our maximum call stack issue! Thanks so much and we will be looking forward to the next official release of this! |
I am still experiencing this issue with the new version, but I think my usecase is different. I have a content-type blogPost, which can have 3 related blogPosts (references, many). Simplified, something like this happens: blogPost A, has blogPost X, Y and Z as related blogPosts So the circular dependency lies one level deeper. With |
@stijlfigurant are you sure you are using the beta version via We have a test checking for a similar structure and it is not exceeding the call stack. (https://github.com/contentful/contentful-resolve-response/blob/master/test/unit/index-test.js#L137-L170) |
in node_modules/contentful/package.json |
Alright, we will investigate. Thank you @stijlfigurant |
Hey @stijlfigurant, I added the following test which should imitate your data structure. It runs through smoothly and does not cause any issues. Can you please check if this matches your data structure? If yes, we might need to switch to our support software where you might give me access to your space so I can have a deeper look by using access tokens for your space and replicating the issue on my machine with exactly your data. (https://www.contentful.com/support/ + link this issue to make sure it ends up on my desk :) ) Thanks a lot, |
@axe312ger The data structure looks similar, but I am guessing where it goes wrong is when it returns another entry, it also returns another linkField with it which doesn't seem to reflect in the test. E.g.
happy to give you access to our space so you can reproduce :) |
Stilll having this issue. I tried to upgrade to Contentful @next, but that didn't work either. Situation: my space has articles and posts. Article A has a multiple reference field with "related posts" that includes Post B. Post B has a multiple reference field with "related articles", that includes Article A. It is easy to reproduce: if I remove the circular reference, the error is gone - if I add it again, it's there. I really need this feature, because support articles often refer to either other articles or to blog posts, and vice versa. What to do? UPDATE: I found out that the bug sits in another tool, "contentful-to-algolia", which syncs data from CF to Algolia search. I will file an issue there. Sorry for any inconvenience! |
this keeps happening. Same case of blogpost linking to 3 blogposts. If it links to itself |
Experiencing the same issue. A thing that is related to a thing that is related back to it. Not an uncommon scenario. Using 7.14.8. Is there any known workaround? |
I am experiencing this issue using version |
@matthew-contentful @TimBeyer I guess you should consider reopening this as people seem to still run into this issue |
v8.0.0
v5.4.2
Darwin Kernel Version 17.0.0: Thu Aug 24 21:48:19 PDT 2017; root:xnu-4570.1.46~2/RELEASE_X86_64 x86_64
(its a macbook pro on osx 10.13)v5.0.1
Our contentpull package (https://github.com/remedyhealth/contentpull) wraps this package to simplify some of our conventional queries. We were alerted that our tests were failing when upgrading to your latest (
v5.0.1
).It was discovered after using this package on its own that our test data was failing due to a maximum call stack issue (as seen below)
Our failure is a circular referential test. While this is a bit odd we do have this circumstance in production (related categories reference each other).
Our test is simply to make sure those references work (which worked fine in previous versions):
Our test data is a single reference to itself on the field
ref
. Below you will find the sample data:Please let us know if there is anything else we can assist with in resolving this issue.
The text was updated successfully, but these errors were encountered: