Truncated server response: 502 Bad Gateway Error

577 views
Skip to first unread message

Sam Crockett

unread,
Mar 29, 2018, 6:44:42 AM3/29/18
to Accelo Developers
Hi,

We have a number of scripts that process API pulls from various endpoints (Tasks, Jobs/Projects, etc) overnight (between the hours of 12AM - 6AM PST). While these scripts usually complete successfully, we have been receiving a truncated server response with a 502 Bad Gateway error from our API deployment address.

Here is a sample of the query that has occasionally failed:


The failed request is usually related to our pull of data from the job endpoint, specifically when we query extensions (for custom fields) for each job (we loop through all of the jobs we pulled previously and then pull extension data for each job).

We would appreciate your insight on how to resolve these 502 gateway errors (or optimize our use of the API to prevent them).

Thanks!

Sam

Matthew Hughes

unread,
Apr 3, 2018, 3:02:13 AM4/3/18
to Accelo Developers
Hi Sam,

Thanks for notifying us of the errors, I will have a look into them.

Regards,
Matt

Sam Crockett

unread,
Apr 11, 2018, 7:05:44 AM4/11/18
to Accelo Developers
Hi Matt,

Following up on this thread. We are still receiving 502 and 501 server errors from the API on a semi-regular basis.

Please review and follow up when you can.

Thanks!

Sam

Matthew Hughes

unread,
Apr 11, 2018, 9:44:14 PM4/11/18
to Accelo Developers
Hi Sam,

Thanks for the follow up, my searching has not discovered much and I will pass it on to the infrastructure team (but will keep you update with here). Could you elaborate on "a semi-regular basis", would this mean several times throughout one overnight run, or a few times across several runs? Are the errors seen at other parts of the days (or do you only interact with the API through your over night scripts?).

Regards,
Matt

Sam Crockett

unread,
Apr 16, 2018, 10:24:23 AM4/16/18
to Accelo Developers
Hi Matt,

Thank you for passing this on to the infrastructure team. As for more details:

We welcome any thoughts or feedback on how we can improve our use of Accelo's API.

Thanks,

Sam

Kurt Wagner

unread,
Apr 17, 2018, 12:27:53 AM4/17/18
to Accelo Developers
Hi Sam,

Thanks for the additional information. Next time please ensure you blank out any confidential information. e.g, instead of your actual token you may say "<bearer token>". I've deleted the token shared in your last message to prevent it being used by anyone else.

Regards,
Kurt

Sam Crockett

unread,
Apr 17, 2018, 1:36:36 PM4/17/18
to accel...@googlegroups.com
Kurt,

Thank you for catching that. I thought I had copied an abbreviated version of the full request token.

Best,

Sam


Matthew Hughes

unread,
Apr 19, 2018, 8:52:15 PM4/19/18
to Accelo Developers
Hi Sam,

An update on this, our infrastructure team have identified and taken steps to address some instability, which is potentially the cause of these errors. Please let us know if the issue arises again.

Regards,
Matt

Sam Crockett

unread,
Apr 23, 2018, 7:40:51 AM4/23/18
to Accelo Developers
Hi Matt,

Thanks for the note on this.

We experienced another timeout last night on one of our API calls for Tasks. Here is a query sample:

Matthew Hughes

unread,
Apr 23, 2018, 9:00:49 PM4/23/18
to Accelo Developers
Hi Sam,

Thanks for letting me know, I'll have a further look into it.

Regards,
Matt
Reply all
Reply to author
Forward
0 new messages