On Thursday, February 21, 2013 2:24:49 PM UTC-8, Sean Redmond wrote:
>
> I'm trying to troubleshoot a Sinatra app where we're suddenly seeing 
> "model... does not have a primary key" errors. This is an API and endpoints 
> that usually work fine will every now and then error out. When a ruby error 
> occurs it just gets passed along as a message and we get something like 
> "<Gugg::WebApi::Collection::Db::Acquisition @values={[lots of perfectly 
> good values]}> does not have a primary key"
>
> Gugg::WebApi::Collection::Db::Acquisition is a Sequel::Model that most 
> certainly does have a primary key. The whole stack is Apache < Passenger < 
> Sinatra < Sequel < MySQL. We've dealt with all the usual "database has gone 
> away" errors and I'm trying to puzzle out if there's a intermittent MySQL 
> error that would cause this error to happen in Sequel.  If anyone has any 
> ideas...
>
>
If you can provide a reproducible test case, I would be interesteed in 
taking a look. Even a backtrace would be mildly helpful, I'm not sure which 
line is triggering that error (are you sure that is the complete error)?  
Just FYI, in the "lots of perfectly good values", is there a primary key 
value?

Thanks,
Jeremy

-- 
You received this message because you are subscribed to the Google Groups 
"sequel-talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sequel-talk?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to