You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
RuntimeException: Invalid Content-Range header when device locale is set to arabic #57
E/DefaultRequestProcessor: Unexpected exception for request ff49ae42-aed4-463b-96c2-c4a1d875d8cc.
java.lang.RuntimeException: Invalid Content-Range header
at com.cloudinary.android.UploaderStrategy.callApi(UploaderStrategy.java:143)
at com.cloudinary.Uploader.callApi(Uploader.java:34)
at com.cloudinary.Uploader.uploadLargeParts(Uploader.java:212)
at com.cloudinary.Uploader.uploadLarge(Uploader.java:143)
at com.cloudinary.android.DefaultRequestProcessor.doProcess(DefaultRequestProcessor.java:197)
at com.cloudinary.android.DefaultRequestProcessor.processRequest(DefaultRequestProcessor.java:89)
at com.cloudinary.android.MediaManager.processRequest(MediaManager.java:367)
at com.cloudinary.android.AndroidJobStrategy$UploadJob.onRunJob(AndroidJobStrategy.java:203)
at com.evernote.android.job.Job.runJob(Job.java:109)
at com.evernote.android.job.JobExecutor$JobCallable.runJob(JobExecutor.java:151)
at com.evernote.android.job.JobExecutor$JobCallable.call(JobExecutor.java:136)
at com.evernote.android.job.JobExecutor$JobCallable.call(JobExecutor.java:119)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1162)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:636)
at java.lang.Thread.run(Thread.java:764)
On 5/11/18, omjimehrotra ***@***.***> wrote:
Any Update on this issue?
--
You are receiving this because you were mentioned.
Reply to this email directly or view it on GitHub:
#57 (comment)
I've tried using version 1.24.1 and 1.26.0 and I'm still having this issue, even if I try to change to locales such as en-US. Is there any solution for this yet?
My code is: String requestId = MediaManager.get().upload(photoUri).unsigned(CLOUD_PRESET).option("resource_type", "auto").dispatch();
Would really appreciate some help with this as the library is unusable for me with this issue.
Thanks.
@luke537 The fix was introduced on 1.24.1, and from my understanding from the thread, it works for @Siddharthflo as well.
Are you not able to upload anything to Cloudinary, regardless of the locale?
Could you share the flow that you are doing when you are getting this error?
Also could you share the Android version?
What I'm understanding is that currently, no upload is possible on your project regardless of locale.
Is that the case?
Are you getting the error that is noted on the thread 's subject or a different one?
I'm asking since if you can't upload at all it might be a different issue not related to locale so it might be best to open a request at support@cloudinary.com with the relevant details. This would also allow faster replies and resolutions.
@darothub Can you please share the original file you tried uploading? Was it taken through the camera or uploaded from a local file system? If you could also share your cloud name I will be able to check the logs. You can always raise a support ticket here: https://support.cloudinary.com/hc/en-us/requests/new if privacy is a concern.
@michalkcloudinay Apologies once again for replying late. I have been handling a lot but still need to use your service. The device current language is English. Thanks in anticipation
Activity
d-mendoza commentedon Apr 13, 2018
Hi @omjimehrotra,
To better assist in diagnosing this issue, can you provide us with the following:
omjimehrotra commentedon Apr 14, 2018
Hi @d-mendoza
Here is my cloudinary upload command:
MediaManager.get().upload(filePath).callback(uploadCallback)
.unsigned(AppConstants.CLOUDINARY_UPLOAD_PRESET)
.option("resource_type", "auto")
.dispatch();
d-mendoza commentedon Apr 18, 2018
@omjimehrotra Thank you for pointing this out! Our team is looking into it.
MaxBayne commentedon Apr 28, 2018
@d-mendoza
any help or fix for this bug
thanks
d-mendoza commentedon Apr 30, 2018
@MaxBayne It's on our dev teams todo list. I'll update when we'll have any insights.
omjimehrotra commentedon May 11, 2018
Any Update on this issue?
MaxBayne commentedon May 12, 2018
yakirp commentedon May 13, 2018
Hi guys, I hope that we will fix this issue soon, I will update.
dlhck commentedon Oct 5, 2018
any update on this one? Getting this bug also with other locales ..
4 remaining items
igy commentedon Mar 13, 2019
Hi Siddarth - can you please try with v1.24.1? Or preferably with the current version, v1.26.0 ?
luke537 commentedon Feb 29, 2020
I've tried using version 1.24.1 and 1.26.0 and I'm still having this issue, even if I try to change to locales such as en-US. Is there any solution for this yet?
My code is:
String requestId = MediaManager.get().upload(photoUri).unsigned(CLOUD_PRESET).option("resource_type", "auto").dispatch();Would really appreciate some help with this as the library is unusable for me with this issue.
Thanks.
idobarnoam commentedon Mar 1, 2020
@luke537 The fix was introduced on 1.24.1, and from my understanding from the thread, it works for @Siddharthflo as well.
Are you not able to upload anything to Cloudinary, regardless of the locale?
Could you share the flow that you are doing when you are getting this error?
Also could you share the Android version?
luke537 commentedon Mar 2, 2020
@idobarnoam Currently, I am not able to upload anything to Cloudinary from Android. Please see my flow below:
Basically, all I'm doing is taking a photo and passing the URI of the photo to Cloudinary to upload.
Here are the Android versions:
minSdkVersion 19
targetSdkVersion 29
Please let me know if you need anything else from me
luke537 commentedon Mar 4, 2020
@idobarnoam @yakirp Hi, is there any update on this?
idobarnoam commentedon Mar 8, 2020
@luke537 Sorry for the response delay.
What I'm understanding is that currently, no upload is possible on your project regardless of locale.
Is that the case?
Are you getting the error that is noted on the thread 's subject or a different one?
I'm asking since if you can't upload at all it might be a different issue not related to locale so it might be best to open a request at support@cloudinary.com with the relevant details. This would also allow faster replies and resolutions.
darothub commentedon May 11, 2020
Hi, is there any update on this?
idobarnoam commentedon May 11, 2020
Hi @darothub
Could you elaborate on what it is you are experiencing?
I'm asking since the issue in the subject was handled on version 1.24.1.
darothub commentedon May 11, 2020
Ok. I was trying to upload an image from android studio. I used the manifest config file to initialized MediaManager. Then the following
and all I get is Invalid Content Range header error
I am currently using version 1.27.0.
Sincerely, I have since moved to firebase but thought Cloudinary would be handy
aditimadan-Cloudinary commentedon May 11, 2020
@darothub Can you please share the original file you tried uploading? Was it taken through the camera or uploaded from a local file system? If you could also share your cloud name I will be able to check the logs. You can always raise a support ticket here: https://support.cloudinary.com/hc/en-us/requests/new if privacy is a concern.
darothub commentedon May 18, 2020
Hi @aditimadan-Cloudinary sorry for the late response. Yes the image is taken through the camera and a local file system. Currently I'm using my personal account(cloud name: carflux) for test. It turns out we are still interested in using Cloudinary. So we will getting a paid storage if all works well. Find the image url below:
https://firebasestorage.googleapis.com/v0/b/anap-covid-app.appspot.com/o/images%2Freport_Abia%20_20200517_175729_.jpg?alt=media&token=43ce3bc7-4dee-413d-9197-7c7c9b08cb92
michalkcloudinay commentedon May 19, 2020
Hi @darothub, Can you please check and tell us what is the device current language?
You can find how to do that here:
https://stackoverflow.com/questions/4212320/get-the-current-language-in-device
darothub commentedon May 21, 2020
@michalkcloudinay Apologies once again for replying late. I have been handling a lot but still need to use your service. The device current language is English. Thanks in anticipation
darothub commentedon May 22, 2020
@michalkcloudinay @aditimadan-Cloudinary We have purchased the official cloudinary account for our application. Any update on this issue?
michalkcloudinay commentedon May 24, 2020
@darothub In order to investigate your issue, can you please open a ticket here: https://support.cloudinary.com/hc/en-us/requests/new?