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

File Upload error:Out of range [RANDOM BINARIES >4MB] #1688

Open
kenkit opened this issue Oct 23, 2019 · 7 comments
Open

File Upload error:Out of range [RANDOM BINARIES >4MB] #1688

kenkit opened this issue Oct 23, 2019 · 7 comments

Comments

@kenkit
Copy link

kenkit commented Oct 23, 2019

When I upload a 9mb binary file and it get's to 4% using c++ api startUpload
I keep getting Out of range error in my onTransferTemporaryError.
The transfer does not complete.
Uploading a smaller file is ok.
What could be going wrong ?

@kenkit
Copy link
Author

kenkit commented Nov 30, 2019

This issue occurs when I try uploading a custom encrypted file.
An example file is this.

Please extract and try uploading with the sdk,
kpgWCCpKBM.zip

@kenkit kenkit changed the title File Upload error:Out of range File Upload error:Out of range [RANDOM BINARIES >4MB] Nov 30, 2019
@kenkit
Copy link
Author

kenkit commented Dec 1, 2019

[][info] D:\programming\bak\neon_service\mega\sdk\src\megaapi_impl.cpp:15571 Request (SET_MAX_CONNECTIONS) finished
[2019-12-01 14:18:16.641071] [0x00004224] [trace]   DEFAULT REQEST
[2019-12-01 14:18:16.646067] [0x000038ec] [trace]   Starting upload of:MTK_AllInOne_DA.bin
[][info] D:\programming\bak\neon_service\mega\sdk\src\megaapi_impl.cpp:16104 Transfer (UPLOAD) starting. File: 7SbhqdQJbD.enc
[2019-12-01 14:18:16.669053] [0x00004224] [trace]   ***** Transfer progress: UPLOAD :0/9,375,492
[2019-12-01 14:18:16.837962] [0x00004224] [trace]   ***** Transfer progress: UPLOAD :0/9,375,492
[2019-12-01 14:18:16.848956] [0x00004224] [trace]   ***** Transfer progress: UPLOAD :0/9,375,492
[2019-12-01 14:18:17.337650] [0x00004224] [trace]   ***** Transfer progress: UPLOAD :65,536/9,375,492
[2019-12-01 14:18:17.981537] [0x00004224] [trace]   ***** Transfer progress: UPLOAD :131,072/9,375,492
[2019-12-01 14:18:18.190407] [0x00004224] [trace]   ***** Transfer progress: UPLOAD :327,680/9,375,492
[2019-12-01 14:18:18.698098] [0x00004224] [trace]   ***** Transfer progress: UPLOAD :393,216/9,375,492
[2019-12-01 14:18:19.744958] [0x00004224] [trace]   ***** Transfer progress: UPLOAD :393,216/9,375,492
[2019-12-01 14:18:19.750953] [0x00004224] [trace]   ***** Temporary error in transfer: Out of range
[2019-12-01 14:18:19.858886] [0x00004224] [trace]   ***** Transfer progress: UPLOAD :0/9,375,492
[2019-12-01 14:18:20.458516] [0x00004224] [trace]   ***** Transfer progress: UPLOAD :0/9,375,492
[2019-12-01 14:18:20.464511] [0x00004224] [trace]   ***** Transfer progress: UPLOAD :0/9,375,492
[2019-12-01 14:18:20.978486] [0x00004224] [trace]   ***** Transfer progress: UPLOAD :65,536/9,375,492
[2019-12-01 14:18:21.655886] [0x00004224] [trace]   ***** Transfer progress: UPLOAD :131,072/9,375,492
[2019-12-01 14:18:21.918723] [0x00004224] [trace]   ***** Transfer progress: UPLOAD :196,608/9,375,492
[2019-12-01 14:18:22.161575] [0x00004224] [trace]   ***** Transfer progress: UPLOAD :327,680/9,375,492
[2019-12-01 14:18:22.669368] [0x00004224] [trace]   ***** Transfer progress: UPLOAD :393,216/9,375,492
[2019-12-01 14:18:23.879176] [0x00004224] [trace]   ***** Transfer progress: UPLOAD :393,216/9,375,492
[2019-12-01 14:18:24.153008] [0x00004224] [trace]   ***** Temporary error in transfer: Out of range
[2019-12-01 14:18:24.359882] [0x00004224] [trace]   ***** Transfer progress: UPLOAD :0/9,375,492
[2019-12-01 14:18:24.528121] [0x00004224] [trace]   ***** Transfer progress: UPLOAD :0/9,375,492
[2019-12-01 14:18:24.534115] [0x00004224] [trace]   ***** Transfer progress: UPLOAD :0/9,375,492
[2019-12-01 14:18:24.795955] [0x00004224] [trace]   ***** Transfer progress: UPLOAD :65,536/9,375,492
[2019-12-01 14:18:25.473190] [0x00004224] [trace]   ***** Transfer progress: UPLOAD :131,072/9,375,492
[2019-12-01 14:18:25.795282] [0x00004224] [trace]   ***** Transfer progress: UPLOAD :196,608/9,375,492
[2019-12-01 14:18:25.987164] [0x00004224] [trace]   ***** Transfer progress: UPLOAD :327,680/9,375,492
[2019-12-01 14:18:26.495988] [0x00004224] [trace]   ***** Transfer progress: UPLOAD :393,216/9,375,492
[2019-12-01 14:18:27.523857] [0x00004224] [trace]   ***** Transfer progress: UPLOAD :393,216/9,375,492
[2019-12-01 14:18:27.530847] [0x00004224] [trace]   ***** Temporary error in transfer: Out of range

@kenkit
Copy link
Author

kenkit commented Dec 1, 2019

That is not an encrypted file
It keeps restarting

@sergiohs84
Copy link
Contributor

We cannot reproduce it. Can you provide additional details? What client is using the SDK library?

@kenkit
Copy link
Author

kenkit commented Feb 25, 2020

Hi,
Thanks for replying. I's an app i'm making with mega, somehow I cannot manage to upload files using this code.

              megaApi->startUpload(current_file.c_str(), node, target_name.c_str());

@kenkit
Copy link
Author

kenkit commented Feb 25, 2020

I use the latest curl from the official github page.
This error has been on my app for almost half a year, I've never managed to fix it.
It occurs mostly when I upload binary files where the size is abit larger.
I assume the smaller files manage to upload because the take a short time to upload.
@sergiohs84

@kenkit
Copy link
Author

kenkit commented Feb 25, 2020

I think it has something to do with transfer size chunking between mega and curl
Try using the above method to upload a file of size >393,216 bytes

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants