Re: new ReferenceError(options is not defined)

2012-02-01 Thread Jason Smith
On Wed, Feb 1, 2012 at 10:38 AM, Mark Hahn m...@hahnca.com wrote:  do you have a validate_doc_update function with any mention of an options label? No, I don't.  I don't have anything named options in my db setup.   I suspect the options part of your node code is a red herring. When I get

Re: new ReferenceError(options is not defined)

2012-02-01 Thread Keith Gable
, Mark Hahn m...@hahnca.com wrote: I'm getting this error on a put request for an attachment. [error] [0.7533.1] OS Process Error 0.7546.1 :: {unnamed_error, (new ReferenceError(\options is not defined\, \\))} This is my node code ... headers

Re: new ReferenceError(options is not defined)

2012-02-01 Thread Mark Hahn
. [error] [0.7533.1] OS Process Error 0.7546.1 :: {unnamed_error, (new ReferenceError(\options is not defined\, \\))} This is my node code ... headers = {} headers.Authorization = mh.dbAuthHdr headers['content-type'] = contentType

Re: new ReferenceError(options is not defined)

2012-02-01 Thread Keith Gable
0.7546.1 :: {unnamed_error, (new ReferenceError(\options is not defined\, \\))} This is my node code ... headers = {} headers.Authorization = mh.dbAuthHdr headers['content-type'] = contentType headers['content-length

Re: new ReferenceError(options is not defined)

2012-02-01 Thread Mark Hahn
:: {unnamed_error, (new ReferenceError(\options is not defined\, \\))} This is my node code ... headers = {} headers.Authorization = mh.dbAuthHdr headers['content-type'] = contentType headers['content-length'] = contentLength

Re: new ReferenceError(options is not defined)

2012-02-01 Thread Mark Hahn
And technically, coffeescript isn't part of node. It is just javascript which runs anywhere, like the browser. I even write my couchdb views in coffeescript. Works great. Think of it as complex editor macros.

Re: new ReferenceError(options is not defined)

2012-02-01 Thread Keith Gable
Right, but if you're getting an error from CouchDB that contains CoffeeScript, then clearly CouchDB is attempting to execute CoffeeScript as JavaScript, which isn't valid. --- Keith Gable A+ Certified Professional Network+ Certified Professional Storage+ Certified Professional Web Developer On

Re: new ReferenceError(options is not defined)

2012-02-01 Thread Mark Hahn
What makes you think the error contains coffeescript? On Wed, Feb 1, 2012 at 3:16 PM, Keith Gable zi...@ignition-project.comwrote: Right, but if you're getting an error from CouchDB that contains CoffeeScript, then clearly CouchDB is attempting to execute CoffeeScript as JavaScript, which

Re: new ReferenceError(options is not defined)

2012-02-01 Thread Keith Gable
You pasted respStr = ... - that part looks like CoffeeScript, and I assumed it was being spat at you by CouchDB. Rereading clarified that for me. I agree with others that the ReferenceError is being thrown at you from JavaScript, but I don't know why that is. Does your compiled CoffeeScript make

Re: new ReferenceError(options is not defined)

2012-02-01 Thread Mark Hahn
I don't have any validation function. On Wed, Feb 1, 2012 at 3:37 PM, Keith Gable zi...@ignition-project.comwrote: You pasted respStr = ... - that part looks like CoffeeScript, and I assumed it was being spat at you by CouchDB. Rereading clarified that for me. I agree with others that the

Re: new ReferenceError(options is not defined)

2012-02-01 Thread Keith Gable
So you're PUTting an attachment and getting a JavaScript error? Unless I'm forgetting something, wouldn't that have to come about from a validation function? --- Keith Gable A+ Certified Professional Network+ Certified Professional Storage+ Certified Professional Web Developer On Wed, Feb 1,

Re: new ReferenceError(options is not defined)

2012-02-01 Thread Mark Hahn
I know I have no validation function because I've never written one in my life. Someone else said that it was from javascript. It starts with OS Process error. Is that normally what you get if you have a javascript error? Does it say that because the javascript is running in another process?

Re: new ReferenceError(options is not defined)

2012-02-01 Thread Keith Gable
Yes, JavaScript errors will give you an OS process error because they run in a separate process (couchjs). Maps and reduces will execute any time you update a document, so maybe this is a map or reduce function. But then how did it work initially? On Feb 1, 2012 6:27 PM, Mark Hahn m...@hahnca.com

Re: new ReferenceError(options is not defined)

2012-02-01 Thread Mark Hahn
Thanks. I guess everyone thought I new what OS Process error meant. I will investigate based on this new understanding. On Wed, Feb 1, 2012 at 4:32 PM, Keith Gable zi...@ignition-project.comwrote: Yes, JavaScript errors will give you an OS process error because they run in a separate process

Re: new ReferenceError(options is not defined)

2012-01-31 Thread Mark Hahn
] [0.7533.1] OS Process Error 0.7546.1 :: {unnamed_error, (new ReferenceError(\options is not defined\, \\))} This is my node code ... headers = {} headers.Authorization = mh.dbAuthHdr headers['content-type'] = contentType headers['content-length'] = contentLength dbPath = '/ri

Re: new ReferenceError(options is not defined)

2012-01-31 Thread CGS
:: {unnamed_error, (new ReferenceError(\options is not defined\, \\))} This is my node code ... headers = {} headers.Authorization = mh.dbAuthHdr headers['content-type'] = contentType headers['content-length'] = contentLength dbPath = '/ri/' + compDoc._id + '/' + attachmentName + '?rev

Re: new ReferenceError(options is not defined)

2012-01-31 Thread Mark Hahn
Process Error? On Mon, Jan 30, 2012 at 2:29 PM, Mark Hahn m...@hahnca.com wrote: I'm getting this error on a put request for an attachment. [error] [0.7533.1] OS Process Error 0.7546.1 :: {unnamed_error, (new ReferenceError(\options is not defined

Re: new ReferenceError(options is not defined)

2012-01-31 Thread Mark Hahn
:: {unnamed_error, (new ReferenceError(\options is not defined\, \\))} This is my node code ... headers = {} headers.Authorization = mh.dbAuthHdr headers['content-type'] = contentType headers['content-length'] = contentLength dbPath = '/ri/' + compDoc._id

Re: new ReferenceError(options is not defined)

2012-01-31 Thread CGS
I don't know what you did there, but it seems there is an interaction in between node and couch in which couch catches 'new ReferenceError(options is not defined)' (it may be that node returns this error to couch via JS, but really no idea because I don't know what you did there). From the error

Re: new ReferenceError(options is not defined)

2012-01-31 Thread Mark Hahn
Thank you very much. I will look at it with wireshark. On Tue, Jan 31, 2012 at 3:39 PM, CGS cgsmcml...@gmail.com wrote: I don't know what you did there, but it seems there is an interaction in between node and couch in which couch catches 'new ReferenceError(options is not defined)' (it may

Re: new ReferenceError(options is not defined)

2012-01-31 Thread Jason Smith
] [0.7533.1] OS Process Error 0.7546.1 :: {unnamed_error, suggested the error caught by Erlang from JS engine, while the second part: (new ReferenceError(\options is not defined\, \\))} is the JS engine report for that error (which is translated like: the 'options' variable/element

new ReferenceError(options is not defined)

2012-01-30 Thread Mark Hahn
I'm getting this error on a put request for an attachment. [error] [0.7533.1] OS Process Error 0.7546.1 :: {unnamed_error, (new ReferenceError(\options is not defined\, \\))} This is my node code ... headers = {} headers.Authorization = mh.dbAuthHdr headers['content-type