-
Notifications
You must be signed in to change notification settings - Fork 59
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
java.lang.RuntimeException: General Error on signed upload with chunk_size option #148
Comments
Can you confirm you are using upload_large method which is required for files larger than 100MB, this method also lets you set the chunk size. See https://cloudinary.com/documentation/upload_images#chunked_asset_upload |
I can confirm there is no such method here is sdk source code |
Please check my source code (upload method) and help me to apply |
Also, I'm using files less than 100MB. |
Hi @dimaportenko |
Ok, I think I was able to do upload like this
How can I get
|
Hi @dimaportenko , the request id should be included in the response header we send back. Please let me know if you have any other questions or queries. Kind Regards, |
@tommyg-cld can you share a code sample? Not sure how to use it. And I'm not able to find it in the documentation. |
@dimaportenko so you will need to use the dispatch method and this should return the request id per https://cloudinary.com/documentation/android_image_and_video_upload#mediamanager_upload_method e.g. |
@tommyg-cld I'm completely confused. I'm using this one
but I have the error, please see the first message of the thread. And you asked me to use https://cloudinary.com/documentation/upload_images#chunked_asset_upload which doesn't exist. Then @adimiz1 said I have to use
It works for upload but there is no request Id. So I can't cancel it. Please help me, I don't understand |
@dimaportenko apologies, that was just an example, does the below work?
|
Nope. |
Also, this one isn't working for signed request
|
@dimaportenko let me check internally with the team and will get back to you. |
So I did more testing and I can confirm that unsigned upload works just fine. But signed request gives me a general error from the original message of this GitHub issue. It's same for
The error message doesn't give any tips. Can you help me with what is wrong here?
|
@dimaportenko apologies for the delay in getting back. So right now dispatch is not supported with upload_large, the request-id will only return when using the MediaManager object to upload. e.g.
We are checking further if we can support it. Regarding the general error, please could you give us exactly how you sign your requests? I'm seeing a NoMethodError exception in our logs. Also incase you didn't read it yet, here is how to setup signed upload: https://cloudinary.com/documentation/android_image_and_video_upload#signed_upload |
It works fine if file size less then
And the same thing here I can upload just fine if the file size less then |
@dimaportenko we are taking a look so will get back asap. |
Hi @dimaportenko, Can you please open a support ticket here: https://support.cloudinary.com/hc/en-us/requests/new with your cloud name and include more information on this? This is what we know so far:
In order for us to be able to reproduce the issue, we need every piece of information. We are waiting for your ticket, |
Hi there, any updates? |
Hey @dimaportenko, We're still waiting on news from the internal team. Could you follow up on a ticket for this issue so we can keep the line of communication open there? |
It's already a month passed already and no updates. It doesn't look like anybody working on this issue.
I didn't get any updates there, doesn't look helpful to me. |
Hi @dimaportenko, I replied to the ticket you opened. |
@dimaportenko just following up to see if this is still an issue? let me know if its ok to close out. |
@tommyg-cld the issue is still the same. From internal support discussion, it's related to the
I suggest the following if you are going to add a solution like |
@dimaportenko thx for the update, yes we have an internal ticket to |
When the size of the uploading file is bigger then
chunk_size
option I'm getting the following errorI'm using android SDK in this lib https://github.com/gosourcellc/react-native-cloudinary-sdk. Right now it uses 100mb chunk_size to overcome this issue.
The text was updated successfully, but these errors were encountered: