Re: [Snowy] Crash when doing PUT



Hi Cornelius,

I had the same error, installing python-simplejson should fix it
instead of having to upgrade the whole python stack.

Cheers,

Benoît



On Fri, Aug 7, 2009 at 11:01 AM, Cornelius Hald<hald icandy de> wrote:
> Hi everyone,
>
> after getting my head (and code) around the OAuth stuff I'm finally able
> to download notes from Snowy. Now I want to upload some notes, but
> having troubles doing so. Probably I'm doing something wrong, but I have
> no idea what it is. So if someone has an idea, please help :)
>
> Here is my request captured with wireshark:
>
> PUT /api/1.0/root/notes/?oauth_consumer_key=root&oauth_nonce=TrPgnV05qc0h4fki&oauth_signature_method=HMAC-SHA1&oauth_timestamp=1249633993&oauth_token=4uUnR6tgGMbQynNP2A&oauth_version=1.0&oauth_signature=%2FiA1w7fvO4hw%2FWpx%2BE9v7pd7hAU%3D HTTP/1.1
> User-Agent: liboauth-agent
> Host: 127.0.0.1:8000
> Accept: */*
> Content-Type: application/json
> Content-Length: 425
>
> { "note_changes" : [ { "note_content" : "One line of content",
> "pinned" : false, "last_meta_data_change_date" :
> "2009-08-07T10:00:45.0000000+02:00", "guid" :
> "4621178a-5c4a-4d2f-a473-1bff040ea575", "create_date" :
> "2009-08-07T10:00:32.0000000+02:00", "open_on_startup" : false,
> "note_content_version" : 0.1, "last_change_date" :
> "2009-08-07T10:00:45.0000000+02:00", "title" : "New Note 123" } ],
> "latest_sync_revision" : -1 }
>
>
> And here is the reply from Snowy:
>
> HTTP/1.0 200 OK
> Date: Fri, 07 Aug 2009 08:33:14 GMT
> Server: WSGIServer/0.1 Python/2.5.2
> Vary: Authorization, Accept-Language, Cookie
> Content-Type: application/json; charset=utf-8
> Content-Language: en-us
>
> "Piston/0.2 (Django 1.1 beta 1) crash report:\n\nTraceback (most recent
> call last):\n\n  File \"/home/conny/snowy/../snowy/api/handlers.py\",
> line 50, in wrapper\n    return fn(*args, **kwargs)\n\n  File
> \"/home/conny/snowy/../snowy/api/handlers.py\", line 50, in wrapper\n
> return fn(*args, **kwargs)\n\n  File
> \"/usr/lib/python2.5/site-packages/django/db/transaction.py\", line 240,
> in _commit_on_success\n    res = func(*args, **kw)\n\n  File
> \"/home/conny/snowy/../snowy/api/handlers.py\", line 121, in update\n
> update = json.loads(request.raw_post_data)\n\nAttributeError: 'module'
> object has no attribute 'loads'\n"
>
>
> First I tried with a version of Snowy which was a couple of weeks old.
> Then I did a clean install with the current git version. The error is
> still the same...
>
>
> Thanks!
> Conny
>
>
> _______________________________________________
> Snowy-list mailing list
> Snowy-list gnome org
> http://mail.gnome.org/mailman/listinfo/snowy-list
>
>


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]