-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
downloadObject() error Server returned HTTP response code: 400 #4
Comments
Based on this articles https://support.bunnycdn.com/hc/en-us/articles/360024887131-Typical-HTTP-Response-Codes, i know that 400 means Bad Request / The server could not understand the request that it was sent. But why this is happen only to my several files? Re-uploading with different names also doesn't work |
Edit #2: @adihanifsdr I've repaired the first issue; I think I know why you're experiencing issues with downloadObject() -- I'll try to have it fixed by tomorrow. |
Just to confirm -- @adihanifsdr: What was the name of the file? |
Do you also need the file to test? |
@adihanifsdr I don’t need a file right now — I’ll try to replicate the issue with your file name(s). Thank you for your patience :-) |
@doghouch I found something interesting, the downloadObject() seems can't download files that contains title 'space Ha'. I tried on upload file with name |
I found the solution, check out my pull request #5 |
@adihanifsdr Honestly, I would’ve never thought that spaces needed to replaced by their HEX equiv. (I thought that Java’s HttpsUrlConnection would handle that) Thanks again — I’ve looked over the changes and it looks good. PR accepted and I’ll close the issue. |
Hello guys,
I have many files and i successfully download those but i have problem with only several files that can't be downloaded because of this error:
java.lang.Exception: java.io.IOException: Server returned HTTP response code: 400 for URL: https://storage.bunnycdn.com/xxxxxxxx/xxxxxxx/x/x/xxxx.zip
This problems only happens with this several files. what i already tried:
All of those attempt doesn't seem to make it work.
The URL seems fine, i even try it on the browser and i can access it. Any explanation regarding this error?
The text was updated successfully, but these errors were encountered: