Return-Path: X-Original-To: apmail-couchdb-user-archive@www.apache.org Delivered-To: apmail-couchdb-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 879E89204 for ; Thu, 2 Feb 2012 00:50:24 +0000 (UTC) Received: (qmail 41115 invoked by uid 500); 2 Feb 2012 00:50:23 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 41053 invoked by uid 500); 2 Feb 2012 00:50:22 -0000 Mailing-List: contact user-help@couchdb.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@couchdb.apache.org Delivered-To: mailing list user@couchdb.apache.org Received: (qmail 41045 invoked by uid 99); 2 Feb 2012 00:50:22 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 02 Feb 2012 00:50:22 +0000 X-ASF-Spam-Status: No, hits=2.2 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: local policy) Received: from [209.85.212.52] (HELO mail-vw0-f52.google.com) (209.85.212.52) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 02 Feb 2012 00:50:14 +0000 Received: by vbih1 with SMTP id h1so1912377vbi.11 for ; Wed, 01 Feb 2012 16:49:53 -0800 (PST) Received: by 10.52.90.171 with SMTP id bx11mr309038vdb.26.1328143793269; Wed, 01 Feb 2012 16:49:53 -0800 (PST) MIME-Version: 1.0 Received: by 10.52.17.144 with HTTP; Wed, 1 Feb 2012 16:49:33 -0800 (PST) X-Originating-IP: [68.4.109.196] In-Reply-To: References: From: Mark Hahn Date: Wed, 1 Feb 2012 16:49:33 -0800 Message-ID: Subject: Re: new ReferenceError(options is not defined) To: user@couchdb.apache.org Content-Type: multipart/alternative; boundary=20cf3071c97c022b4204b7f0930a X-Virus-Checked: Checked by ClamAV on apache.org --20cf3071c97c022b4204b7f0930a Content-Type: text/plain; charset=ISO-8859-1 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 wrote: > 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" wrote: > > > 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? > > > > Do view maps run in on an attachment put? Is there any other javascript > > code that runs on a put? > > > > On Wed, Feb 1, 2012 at 3:53 PM, Keith Gable > >wrote: > > > > > 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, 2012 at 5:46 PM, Mark Hahn wrote: > > > > > > > I don't have any validation function. > > > > > > > > On Wed, Feb 1, 2012 at 3:37 PM, Keith Gable < > > ziggy@ignition-project.com > > > > >wrote: > > > > > > > > > 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 sense if you read it? Maybe your validation function isn't > valid > > > > > JavaScript for one reason or another, or maybe it's valid but it's > > > > > attempting to initialize options in a way that CouchDB isn't > liking. > > > > > > > > > > --- > > > > > Keith Gable > > > > > A+ Certified Professional > > > > > Network+ Certified Professional > > > > > Storage+ Certified Professional > > > > > Web Developer > > > > > > > > > > > > > > > > > > > > On Wed, Feb 1, 2012 at 5:24 PM, Mark Hahn wrote: > > > > > > > > > > > What makes you think the error contains coffeescript? > > > > > > > > > > > > On Wed, Feb 1, 2012 at 3:16 PM, Keith Gable < > > > > ziggy@ignition-project.com > > > > > > >wrote: > > > > > > > > > > > > > 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 Wed, Feb 1, 2012 at 11:58 AM, Mark Hahn > > > wrote: > > > > > > > > > > > > > > > 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. > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > --20cf3071c97c022b4204b7f0930a--