Re: stack level too deep (SystemStackError) - please help!

336 views
Skip to first unread message

Daniel Doubrovkine

unread,
Jun 26, 2014, 11:29:06 AM6/26/14
to ruby-...@googlegroups.com
There's a lot of stuff going on here. I tried the app, but cannot even bundle install it, says compass-rails-2.0.alpha.0 cannot be found. After fixing that I had a problem with the mysql2 gem and gave up. Can you post the full stack from this error?

If you want to just try Grape, check out github.com/dblock/grape-on-rails or https://github.com/dblock/grape-on-rack.


On Wed, Jun 25, 2014 at 11:09 PM, E.D. Diaconu <danaed...@gmail.com> wrote:
Hi, i tried to generate a small app using grape (which is also using rails initially) by following this sample: http://codetunes.com/2014/introduction-to-building-apis-with-grape/ 
But when I run the rails server I am getting the following error: ..."stack level too deep (SystemStackError)"
My sample is here: https://github.com/diael01/sample_app_using_grape and the grape API is in: /sample_app_using_grape/app/controllers/api/v1
Can you please advise where is the error? I spent a lot of time on it.
Thank you very much!
E.D. Diaconu

--
You received this message because you are subscribed to the Google Groups "Grape Framework Discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ruby-grape+...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--

dB. | Moscow - Geneva - Seattle - New York
code.dblock.org - @dblockdotorg - artsy.net - github/dblock

E.D. Diaconu

unread,
Jun 29, 2014, 2:43:18 PM6/29/14
to ruby-...@googlegroups.com
The full stack error is: "Exiting
/Users/neuron1/.rvm/gems/ruby-2.0.0-p247@global/gems/rack-1.5.2/lib/rack/builder.rb:49: stack level too deep (SystemStackError)"
I was thinking that is because in my routes.rb i use this: 'mount API::V1::Base => '/api'' because i think that is the correct path,
although in the sample is : mount API::Base => '/api', but if i use the latter, i get another error: '/Users/neuron1/Sites/Artsy_open_source_code/sample_app_using_grape/config/routes.rb:3:in `block in <top (required)>': uninitialized constant API::Base (NameError)' even if I use 'require "/app/controllers/api/v1/base"'.
I will try your samples, thanks a lot!
Reply all
Reply to author
Forward
0 new messages