When direct link is used to download files from box. Following is provided as response:
We are not currently able to process your request; please try again in few minutes.<br /> If you continue having isues, please submit a request at <a href="https://support.box.com">https://support.box.com</a> for support.
Still stucked within downloading direct links result not into file but into:
code: 400
message: Bad Request
response headers:
Server: nginx
Date: Thu, 29 Jun 2023 12:42:19 GMT
Content-Type: text/html
Content-Length: 1653
x-envoy-upstream-service-time: 65
X-Box-Original-Ingress-ADC-Host: prod-c-traffic-manager-ttk5
Strict-Transport-Security: max-age=31536000
Via: 1.1 google
Alt-Svc: h3=":443"; ma=2592000,h3-29=":443"; ma=2592000
response content:
Hi Pavel,
Welcome to Box Community and glad to help!
To have your direct link to work,
- Please use your alternate browser, also, always check if your current browser is up to date.
- Clear your browser's cache and cookies. https://support.box.com/hc/en-us/articles/360043695214-How-Do-I-Clear-The-Cache-And-Cookies-In-My-Browser-
- Try another machine and network connection.
- Restart your machine.
Hope it works!
Hi Rona,
This is not my case.
I am developing Java application that is capable to download files from direct links provided by 3rd party.
Endpoint https://public.boxcloud.com/d/1/<filetoken>/download has some private policy which prevent GET request for the files with message: We are not currently able to process your request; please try again in few minutes. If you continue having issues, please submit a request at <a href="https://support.box.com">https://support.box.com</a> for support.
I am looking for an advice how to construct HttpClient which is capable to communicate with mentioned endpoint.
After several retries and tests i was able to resolved the issue.
Solution is: Force "Accept-Encoding" header to request with "gzip, deflate, br" value to the request.
Reply
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.