originally posted in:BungieNetPlatform
View Entire Topic
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.
English
-
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!