JavaScript is required to use Bungie.net

Group Avatar

BungieNetPlatform

"Updates, discussions, and documentation of the BungieNetPlatform API."

Request Join
originally posted in:BungieNetPlatform
Edited by xorth: 11/20/2015 4:42:37 PM
1

API & Cloudflare

Bungie.Net, like most sites, including mine, are behind cloudflare. This also puts the api behind cloudflare as well. I've been having some problems since the api debuted, but just recently figured out what is causing it. Basically, some api responses come back truncated right in the middle of the response, which is obviously not valid json. Some days this happens a lot, some days not very much. Here is an explanation of what is happening: CloudFlare uses "Transfer-Encoding: chunked" to proxy the data. Sometimes the specified chunk length does not match the actual content length. When this happens the chunk reader will read data from the next chunk thinking its still content data. Corrupting the request. Cloudflare likely isn't doing much for the api requests, so is there anyway it could be disabled? That is a large request. At the very least, hopefully our research will help others explain the situation.

Posting in language:

 

Play nice. Take a minute to review our Code of Conduct before submitting your post. Cancel Edit Create Fireteam Post

View Entire Topic
  • Hey Xorth! Ah, that is frustrating. :( Unfortunately, we can't turn that off for the API requests. However, we *can* open a ticket with cloudflare and see if they can resolve the issue. Can you send me a logged request and response that we can then forward to Cloudflare to inform them of the issue? I will hit you up with an IM momentarily. Thank you!

    Posting in language:

     

    Play nice. Take a minute to review our Code of Conduct before submitting your post. Cancel Edit Create Fireteam Post

You are not allowed to view this content.
;
preload icon
preload icon
preload icon