Strange behavior when putting #63

Closed
dscape opened this Issue Aug 19, 2011 · 3 comments

Projects

None yet

1 participant

@dscape
dscape commented Aug 19, 2011

I wrote a simple test case available here:
https://gist.github.com/a98cdc65b06b10554080

@dscape
dscape commented Aug 19, 2011

Look at put-request.js

@dscape
dscape commented Aug 19, 2011

Actually only get that problem when I do the second request:

$ node index.js 
{ stack: [Getter/Setter],
  arguments: undefined,
  type: undefined,
  message: 'The database could not be created, the file already exists.',
  error: 'file_exists',
  http_code: 412,
  namespace: 'couch',
  request: 
   { method: 'PUT',
     headers: { 'content-type': 'application/json' },
     uri: 'http://testnano.iriscouch.com:80/test',
     callback: [Function] } } { server: 'CouchDB/1.1.0 (Erlang OTP/R14B03)',
  date: 'Fri, 19 Aug 2011 23:56:31 GMT',
  'content-type': 'text/plain;charset=utf-8',
  'content-length': '95',
  'cache-control': 'must-revalidate' } { error: 'file_exists',
  reason: 'The database could not be created, the file already exists.' }
$ node index.js 
{ stack: [Getter/Setter],
  arguments: undefined,
  type: undefined,
  message: 'Precondition Failed',
  error: undefined,
  http_code: 412,
  namespace: 'couch',
  request: 
   { method: 'PUT',
     headers: { 'content-type': 'application/json' },
     uri: 'http://testnano.iriscouch.com:80/test',
     callback: [Function] } } { server: 'CouchDB/1.1.0 (Erlang OTP/R14B03)',
  date: 'Fri, 19 Aug 2011 23:56:36 GMT',
  'content-type': 'text/plain;charset=utf-8',
  'content-length': '95',
  'cache-control': 'must-revalidate' } ''
@dscape dscape closed this Aug 20, 2011
@dscape
dscape commented Aug 20, 2011

Invalid, this is a problem in iriscouch that Jason is workin on

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment