problem with createBug http API

Asked by Stefano De Rossi

When I try to create a new bug I get a 500 error "AttributeError".

The request is the following:

POST /1.0/bugs HTTP/1.1
Host: api.launchpad.net
Authorization: OAuth realm="https://api.launchpad.net/",oauth_consumer_key="duetto-support",oauth_signature_method="PLAINTEXT",oauth_version="1.0",oauth_token="{OMISSIS}",oauth_signature="%26{OMISSIS}",oauth_timestamp="1397594612",oauth_nonce="sffg5ssggddgd45ff34"
Accept: application/json
Cache-Control: no-cache
Content-Type: application/x-www-form-urlencoded

ws.op=createBug&description=test+description&title=test&target=https%3A%2F%2Fapi.launchpad.net%2F1.0%2Fprojects%2Fduetto

Question information

Language:
English Edit question
Status:
Answered
For:
Launchpad itself Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
William Grant (wgrant) said :
#1

/projects/PROJECTNAME URLs have been deprecated for seven years, and don't work on the API. Drop the %2Fprojects from the request and it should work fine.

Can you help with this problem?

Provide an answer of your own, or ask Stefano De Rossi for more information if necessary.

To post a message you must log in.