GithubHelp home page GithubHelp logo

Comments (6)

phoet avatar phoet commented on June 14, 2024

one more thing:

when i surf the page on localhost:3001 i get the same broken pipe errors in my browser, but after reloading the page the error is gone. this happens every second call?!

from culerity.

phoet avatar phoet commented on June 14, 2024

i did some more testing on versions of ruby and gems and i now pinned the problem:

broken pipe errors do NOT occur using OSX system ruby. i tried various versions of 1.8.7 and ree with RVM and i always got the broken pipe errors.

with system ruby there are no errors, BUT every second call will result in a blank page, which seems to be the same error, just different...

from culerity.

phoet avatar phoet commented on June 14, 2024

it seems that somehow the $stdout pipe goes away and the rails logging output can not be printed. maybe something with the log-file? less tries to open it as a binaray file:

less log/culerity.log
"log/culerity.log" may be a binary file. See it anyway?

i played around a little bit with rack/log_tailer.rb, in which the broken-pipe occurs and patched line 30 to rescue the output:

$stdout.print(contents) rescue $stderr.print("error #{$!} with #{contents}")

now the logging-output goes into the console, which is way better than an error on every second request.

from culerity.

simianarmy avatar simianarmy commented on June 14, 2024

Thanks a million, phoet - that was driving me craaazy. I tried OS X ports jruby, rvm install jruby, and jruby from source (latest), and got the same error each time. Your fix solved the issue for me (still seeing the broken pipe error, but it's not causing all my tests to fail!)

from culerity.

phoet avatar phoet commented on June 14, 2024

maybee you should try steam https://github.com/svenfuchs/steam

from culerity.

simianarmy avatar simianarmy commented on June 14, 2024

Thanks phoet, will do. I also ran into some issue with culerity running under the development environment during browser navigation calls ($browser.goto) but under culerity otherwise..made it impossible to do simple session based testing, so right now just working with selenium.

from culerity.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.