From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: AS14383 205.234.109.0/24 X-Spam-Status: No, score=-0.7 required=5.0 tests=MSGID_FROM_MTA_HEADER, RP_MATCHES_RCVD shortcircuit=no autolearn=unavailable version=3.3.2 Path: news.gmane.org!not-for-mail From: Travis Bell Newsgroups: gmane.comp.lang.ruby.unicorn.general Subject: Re: Getting a strange cookie error Date: Fri, 22 Jan 2010 16:29:56 -0700 Message-ID: <71901C45-5A84-4A3B-A4A4-0895CE2D6974@meticulo.com> References: <0B0E184C-1FD8-4208-BD48-0AC7DE2C33A0@meticulo.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v1077) Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1264203015 5090 80.91.229.12 (22 Jan 2010 23:30:15 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 22 Jan 2010 23:30:15 +0000 (UTC) To: mongrel-unicorn@rubyforge.org Original-X-From: mongrel-unicorn-bounces@rubyforge.org Sat Jan 23 00:30:07 2010 Return-path: Envelope-to: gclrug-mongrel-unicorn@m.gmane.org X-Original-To: mongrel-unicorn@rubyforge.org Delivered-To: mongrel-unicorn@rubyforge.org In-Reply-To: <0B0E184C-1FD8-4208-BD48-0AC7DE2C33A0@meticulo.com> X-Mailer: Apple Mail (2.1077) X-BeenThere: mongrel-unicorn@rubyforge.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: mongrel-unicorn-bounces@rubyforge.org Errors-To: mongrel-unicorn-bounces@rubyforge.org Xref: news.gmane.org gmane.comp.lang.ruby.unicorn.general:374 Archived-At: Received: from rubyforge.org ([205.234.109.19]) by lo.gmane.org with esmtp (Exim 4.50) id 1NYSx5-0005My-8c for gclrug-mongrel-unicorn@m.gmane.org; Sat, 23 Jan 2010 00:30:07 +0100 Received: from rubyforge.org (rubyforge.org [127.0.0.1]) by rubyforge.org (Postfix) with ESMTP id 4D13218582CE; Fri, 22 Jan 2010 18:30:08 -0500 (EST) Received: from na3sys009aog104.obsmtp.com (na3sys009aog104.obsmtp.com [74.125.149.73]) by rubyforge.org (Postfix) with SMTP id D3E0418582C3 for ; Fri, 22 Jan 2010 18:30:01 -0500 (EST) Received: from source ([209.85.216.182]) by na3sys009aob104.postini.com ([74.125.148.12]) with SMTP ID DSNKS1o0+Uy+F8hbNq6tSBW5zhhCQl0r+u9L@postini.com; Fri, 22 Jan 2010 15:30:03 PST Received: by pxi12 with SMTP id 12so1328917pxi.33 for ; Fri, 22 Jan 2010 15:30:01 -0800 (PST) Received: by 10.143.26.39 with SMTP id d39mr1031700wfj.33.1264203000393; Fri, 22 Jan 2010 15:30:00 -0800 (PST) Received: from ?10.0.1.7? (S0106001b63f42692.cg.shawcable.net [68.144.18.239]) by mx.google.com with ESMTPS id 22sm2369625pzk.6.2010.01.22.15.29.57 (version=SSLv3 cipher=RC4-MD5); Fri, 22 Jan 2010 15:29:58 -0800 (PST) Hi Eric, Thanks for looking into this. I'll strip down my app and do a similar "Hello World" version and see how I make out. I will give that method of loading Thin a try too. Report back when I know more. Thanks! -- Travis Bell On 2010-01-22, at 1:06 PM, Travis Bell wrote: > Just a follow up, it looks like it was rack 1.1.0 causing the issues. I uninstalled it, and am now using rack 1.0.1 and the error has gone away. > > Why it worked with Thin + Rack 1.1.0 and not Unicorn, still not sure. > > > Cheers guys. > > -- > Travis Bell > http://www.twitter.com/travisbell > http://www.twitter.com/themoviedb > > > > On 2010-01-21, at 11:30 PM, Travis Bell wrote: > >> Hey guys, >> >> I've been developing with Thin since day 1 (many months) and today, as I started moving everything to test on production (with Unicorn) started getting this weird error. >> >> I am using Sinatra, and have been setting my cookies like so: >> >> response.set_cookie('foo', { >> :value => "bar", >> :path => '/', >> :expires => Time.today+14400 >> }) >> >> In Thin, Webrick, Passenger, this seems to work fine. However in Unicorn I get a big fat ugly error: >> >> # Rack::Lint::LintError at /login >> # a header value must be a String, but the value of 'Set-Cookie' is a Array >> # /opt/ruby-enterprise-1.8.7-2010.01/lib/ruby/gems/1.8/gems/rack-1.1.0/lib/rack/lint.rb: in assert, line 18 >> >> I'm not really sure what this means since :value is a string. I am using the following versions: >> >> - REE (1.8.7-2010.01) >> - Rack 1.1.0 >> - Unicorn 0.96.0 >> - Latest Sinatra from source >> >> Does anyone have any input as to why this is happening? I have been able to re-produce this on a 32-bit CentOS box and my local MacBook Pro (Snow Leopard). >> >> >> Cheers, >> >> -- >> Travis Bell >> http://www.twitter.com/travisbell >> http://www.twitter.com/themoviedb >> >> >> > _______________________________________________ Unicorn mailing list - mongrel-unicorn@rubyforge.org http://rubyforge.org/mailman/listinfo/mongrel-unicorn Do not quote signatures (like this one) or top post when replying