0

Not sure if it's a correct place for bug requests, still.

I'm requesting my work intervals from an online fogbugz.com installation.

Here's the code I use to do it:

#!/bin/sh

FB_KEY=`cat ~/etc/myproject.fogbugz.com.token`
(
        echo -ne "cmd=listIntervals&"
        echo -ne "token=$FB_KEY"
) | POST -Ue https://myproject.fogbugz.com/api

I get back truncated XML and these headers:

200 OK
Cache-Control: private
Connection: close
Date: Wed, 25 Jan 2012 19:48:36 GMT
ETag:
Server: Microsoft-IIS/6.0
Content-Type: text/xml;charset=utf-8
Expires: Tue, 05 Sep 2000 09:00:00 GMT
Client-Aborted: die
Client-Date: Wed, 25 Jan 2012 19:48:36 GMT
Client-Peer: 64.34.80.163:443
Client-Response-Num: 1
Client-SSL-Cert-Issuer: /C=US/O=DigiCert Inc/OU=www.digicert.com/CN=DigiCert High Assurance CA-3
Client-SSL-Cert-Subject: /C=US/ST=New York/L=New York/O=Fog Creek Software, Inc./OU=IT/CN=*.fogbugz.com
Client-SSL-Cipher: DHE-RSA-AES256-SHA
Client-SSL-Socket-Class: IO::Socket::SSL
Client-Transfer-Encoding: chunked
Set-Cookie: sUniqueID=20120125194836-MY_IP_HERE-mblsf1u0p4; expires=Wed, 26-Jan-2022 00:48:36 GMT; path=/; secure; HttpOnly
X-AspNet-Version: 2.0.50727
X-Died: Missing newline after chunk data: <...XML Skipped...> at /usr/share/perl5/vendor_perl/Net/HTTP/Methods.pm line 481, <STDIN> line 1.
X-Powered-By: ASP.NET

XML is truncated at arbitrary places and sometimes it returns in full. The text in X-Died is the XML continued after the response was truncated.

My login is my username at gmail.com

flag
I'm seeing the exact same problem as well - thanks for the pointer to the x-died header. I'm seeing it on the listPeople command, so I doubt it's specific to a particular method call. Reporting bugs on this site seems to be valid, but you can email Fog Creek Software too... fogbugz.stackexchange.com/questions/1404/… – Tim Retout Jun 11 2012 at 13:58

2 Answers

0

After some investigation, this appears to be a bug in Net::HTTP rather than FogBugz:

https://rt.cpan.org/Public/Bug/Display.html?id=74431

or possibly:

https://rt.cpan.org/Public/Bug/Display.html?id=72790 https://bugzilla.redhat.com/show_bug.cgi?id=768394

The giveaway is the X-Died error message mentioning Perl - AFAIK Fog Creek don't use Perl for anything. :)

link|flag
0

I ran into the same problem, and was able to fix it by upgrading Net::HTTP to the latest version -- it appears to have been fixed in version 6.04:

http://cpansearch.perl.org/src/GAAS/Net-HTTP-6.04/Changes

link|flag

Your Answer

Not the answer you're looking for? Browse other questions tagged or ask your own question.