[racket] MongoDB planet module

From: Russell Adams (RLAdams at AdamsInfoServ.Com)
Date: Thu May 26 23:14:56 EDT 2011

Jay,

----------------------------------------------------------------------
<planet>/jaymccarthy/mongodb.plt/1/8/wire/format.rkt:10.16:
  (file
   /home/rladams/.racket/planet/300/5.0.2/cache/jaymccarthy/mongodb.plt/1/8/wire/format.rkt)
 broke the contract (-> reply? int32?) on reply-starting-from;
  expected <int32?>, given: 32767

 === context ===
/usr/local/lib/racket/collects/racket/contract/private/blame.rkt:58:0:
raise-blame-error
/home/rladams/.racket/planet/300/5.0.2/cache/jaymccarthy/mongodb.plt/1/8/basic/driver.rkt:73:0:
mongo-cursor-next
/usr/local/lib/racket/collects/racket/private/for.rkt:713:20:
init-prep-val!
/usr/local/lib/racket/collects/racket/private/for.rkt:709:20:
init-more?
/usr/local/lib/racket/collects/racket/private/for.rkt:627:15
/home/rladams/AdamsInfoServ/Projects/SchemeSnapToMongo/ReportOnMongo.rkt:104:2:
for-loop
/home/rladams/AdamsInfoServ/Projects/SchemeSnapToMongo/ReportOnMongo.rkt:103:0:
core
/home/rladams/AdamsInfoServ/Projects/SchemeSnapToMongo/ReportOnMongo.rkt:289:14:
temp51
/home/rladams/AdamsInfoServ/Projects/SchemeSnapToMongo/ReportOnMongo.rkt:214:0:
for-loop
/home/rladams/AdamsInfoServ/Projects/SchemeSnapToMongo/ReportOnMongo.rkt:
[running body]

----------------------------------------------------------------------

Thanks.

On Thu, May 26, 2011 at 09:06:42PM -0600, Jay McCarthy wrote:
> What do you mean "int32?" errors? It would be nice if you could send
> the actual error you are getting.
>
> The code can handle floats, int32s, and int64s. The relevant code is in
>
> https://github.com/jeapostrophe/mongodb/blob/master/lib/binio.rkt [see
> int32? and int64?]
>
> and
>
> https://github.com/jeapostrophe/mongodb/blob/master/bson/shared.rkt [value->tag]
>
> Jay
>
> 2011/5/26 Russell Adams <RLAdams at adamsinfoserv.com>:
> > I hope this is the right place to ask about the Mongo module.
> >
> > I keep getting int32? errors, any suggestions or what could I patch to
> > allow larger numbers?
> >
> > Thanks.
> >
> > ------------------------------------------------------------------
> > Russell Adams ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ??RLAdams at AdamsInfoServ.com
> >
> > PGP Key ID: ?? ?? 0x1160DCB3 ?? ?? ?? ?? ?? http://www.adamsinfoserv.com/
> >
> > Fingerprint: ?? ??1723 D8CA 4280 1EC9 557F ??66E8 1154 E018 1160 DCB3
> > _________________________________________________
> > ??For list-related administrative tasks:
> > ??http://lists.racket-lang.org/listinfo/users
> >
>
>
>
> --
> Jay McCarthy <jay at cs.byu.edu>
> Assistant Professor / Brigham Young University
> http://faculty.cs.byu.edu/~jay
>
> "The glory of God is Intelligence" - D&C 93
>
> _________________________________________________
>   For list-related administrative tasks:
>   http://lists.racket-lang.org/listinfo/users


------------------------------------------------------------------
Russell Adams                            RLAdams at AdamsInfoServ.com

PGP Key ID:     0x1160DCB3           http://www.adamsinfoserv.com/

Fingerprint:    1723 D8CA 4280 1EC9 557F  66E8 1154 E018 1160 DCB3


Posted on the users mailing list.