Code Monkey home page Code Monkey logo

Comments (4)

isac322 avatar isac322 commented on June 11, 2024

Hello,
Thank you for the bug report.
Currently i'm working on the issue on jackson-databind_to_stream branch. you can use Graph on the branch.
But because i'm Master degree student yet, the progress is slow.

from onedrive-sdk-java.

jonryf avatar jonryf commented on June 11, 2024

Hey!
Thanks for quick reply. I understand, thanks for updating me.

from onedrive-sdk-java.

jonryf avatar jonryf commented on June 11, 2024

Using running the following code:
client.uploadFile(new PathPointer("/my-file.txt"), file.toPath());

I get the following error. Is this related to the issue above? I am in the jackson-databind_to_stream branch.

Mar 25, 2018 4:34:03 PM io.netty.util.concurrent.DefaultPromise notifyListener0 WARNING: An exception was thrown by com.bhyoo.onedrive.client.RequestTool$3.operationComplete() com.bhyoo.onedrive.exceptions.ErrorResponseException: Expected 200 response code, but received 400. It means BadRequest (Unsupported segment type. ODataQuery: drive/root/upload.createSession). at com.bhyoo.onedrive.client.RequestTool.parseAndHandle(RequestTool.java:177) at com.bhyoo.onedrive.client.RequestTool.parseUploadSessionAndHandle(RequestTool.java:782) at com.bhyoo.onedrive.client.RequestTool$3.operationComplete(RequestTool.java:499) at com.bhyoo.onedrive.client.RequestTool$3.operationComplete(RequestTool.java:496) at io.netty.util.concurrent.DefaultPromise.notifyListener0(DefaultPromise.java:512) at io.netty.util.concurrent.DefaultPromise.notifyListenersNow(DefaultPromise.java:486) at io.netty.util.concurrent.DefaultPromise.access$000(DefaultPromise.java:34) at io.netty.util.concurrent.DefaultPromise$1.run(DefaultPromise.java:436) at io.netty.util.concurrent.AbstractEventExecutor.safeExecute(AbstractEventExecutor.java:163) at io.netty.util.concurrent.SingleThreadEventExecutor.runAllTasks(SingleThreadEventExecutor.java:404) at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:463) at io.netty.util.concurrent.SingleThreadEventExecutor$5.run(SingleThreadEventExecutor.java:886) at io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30) at java.lang.Thread.run(Thread.java:748)

from onedrive-sdk-java.

isac322 avatar isac322 commented on June 11, 2024

It's my fault.
In fact, the first parameter of Client.uploadFile means parent path to upload.
So in your case, the statement should be client.uploadFile(new PathPointer("/"), file.toPath()); or more shortly client.uploadFile(PathPointer.root, file.toPath());.

Since I have committed the patch, please check again.

from onedrive-sdk-java.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.