<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Vladimir Vuksan&#039;s blog &#187; CouchDB</title>
	<atom:link href="http://blog.vuksan.com/tag/couchdb/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.vuksan.com</link>
	<description>Documenting the systems and network infrastructure madness</description>
	<lastBuildDate>Tue, 03 Jan 2012 03:50:38 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>CouchDB views creation problems</title>
		<link>http://blog.vuksan.com/2010/07/14/couchdb-views-creation-problems/</link>
		<comments>http://blog.vuksan.com/2010/07/14/couchdb-views-creation-problems/#comments</comments>
		<pubDate>Thu, 15 Jul 2010 01:49:19 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Systems Management]]></category>
		<category><![CDATA[CouchDB]]></category>

		<guid isPermaLink="false">http://blog.vuksan.com/?p=248</guid>
		<description><![CDATA[I have had a frustrating time creating views in CouchDB using curl. Executing following command I would get $ curl -s -X PUT -H "text/plain;charset=utf-8" -d cronview.json http://localhost:5984/cronologger/_design/cronview {"error":"bad_request","reason":"invalid UTF-8 JSON"} I checked and rechecked JSON, used the same JSON using CouchDB's Futon to no avail. Finally I found the answer here http://stackoverflow.com/questions/2461798/error-about-invalid-json-with-couchdb-view-but-the-jsons-fine The -d [...]]]></description>
			<content:encoded><![CDATA[<p>I have had a frustrating time creating views in CouchDB using curl. Executing following command I would get</p>
<pre>$ curl -s -X PUT -H "text/plain;charset=utf-8" -d cronview.json http://localhost:5984/cronologger/_design/cronview
{"error":"bad_request","reason":"invalid UTF-8 JSON"}</pre>
<p>I checked and rechecked JSON, used the same JSON using CouchDB's Futon to no avail. Finally I found the answer here</p>
<p><a href="http://stackoverflow.com/questions/2461798/error-about-invalid-json-with-couchdb-view-but-the-jsons-fine">http://stackoverflow.com/questions/2461798/error-about-invalid-json-with-couchdb-view-but-the-jsons-fine</a></p>
<p style="padding-left: 30px;">The <a rel="nofollow" href="http://curl.haxx.se/docs/manpage.html#-d--data"><code>-d</code> option of curl</a> expects the actual data as the argument!</p>
<p style="padding-left: 30px;">If you want to provide the data in a file, you need to prefix it with <code>@</code>:</p>
<pre style="padding-left: 30px;"><code>curl -X PUT -d @keys.json  $CDB/_design/id
</code></pre>
]]></content:encoded>
			<wfw:commentRss>http://blog.vuksan.com/2010/07/14/couchdb-views-creation-problems/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

