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
DunglasApiParser: Maximum function nesting level of '10000' reached, aborting #678
Comments
poke @dunglas |
@FELICITUS is this bug stil accurate? |
I need to re-test, is the NelmioApiDocBundle working again with latest master? |
@FELICITUS well, deprecated notices put aside, yes. |
Not with |
ah right! |
Were you able to resolve this without updating the api-bundle to 2.0? |
I just tested it with the PR of api-platform/core#225, but this issue still persists. |
Isn't this an issue with breaking circular reference? You can avoid the problem by not having circular references in your serialization (by properly using serialization groups for normalization/denormalization)... |
Any news with this issue? |
https://github.com/nelmio/NelmioApiDocBundle/blob/master/Parser/DunglasApiParser.php#L184 I think in DunglasApiParser.php we need to add statement:
|
thanks @marcin-piela for the snippet |
@dunglas This is not really fixed yet. A proper cycle detection/breaking mechanism needs to be implemented for handling e.g. the case of:
|
Refer to #121 which uses a visited stack. |
." This reverts commit 3317037.
Fixes nelmio#678, reverts nelmio#800 Conflicts: Parser/DunglasApiParser.php
Hi,
I use NelmoApiDocBundle with DunglasAPI. In one model, I have a self-referencing relation:
This causes NelmioApiDocBundle to hit the recursion limit. Some of the backtrace lines:
The text was updated successfully, but these errors were encountered: