Making sure the design document wasn't out of date was a good idea.
Unfortunately, it seems correct:

{"views":{"by_time":{"map":"function ( doc ) { if( doc.type == 'reading' )
{ d = new Date( doc.time ); emit( [d.getFullYear(), d.getMonth(),
d.getDate(), d.getHours(), d.getMinutes()], doc ) }
}"}},"_rev":"1-f36be2417d00836fd5a375e7689fbda3","_id":"_design/reading"}

-Will


On Tue, May 20, 2014 at 4:06 PM, J. Chris Anderson <[email protected]>wrote:

>
>
> On Tuesday, May 20, 2014 8:56:34 AM UTC-7, Will Holcomb wrote:
>>
>> I got the app running in a 4.4.2 emulator. I get the same error: Router
>> unable to route request to do_GET_DesignDocumentjava.lang.reflect.
>> InvocationTargetException.
>>
>>
> The 409 conflict means the design doc isn't getting updated. So
> potentially it exists but doesn't have the views defined. What does the
> design document look like?
>
> With your code above:
>
> db.get(design,  function(err, ddoc){
>   console.log(JSON.stringify(ddoc))
> })
>
> --
> You received this message because you are subscribed to a topic in the
> Google Groups "Couchbase Mobile" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/mobile-couchbase/PCVFGaiTL5I/unsubscribe
> .
> To unsubscribe from this group and all its topics, send an email to
> [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/mobile-couchbase/180a17f6-62e6-401b-9369-3845c961029d%40googlegroups.com<https://groups.google.com/d/msgid/mobile-couchbase/180a17f6-62e6-401b-9369-3845c961029d%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Couchbase Mobile" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/mobile-couchbase/CAB8ffCC2ZK%3Dj5TChvbwYYLubh9OexSpTG9U3SrNKzp0%3DrbdDmg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to