Giter Club home page Giter Club logo

Comments (8)

gregwillits avatar gregwillits commented on May 26, 2024

Ah. looking at the console, something is blowing up because of:

RuntimeError - Unknown media type: ".rz":
...
geminabox/lib/hostess.rb:24:in `GET /quick/Marshal.4.8/*.gemspec.rz'

now what?

from geminabox.

tomlea avatar tomlea commented on May 26, 2024

Hi Greg,
What version of Sinatra are you using?

The upload button is for uploading a .gem file.

from geminabox.

gregwillits avatar gregwillits commented on May 26, 2024

(sorry for the delay -- I was expecting to get an email from the comment system, maybe it got junked)

Sinatra 1.1.0, Thin 1.2.7, Ruby 1.8.7 (but now that I think about it, I'll have to deploy on 1.8.6)

from geminabox.

jsgoecke avatar jsgoecke commented on May 26, 2024

I am having a similar problem using Unicorn:

127.0.0.1 - - [10/Nov/2010 10:26:03] "GET /prerelease_specs.4.8.gz HTTP/1.1" 200 24 0.0012
RuntimeError - Unknown media type: ".rz":
/Users/jsgoecke/.rvm/gems/ruby-1.8.7-p302/gems/sinatra-1.1.0/lib/sinatra/base.rb:132:in content_type' /Users/jsgoecke/.rvm/gems/ruby-1.8.7-p302/gems/sinatra-1.1.0/lib/sinatra/base.rb:155:insend_file'
/Users/jsgoecke/.rvm/gems/ruby-1.8.7-p302/gems/geminabox-0.2.8/lib/hostess.rb:5:in serve' /Users/jsgoecke/.rvm/gems/ruby-1.8.7-p302/gems/geminabox-0.2.8/lib/hostess.rb:24:inGET /quick/Marshal.4.8/_.gemspec.rz'
/Users/jsgoecke/.rvm/gems/ruby-1.8.7-p302/gems/sinatra-1.1.0/lib/sinatra/base.rb:1032:in call' /Users/jsgoecke/.rvm/gems/ruby-1.8.7-p302/gems/sinatra-1.1.0/lib/sinatra/base.rb:1032:incompile!'
/Users/jsgoecke/.rvm/gems/ruby-1.8.7-p302/gems/sinatra-1.1.0/lib/sinatra/base.rb:620:in instance_eval' /Users/jsgoecke/.rvm/gems/ruby-1.8.7-p302/gems/sinatra-1.1.0/lib/sinatra/base.rb:620:inroute_eval'
/Users/jsgoecke/.rvm/gems/ruby-1.8.7-p302/gems/sinatra-1.1.0/lib/sinatra/base.rb:604:in route!' /Users/jsgoecke/.rvm/gems/ruby-1.8.7-p302/gems/sinatra-1.1.0/lib/sinatra/base.rb:656:inprocess_route'
/Users/jsgoecke/.rvm/gems/ruby-1.8.7-p302/gems/sinatra-1.1.0/lib/sinatra/base.rb:653:in catch' /Users/jsgoecke/.rvm/gems/ruby-1.8.7-p302/gems/sinatra-1.1.0/lib/sinatra/base.rb:653:inprocess_route'
/Users/jsgoecke/.rvm/gems/ruby-1.8.7-p302/gems/sinatra-1.1.0/lib/sinatra/base.rb:603:in route!' /Users/jsgoecke/.rvm/gems/ruby-1.8.7-p302/gems/sinatra-1.1.0/lib/sinatra/base.rb:602:ineach'
/Users/jsgoecke/.rvm/gems/ruby-1.8.7-p302/gems/sinatra-1.1.0/lib/sinatra/base.rb:602:in route!' /Users/jsgoecke/.rvm/gems/ruby-1.8.7-p302/gems/sinatra-1.1.0/lib/sinatra/base.rb:741:indispatch!'
/Users/jsgoecke/.rvm/gems/ruby-1.8.7-p302/gems/sinatra-1.1.0/lib/sinatra/base.rb:530:in call!' /Users/jsgoecke/.rvm/gems/ruby-1.8.7-p302/gems/sinatra-1.1.0/lib/sinatra/base.rb:706:ininstance_eval'
/Users/jsgoecke/.rvm/gems/ruby-1.8.7-p302/gems/sinatra-1.1.0/lib/sinatra/base.rb:706:in invoke' /Users/jsgoecke/.rvm/gems/ruby-1.8.7-p302/gems/sinatra-1.1.0/lib/sinatra/base.rb:706:incatch'
/Users/jsgoecke/.rvm/gems/ruby-1.8.7-p302/gems/sinatra-1.1.0/lib/sinatra/base.rb:706:in invoke' /Users/jsgoecke/.rvm/gems/ruby-1.8.7-p302/gems/sinatra-1.1.0/lib/sinatra/base.rb:530:incall!'
/Users/jsgoecke/.rvm/gems/ruby-1.8.7-p302/gems/sinatra-1.1.0/lib/sinatra/base.rb:516:in call' /Users/jsgoecke/.rvm/gems/ruby-1.8.7-p302/gems/rack-1.2.1/lib/rack/showexceptions.rb:24:incall'
/Users/jsgoecke/.rvm/gems/ruby-1.8.7-p302/gems/rack-1.2.1/lib/rack/methodoverride.rb:24:in call' /Users/jsgoecke/.rvm/gems/ruby-1.8.7-p302/gems/sinatra-1.1.0/lib/sinatra/base.rb:1142:incall'
/Users/jsgoecke/.rvm/gems/ruby-1.8.7-p302/gems/sinatra-1.1.0/lib/sinatra/base.rb:1168:in synchronize' /Users/jsgoecke/.rvm/gems/ruby-1.8.7-p302/gems/sinatra-1.1.0/lib/sinatra/base.rb:1142:incall'
/Users/jsgoecke/.rvm/gems/ruby-1.8.7-p302/gems/rack-1.2.1/lib/rack/lint.rb:48:in _call' /Users/jsgoecke/.rvm/gems/ruby-1.8.7-p302/gems/rack-1.2.1/lib/rack/lint.rb:36:incall'
/Users/jsgoecke/.rvm/gems/ruby-1.8.7-p302/gems/rack-1.2.1/lib/rack/showexceptions.rb:24:in call' /Users/jsgoecke/.rvm/gems/ruby-1.8.7-p302/gems/rack-1.2.1/lib/rack/commonlogger.rb:18:incall'
/Users/jsgoecke/.rvm/gems/ruby-1.8.7-p302/gems/unicorn-2.0.0/lib/unicorn/http_server.rb:510:in process_client' /Users/jsgoecke/.rvm/gems/ruby-1.8.7-p302/gems/unicorn-2.0.0/lib/unicorn/http_server.rb:585:inworker_loop'
/Users/jsgoecke/.rvm/gems/ruby-1.8.7-p302/gems/unicorn-2.0.0/lib/unicorn/http_server.rb:583:in each' /Users/jsgoecke/.rvm/gems/ruby-1.8.7-p302/gems/unicorn-2.0.0/lib/unicorn/http_server.rb:583:inworker_loop'
/Users/jsgoecke/.rvm/gems/ruby-1.8.7-p302/gems/unicorn-2.0.0/lib/unicorn/http_server.rb:473:in spawn_missing_workers' /Users/jsgoecke/.rvm/gems/ruby-1.8.7-p302/gems/unicorn-2.0.0/lib/unicorn/http_server.rb:470:infork'
/Users/jsgoecke/.rvm/gems/ruby-1.8.7-p302/gems/unicorn-2.0.0/lib/unicorn/http_server.rb:470:in spawn_missing_workers' /Users/jsgoecke/.rvm/gems/ruby-1.8.7-p302/gems/unicorn-2.0.0/lib/unicorn/http_server.rb:466:ineach'
/Users/jsgoecke/.rvm/gems/ruby-1.8.7-p302/gems/unicorn-2.0.0/lib/unicorn/http_server.rb:466:in spawn_missing_workers' /Users/jsgoecke/.rvm/gems/ruby-1.8.7-p302/gems/unicorn-2.0.0/lib/unicorn/http_server.rb:480:inmaintain_worker_count'
/Users/jsgoecke/.rvm/gems/ruby-1.8.7-p302/gems/unicorn-2.0.0/lib/unicorn/http_server.rb:163:in start' /Users/jsgoecke/.rvm/gems/ruby-1.8.7-p302/gems/unicorn-2.0.0/lib/unicorn.rb:13:inrun'
/Users/jsgoecke/.rvm/gems/ruby-1.8.7-p302/gems/unicorn-2.0.0/bin/unicorn:120
/Users/jsgoecke/.rvm/gems/ruby-1.8.7-p302/bin/unicorn:19:in load' /Users/jsgoecke/.rvm/gems/ruby-1.8.7-p302/bin/unicorn:19 RuntimeError: Unknown media type: ".rz" /Users/jsgoecke/.rvm/gems/ruby-1.8.7-p302/gems/sinatra-1.1.0/lib/sinatra/base.rb:132:incontent_type'
/Users/jsgoecke/.rvm/gems/ruby-1.8.7-p302/gems/sinatra-1.1.0/lib/sinatra/base.rb:155:in send_file' /Users/jsgoecke/.rvm/gems/ruby-1.8.7-p302/gems/geminabox-0.2.8/lib/hostess.rb:5:inserve'
/Users/jsgoecke/.rvm/gems/ruby-1.8.7-p302/gems/geminabox-0.2.8/lib/hostess.rb:24:in GET /quick/Marshal.4.8/_.gemspec.rz' /Users/jsgoecke/.rvm/gems/ruby-1.8.7-p302/gems/sinatra-1.1.0/lib/sinatra/base.rb:1032:in call'
/Users/jsgoecke/.rvm/gems/ruby-1.8.7-p302/gems/sinatra-1.1.0/lib/sinatra/base.rb:1032:incompile!' /Users/jsgoecke/.rvm/gems/ruby-1.8.7-p302/gems/sinatra-1.1.0/lib/sinatra/base.rb:620:in instance_eval'
/Users/jsgoecke/.rvm/gems/ruby-1.8.7-p302/gems/sinatra-1.1.0/lib/sinatra/base.rb:620:inroute_eval' /Users/jsgoecke/.rvm/gems/ruby-1.8.7-p302/gems/sinatra-1.1.0/lib/sinatra/base.rb:604:in route!'
/Users/jsgoecke/.rvm/gems/ruby-1.8.7-p302/gems/sinatra-1.1.0/lib/sinatra/base.rb:656:inprocess_route' /Users/jsgoecke/.rvm/gems/ruby-1.8.7-p302/gems/sinatra-1.1.0/lib/sinatra/base.rb:653:in catch'
/Users/jsgoecke/.rvm/gems/ruby-1.8.7-p302/gems/sinatra-1.1.0/lib/sinatra/base.rb:653:inprocess_route' /Users/jsgoecke/.rvm/gems/ruby-1.8.7-p302/gems/sinatra-1.1.0/lib/sinatra/base.rb:603:in route!'
/Users/jsgoecke/.rvm/gems/ruby-1.8.7-p302/gems/sinatra-1.1.0/lib/sinatra/base.rb:602:ineach' /Users/jsgoecke/.rvm/gems/ruby-1.8.7-p302/gems/sinatra-1.1.0/lib/sinatra/base.rb:602:in route!'
/Users/jsgoecke/.rvm/gems/ruby-1.8.7-p302/gems/sinatra-1.1.0/lib/sinatra/base.rb:741:indispatch!' /Users/jsgoecke/.rvm/gems/ruby-1.8.7-p302/gems/sinatra-1.1.0/lib/sinatra/base.rb:530:in call!'
/Users/jsgoecke/.rvm/gems/ruby-1.8.7-p302/gems/sinatra-1.1.0/lib/sinatra/base.rb:706:ininstance_eval' /Users/jsgoecke/.rvm/gems/ruby-1.8.7-p302/gems/sinatra-1.1.0/lib/sinatra/base.rb:706:in invoke'
/Users/jsgoecke/.rvm/gems/ruby-1.8.7-p302/gems/sinatra-1.1.0/lib/sinatra/base.rb:706:incatch' /Users/jsgoecke/.rvm/gems/ruby-1.8.7-p302/gems/sinatra-1.1.0/lib/sinatra/base.rb:706:in invoke'
/Users/jsgoecke/.rvm/gems/ruby-1.8.7-p302/gems/sinatra-1.1.0/lib/sinatra/base.rb:530:incall!' /Users/jsgoecke/.rvm/gems/ruby-1.8.7-p302/gems/sinatra-1.1.0/lib/sinatra/base.rb:516:in call'
/Users/jsgoecke/.rvm/gems/ruby-1.8.7-p302/gems/rack-1.2.1/lib/rack/showexceptions.rb:24:incall' /Users/jsgoecke/.rvm/gems/ruby-1.8.7-p302/gems/rack-1.2.1/lib/rack/methodoverride.rb:24:in call'
/Users/jsgoecke/.rvm/gems/ruby-1.8.7-p302/gems/sinatra-1.1.0/lib/sinatra/base.rb:1142:incall' /Users/jsgoecke/.rvm/gems/ruby-1.8.7-p302/gems/sinatra-1.1.0/lib/sinatra/base.rb:1168:in synchronize'
/Users/jsgoecke/.rvm/gems/ruby-1.8.7-p302/gems/sinatra-1.1.0/lib/sinatra/base.rb:1142:incall' /Users/jsgoecke/.rvm/gems/ruby-1.8.7-p302/gems/rack-1.2.1/lib/rack/lint.rb:48:in _call'
/Users/jsgoecke/.rvm/gems/ruby-1.8.7-p302/gems/rack-1.2.1/lib/rack/lint.rb:36:incall' /Users/jsgoecke/.rvm/gems/ruby-1.8.7-p302/gems/rack-1.2.1/lib/rack/showexceptions.rb:24:in call'
/Users/jsgoecke/.rvm/gems/ruby-1.8.7-p302/gems/rack-1.2.1/lib/rack/commonlogger.rb:18:incall' /Users/jsgoecke/.rvm/gems/ruby-1.8.7-p302/gems/unicorn-2.0.0/lib/unicorn/http_server.rb:510:in process_client'
/Users/jsgoecke/.rvm/gems/ruby-1.8.7-p302/gems/unicorn-2.0.0/lib/unicorn/http_server.rb:585:inworker_loop' /Users/jsgoecke/.rvm/gems/ruby-1.8.7-p302/gems/unicorn-2.0.0/lib/unicorn/http_server.rb:583:in each'
/Users/jsgoecke/.rvm/gems/ruby-1.8.7-p302/gems/unicorn-2.0.0/lib/unicorn/http_server.rb:583:inworker_loop' /Users/jsgoecke/.rvm/gems/ruby-1.8.7-p302/gems/unicorn-2.0.0/lib/unicorn/http_server.rb:473:in spawn_missing_workers'
/Users/jsgoecke/.rvm/gems/ruby-1.8.7-p302/gems/unicorn-2.0.0/lib/unicorn/http_server.rb:470:infork' /Users/jsgoecke/.rvm/gems/ruby-1.8.7-p302/gems/unicorn-2.0.0/lib/unicorn/http_server.rb:470:in spawn_missing_workers'
/Users/jsgoecke/.rvm/gems/ruby-1.8.7-p302/gems/unicorn-2.0.0/lib/unicorn/http_server.rb:466:ineach' /Users/jsgoecke/.rvm/gems/ruby-1.8.7-p302/gems/unicorn-2.0.0/lib/unicorn/http_server.rb:466:in spawn_missing_workers'
/Users/jsgoecke/.rvm/gems/ruby-1.8.7-p302/gems/unicorn-2.0.0/lib/unicorn/http_server.rb:480:inmaintain_worker_count' /Users/jsgoecke/.rvm/gems/ruby-1.8.7-p302/gems/unicorn-2.0.0/lib/unicorn/http_server.rb:163:in start'
/Users/jsgoecke/.rvm/gems/ruby-1.8.7-p302/gems/unicorn-2.0.0/lib/unicorn.rb:13:inrun' /Users/jsgoecke/.rvm/gems/ruby-1.8.7-p302/gems/unicorn-2.0.0/bin/unicorn:120 /Users/jsgoecke/.rvm/gems/ruby-1.8.7-p302/bin/unicorn:19:in load'
/Users/jsgoecke/.rvm/gems/ruby-1.8.7-p302/bin/unicorn:19
127.0.0.1 - - [10/Nov/2010 10:26:17] "GET /quick/Marshal.4.8/tropo-provisioning-0.0.1.gemspec.rz HTTP/1.1" 500 126291 0.0597

from geminabox.

tomlea avatar tomlea commented on May 26, 2024

Firstly, my apologies for the delay.

I have replicated the problem in Sinatra 1.1, and it now seems fixed in geminabox-0.2.9.pre1.

Try a gem install geminabox --prerelease and let me know if this fixes for you.

Thanks for your patience.

from geminabox.

pablito avatar pablito commented on May 26, 2024

Hi Tom,
just a couple of lines to let you know that I had the same issue and 0.2.9.pre1 solved it for me.
My conf was:
MRI ruby 1.9.2p0 (2010-08-18 revision 29036) [x86_64-linux]
passenger (3.0.0)
rack (1.2.1)
sinatra (1.1.0)

Thanks,

Paolo Angelini

from geminabox.

tomlea avatar tomlea commented on May 26, 2024

Thanks pablito. I've regression tested it on sinatra 1.0, so I'll ship it out as 0.2.9.

from geminabox.

tomlea avatar tomlea commented on May 26, 2024

Release the fix for sinatra 1.1.0.

Closed by 01abc65

from geminabox.

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.