Create ticket returns status 500, but ticket is created. Not in all spaces

31 views
Skip to first unread message

Wouter

unread,
May 16, 2017, 5:30:18 AM5/16/17
to Assembla API Development
Hi,

I've created a tool which uses your API to create tickets (among others). It doesn't use cURL.
This tool works perfectly fine, except for 1 space. In only one space the status 500 is returned, even though the ticket is created. In all other spaces I get a 201 response.

Here's the JSON I send:
{"ticket":{"summary":"test1 (Versie: 0.2.1-5)","description":"Werkversie","priority":3,"importance":0.0,"milestone_id":11433813,"working_hours":0.0,"estimate":0.0,"total_estimate":0.0,"total_invested_hours":0.0,"total_working_hours":0.0}}

Works in space: ID: ad5GuuoVir4QnJacwqjQWU ("DX Class Test Space")
Doesn't work in space: ID: dVdKTea9er57dcacwqEsg8 ("DTM Daimler Data Migration Test")

All other things are equal, it's just the space that is different. 

What is different between those spaces? The one where it doesn't work is the newest, but I can't see why that would matter.

Regards,
Wouter

wojc...@assembla.com

unread,
May 17, 2017, 5:28:48 AM5/17/17
to Assembla API Development
Hi Wouter, 

Can you please provide more details how you build your request ?
also can you please send message to our support so we will investigate ? 

Regards,
Wojciech

Wouter

unread,
May 17, 2017, 7:02:54 AM5/17/17
to Assembla API Development
Hi Wojciech,

I create a HttpWebRequest using C#. 
Method: POST
Headers: {Content-Type: application/json
               Authorization: Bearer [token]
               Host: api.assembla.com
               Content-Length: 238
               Expect: 100-continue}

As I said, if I send the exact same request to a different space, there is no error.

Response:
{Connection: keep-alive
X-Request-Id: 80b158ef-cce5-4c87-99fb-b97ca09b9465
X-Runtime: 0.562336
Status: 500 Internal Server Error
CF-RAY: 36060fd0bdd72c4e-AMS
Content-Length: 48
Content-Type: application/json; charset=utf-8
Date: Wed, 17 May 2017 10:58:29 GMT
Set-Cookie: __cfduid=daef16f952605e4dca35b4b81b953a1291495018708; expires=Thu, 17-May-18 10:58:28 GMT; path=/; domain=.assembla.com; HttpOnly
Server: cloudflare-nginx
X-Powered-By: Phusion Passenger 5.0.28
}

Regards,
Wouter

Wouter

unread,
May 17, 2017, 7:13:59 AM5/17/17
to Assembla API Development
Hi Wojciech,

Which support do you mean? This group is support, isn't it?

Wouter

On Wednesday, May 17, 2017 at 11:28:48 AM UTC+2, wojc...@assembla.com wrote:

Wouter

unread,
May 19, 2017, 7:01:14 AM5/19/17
to Assembla API Development
Problem is solved. The issue was the Estimate field, This field was default filled with 0 by the tool, but in the space the settings were "Do not show". Because of this discrepancy the error occurred. The returned error message will be changed to indicate the issue more clearly,

Thanks again Wojciech.
Reply all
Reply to author
Forward
0 new messages