Skip to content
This repository has been archived by the owner on Feb 22, 2024. It is now read-only.

Error on uploading #25

Open
alikhil opened this issue Feb 10, 2017 · 6 comments
Open

Error on uploading #25

alikhil opened this issue Feb 10, 2017 · 6 comments

Comments

@alikhil
Copy link

alikhil commented Feb 10, 2017

[2017-02-10 11:09:14,837] ERROR: Worker-1: Encountered API Error:  - The request contains an entity body but no Content-Type header. The inferred media type 'application/octet-stream' is not supported for this resource..
[2017-02-10 11:09:14,837] ERROR: Worker-1: Error uploading file "/home/alik/OneDrive/books/programming/C#/c-in-depth-3rd-edition-jon-skeet.pdf":  - The request contains an entity body but no Content-Type header. The inferred media type 'application/octet-stream' is not supported for this resource..
@xybu
Copy link
Owner

xybu commented Feb 10, 2017

The two lines of log are not enough to analyze the problem.

  • Is the file downloaded by onedrived from OneDrive?
  • Was it changed locally after it was downloaded? Or is it a new local file to OneDrive?
  • Is the error reproducible if you exit and run the program again? Or did the program report that the remote item had same content as local item but timestamp was different?

A file upload operation is done by first uploading the file content, then updating the remote timestamp. I don't know which operation caused the problem from the the two lines. And I don't know who caused the problem either -- the file (does the program complain about other files?), onedrived, onedrive python sdk, python-requests, or onedrive server are all possible.

@alikhil
Copy link
Author

alikhil commented Feb 10, 2017

It's new local file. I tried to restart program but it did not helped. I am attaching this file. Maybe it will help to reproduce error.
c-in-depth-3rd-edition-jon-skeet.pdf

@xybu
Copy link
Owner

xybu commented Feb 10, 2017

I tried the file but it was uploaded successfully. May you run the following commands on your machine and share the output? Also, are you on the latest commit of this repo?

$ uname -a
$ pip3 list
$ pip3 list -o

@brauliobo
Copy link

I'm having the same problem for several files, for instance

[2018-07-25 18:13:18,812] ERROR: Worker-5: Error uploading file "/home/braulio/OneDrive/AUDIO/Music/Dada Nabhaniilananda/Ananda Kiirtan 3 Live/04 Kiirtan - Reprise of #1.opus":  - The request contains an entity body but no Content-Type header. The inferred media type 'application/octet-stream' is not supported for this resource..

@derrix060
Copy link

application/octet-stream is when the media type remains unknown by the server. Reference

@NathanIceSea
Copy link

Not accessible to ngrok service might be to blame for that, could anybody figure out how to configure alternative tunnel. I'm having the same issue

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

No branches or pull requests

5 participants