-
Notifications
You must be signed in to change notification settings - Fork 5
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
Stack level too deep in docker container #1
Comments
Hi @Tall-Paul, thank you for your feedback From the stack trace, looks like it's a runtime error raised from openapi_parser when it tries to purge cached json schema object cache. Potentially could be caused by
Would you mind provide a specification file (remove any sensitive information), so that I can reproduce the issue and confirm the root cause locally |
I got the same stack trace with recursive
Created an issue in https://github.com/ota42y/openapi_parser |
FYI, even the parser issue is fixed, random example generation may face the same infinite recursive issue, suggestion will be providing the |
Hi Justin, good catch, it was indeed a recursive reference in the definition! Thanks for your help, I've amended our definition to remove the recursive references which got me past this issue. I'm now getting another problem, but I'll open another issue for that. |
Created a monkey patch to fix the recursive schema reference before it get solved in openapi_parser |
Using this command:
docker run -v 'c:/Users/blah/Desktop/openapi.json:/home/openapi.json' -p 8081:8080 realfengjia/fakeit:latest --spec /home/openapi.json
getting this stack trace:
/usr/local/bundle/gems/openapi_parser-0.3.0/lib/openapi_parser/concerns/findable.rb:31:in
'each': stack level too deep (SystemStackError) from /usr/local/bundle/gems/openapi_parser-0.3.0/lib/openapi_parser/concerns/findable.rb:31:in
purge_object_cache'from /usr/local/bundle/gems/openapi_parser-0.3.0/lib/openapi_parser/concerns/findable.rb:31:in
each' from /usr/local/bundle/gems/openapi_parser-0.3.0/lib/openapi_parser/concerns/findable.rb:31:in
purge_object_cache'from /usr/local/bundle/gems/openapi_parser-0.3.0/lib/openapi_parser/concerns/findable.rb:31:in
each' from /usr/local/bundle/gems/openapi_parser-0.3.0/lib/openapi_parser/concerns/findable.rb:31:in
purge_object_cache'from /usr/local/bundle/gems/openapi_parser-0.3.0/lib/openapi_parser/concerns/findable.rb:31:in
each' from /usr/local/bundle/gems/openapi_parser-0.3.0/lib/openapi_parser/concerns/findable.rb:31:in
purge_object_cache'from /usr/local/bundle/gems/openapi_parser-0.3.0/lib/openapi_parser/concerns/findable.rb:31:in
each' ... 11756 levels... from /usr/local/bundle/gems/fakeit-0.1.3/lib/fakeit.rb:14:in
build'from /usr/local/bundle/gems/fakeit-0.1.3/bin/fakeit:44:in
<top (required)>' from /usr/local/bundle/bin/fakeit:23:in
load'from /usr/local/bundle/bin/fakeit:23:in `
The text was updated successfully, but these errors were encountered: