jamesmartin/inline_svg

Ruby 3.0 timeout

trobrock opened this issue · 1 comments

I'm using inline_svg_pack_tag and have been using it with now problem on Rails 6.1 and Ruby 2.7.2. I'm upgrading to Ruby 3.0.0 right now and I get an execution expired exception from Net::HTTP in the WebpackAssetFinder when it's making the network request to the webpack dev server. Though when I break on the exception and execute the exact code that caused the exception it runs with no problem.

I'm not 100% sure if this is an issue with this gem, but it does only occur from this gem in our app right now. I tried without the webpack dev server and things worked fine (as I'd expect since it's just reading a file).

If anyone has a suggestion on how to track this down I'd appreciate it.

Wow, I just found the issue.... I had webpack-dev-server host set to localhost, apparently something in Ruby 3.0.0 makes this not work so well. I changed it to 127.0.0.1 and it seems to work fine.