couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Paul Davis <paul.joseph.da...@gmail.com>
Subject Re: PUT responds with 201 but GET returns 404
Date Wed, 04 Jul 2012 05:41:47 GMT
Weirdness. Can you try and distill this down to a few curl commands?
It would seem like a bug but I can't for the life of me pin it down
exactly from your reports.

On Wed, Jul 4, 2012 at 1:23 AM, Matt Cheers <matt.cheers@wotifgroup.com> wrote:
>
> Apologies Paul, now with correct key and /snipped data.
>
> ---------------------------------------------------
>
> curl -a --raw
> http://10.100.169.99:5984/api_keys/ws-test-flaming-wot-key?conflicts=true
>
> {"_id":"ws-test-flaming-wot-key","_rev":"29-f8ff63465214118dc98599a96b7cc38b","application":"search","type":"api_key"}
>
> ----------------------------------------------------
>
> curl -a --raw
> http://10.100.169.99:5984/api_keys/ws-test-flaming-wot-key?open_revs=all
> 22
> --9242f167a584c70b9a784ded2989c115
> 24
>
> Content-Type: application/json
>
>
> f5
> {"_id":"ws-test-flaming-wot-key","_rev":"29-f8ff63465214118dc98599a96b7cc38b","application":"search","type":"api_key"}
> 24
>
> --9242f167a584c70b9a784ded2989c115
> 2
> --
> 0
>
>
>
> On 04/07/12 14:58, Paul Davis wrote:
>>
>> That output looks quite odd. Can you try with a -v --raw on those curl
>> commands?
>>
>> On Wed, Jul 4, 2012 at 12:11 AM, Matt Cheers<matt.cheers@wotifgroup.com>
>>  wrote:
>>>
>>> On 04/07/12 13:40, Paul Davis wrote:
>>>>
>>>> What's the output of these two commands?
>>>>
>>>> curl http://10.100.169.99:5984/api_keys/test-key?conflicts=true
>>>> curl http://10.100.169.99:5984/api_keys/test-key?open_revs=all
>>>
>>>
>>> curl http://10.100.169.99:5984/api_keys/test-key?conflicts=true
>>>
>>> {"_id":"test-key","_rev":"29-f8ff63465214118dc98599a96b7cc38b"}
>>>
>>>
>>> curl http://10.100.169.99:5984/api_keys/test-key?open_revs=all
>>>
>>> --387f0371345be7f079ea1577dae1e346
>>> Content-Type: application/json
>>>
>>> {"_id":"test-key","_rev":"29-f8ff63465214118dc98599a96b7cc38b"}
>>> --387f0371345be7f079ea1577dae1e346--
>>>
>>>
>>>
>>>
>>> This email (including any attachments) is confidential and may be
>>> privileged. If you have received it in error, please notify the sender by
>>> return email and delete this message from your system. Any unauthorised
>>> use
>>> or dissemination of this message in whole or in part is strictly
>>> prohibited.
>>> Please note that emails are susceptible to change and we will not be
>>> liable
>>> for the improper or incomplete transmission of the information contained
>>> in
>>> this communication nor for any delay in its receipt or damage to your
>>> system. We do not guarantee that the integrity of this communication has
>>> been maintained nor that this communication is free of viruses,
>>> interceptions or interference.
>
>
>
> This email (including any attachments) is confidential and may be
> privileged. If you have received it in error, please notify the sender by
> return email and delete this message from your system. Any unauthorised use
> or dissemination of this message in whole or in part is strictly prohibited.
> Please note that emails are susceptible to change and we will not be liable
> for the improper or incomplete transmission of the information contained in
> this communication nor for any delay in its receipt or damage to your
> system. We do not guarantee that the integrity of this communication has
> been maintained nor that this communication is free of viruses,
> interceptions or interference.

Mime
View raw message