简体   繁体   中英

SystemStackError (Stack level too deep) when using wicked_pdf gem

I am getting the error SystemStackError in StaticPagesController#index stack level too deep when I try to access to any page within my site just after adding the gem 'wicked_pdf', github: 'mileszs/wicked_pdf' and running bundle.

I created a new app on rails to test the same gem and I didn't get any error, however when I used the gem on a different developed project I had the same error, I also ran the main project in different computers with different OS. I do not know what could it be.

Logs:

Completed 500 Internal Server Error in 144ms (ActiveRecord: 2.5ms)



SystemStackError (stack level too deep):

remotipart (1.4.2) lib/remotipart/render_overrides.rb:16:in `render_with_remotipart'
/Users/user/.bundle/ruby/2.3.0/bundler/gems/wicked_pdf-f4941b7f64ec/lib/wicked_pdf/pdf_helper.rb:46:in `call'
/Users/user/.bundle/ruby/2.3.0/bundler/gems/wicked_pdf-f4941b7f64ec/lib/wicked_pdf/pdf_helper.rb:46:in `render_with_wicked_pdf'
/Users/user/.bundle/ruby/2.3.0/bundler/gems/wicked_pdf-f4941b7f64ec/lib/wicked_pdf/pdf_helper.rb:30:in `render'

Thanks in advance!

错误是由于错误的wicked_pdf的最新版本(1.2.0当时)作为汤主在评论中指出。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM