HTTP/1.1 403 Forbidden. Problem with multi-thread when get report


When I get report ( for multi account using multi-thread. I only get report for the first account_id in my list, another account return the empty response . What is the problem? Please help me. Thank you so much.


Would you be able to provide the full request you’re making? We strongly recommend using the twurl tool and passing in the -t parameter for a full trace. Please be sure to redact/remove your keys when you reply to this post. That should give us the information we need to figure out what might be happening.


My request is below. I call it 5 times for 5 different account_id. Of course, I have to set new token for each account_id before sending the request.

The problem is when I get report for multi account (different token) in the same time. I only get the response for the first account. Another account will return the error:

HttpResponseProxy{HTTP/1.1 403 Forbidden [content-disposition: attachment; filename=json.json, content-type: application/json;charset=utf-8, date: Fri, 16 Jun 2017 02:39:33 GMT, server: xxx, set-cookie: guest_id=xxxx;; Path=/; Expires=Sun, 16-Jun-2019 02:39:33 UTC, strict-transport-security: max-age=xxxx, transfer-encoding: chunked, x-access-level: read-write, x-api-version: 1.0, x-connection-hash: xxxx, x-content-type-options: nosniff, x-frame-options: SAMEORIGIN, x-rate-limit-limit: 2000, x-rate-limit-remaining: 1995, x-rate-limit-reset: 1497581010, x-response-time: 186, x-runtime: 0.013451, x-transaction: 00a9cf6f00512bc7, x-xss-protection: 1; mode=block] org.apache.http.client.entity.DecompressingEntity@69c26051}

Do you know the reason?


I see the problem. The problem is not API problem. It is a bug in my source code. We can close this topic now. Thank you very much for your help.