Jay, You rock, patching in the middle of the night!
It worked like a charm! Thanks. On Thu, May 26, 2011 at 11:15:31PM -0600, Jay McCarthy wrote: > Obviously I'm tots dums. My int32? was original > int16/minus-the-end-points? and I changed it to int16?, now I just > made it int32? > > Try again... sorry :( > > Jay > > 2011/5/26 Russell Adams <[email protected]>: > > Same error, but now for 32768. > > > > <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: 32768 > > > > It looks like Mongo might be returning something that violates the > > int32? on part of your struct. > > > > Thanks! > > > > On Thu, May 26, 2011 at 10:06:44PM -0600, Jay McCarthy wrote: > >> I just pushed a fix and updated the package on Planet. > >> > >> https://github.com/jeapostrophe/mongodb/commit/0581446d58aa1c8af51c3e41955f4d67b6a28f57 > >> > >> Jay > >> > >> 2011/5/26 Russell Adams <[email protected]>: > >> > 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 <[email protected]>: > >> >> > 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 ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? > >> >> > [email protected] > >> >> > > >> >> > 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 <[email protected]> > >> >> 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 ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? > >> > [email protected] > >> > > >> > 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 <[email protected]> > >> 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 ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? > > [email protected] > > > > 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 <[email protected]> > 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 [email protected] 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

