https://bugs.gpodder.org/show_bug.cgi?id=1484

             Bug #: 1484
           Summary: creating devices seems broken
    Classification: Unclassified
           Product: gpodder.net
           Version: unspecified
          Platform: PC
        OS/Version: Linux
            Status: CONFIRMED
          Severity: major
          Priority: low
         Component: Advanced API (Server-side)
        AssignedTo: [email protected]
        ReportedBy: [email protected]


After having troubles creating a device via libmygpo-qt I've looked it up in
wireshark & tried in mygpoclient and it seems sth with the api is wrong.

please try to fix as soon as possible, cause I want to implement the device
naming scheme we discussed today in amarok ;)

mygpoclient:
>>> client.update_device_settings("amarok-sokar",caption="Amarok on sokar")
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "mygpoclient/api.py", line 379, in update_device_settings
    return (self._client.POST(uri, data) is None)
  File "mygpoclient/http.py", line 139, in POST
    return self._request('POST', uri, data)
  File "mygpoclient/http.py", line 130, in _request
    raise UnknownResponse(http_error.code)
mygpoclient.http.UnknownResponse: 500

from wireshark:
POST /api/2/devices/ase23/amarok-sokar.json HTTP/1.1

Host: gpodder.net

Connection: keep-alive

User-Agent: Mozilla/5.0 (X11; Linux i686) KHTML/4.7.2 (like Gecko)
Konqueror/4.7

Pragma: no-cache

Cache-control: no-cache

Accept: text/html, text/*;q=0.9, image/jpeg;q=0.9, image/png;q=0.9,
image/*;q=0.9, */*;q=0.8

Accept-Encoding: gzip, deflate, x-gzip, x-deflate

Accept-Charset: utf-8,*;q=0.5

Accept-Language: en-US,en;q=0.9

Cookie: sessionid=e0e4731c0729129af969e4d36f5123d8

Authorization: Basic YXNlMjM6Y3NmLXNlcG0=

Content-Type: application/x-www-form-urlencoded

Content-Length: 51



{ "caption" : "Amarok on sokar", "type" : "other" }HTTP/1.1 500 INTERNAL SERVER
ERROR

Server: nginx/0.7.65

Date: Thu, 10 Nov 2011 19:28:44 GMT

Content-Type: text/html; charset=utf-8

Transfer-Encoding: chunked

Connection: keep-alive

Vary: Accept-Language, Cookie

Content-Language: en



217

<html>
    <head>
        <title>500 Internal server error (gpodder.net)</title>
        <link rel="stylesheet" type="text/css" href="/media/fail.css" />
    </head>
    <body>
        <div id="c">
            <div id="fail">
                <h1>500 - Internal server error.</h1>
                <p>
                The service is currently overloaded.
                Please try again later or contact us.
                </p>
            </div>
        </div>
        <img id="icon" src="/media/failpodder.png">
    </body>
</html>



0

-- 
Configure bugmail: https://bugs.gpodder.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching all bug changes.
_______________________________________________
gPodder-Bugs mailing list
[email protected]
https://lists.berlios.de/mailman/listinfo/gpodder-bugs

Reply via email to