Skip to content
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

I got a RuntimeException: Invalid Content-Range header #32

Closed
louis993546 opened this issue Oct 12, 2017 · 6 comments
Closed

I got a RuntimeException: Invalid Content-Range header #32

louis993546 opened this issue Oct 12, 2017 · 6 comments
Assignees
Labels

Comments

@louis993546
Copy link

10-11 16:56:55.199 1115-2064/{applicationId} E/DefaultRequestProcessor: Unexpected exception for request {36 char here}.
                                                                                        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:237)
                                                                                            at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1113)
                                                                                            at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:588)
                                                                                            at java.lang.Thread.run(Thread.java:818)

This happens when I am trying to upload a photo to clouding. I have implemented cloudinary for a few weeks now and this is the first time I see this exception.

Thanks!

@yakirp yakirp self-assigned this Oct 15, 2017
@yakirp
Copy link
Contributor

yakirp commented Oct 15, 2017

Hi @louistsaitszho , Does it happen to a specific resource (photo) you are trying to upload?

@louis993546
Copy link
Author

Probably not, since the photo is fresh from the camera (and then I pass the Uri for upload). So far it happens only on 1 device (Nexus 5 Marshmallow)

@louis993546
Copy link
Author

Update: switch the locale from arabic (ar_something) to english (en_US) and everything works fine!?

@yakirp
Copy link
Contributor

yakirp commented Oct 17, 2017

@louistsaitszho Thank you for pointing this out! I will check this with the team.

@MaxBayne
Copy link

MaxBayne commented Apr 28, 2018

@yakirp
@louistsaitszho

any help for this issue

thanks

@yakirp
Copy link
Contributor

yakirp commented Apr 29, 2018

@louistsaitszho @MaxBayne
Same as #57 , closing.

@yakirp yakirp closed this as completed Apr 29, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants