com.box.sdk.BoxAPIException: Couldn't finish closing the connection to the Box API due to a network error or because the stream was already closed.

GitHub | IValnou | 2 months ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    BoxAPIException when trying upload file version

    GitHub | 2 months ago | IValnou
    com.box.sdk.BoxAPIException: Couldn't finish closing the connection to the Box API due to a network error or because the stream was already closed.
  2. 0

    GitHub comment 163#152630461

    GitHub | 1 year ago | luyseyal
    com.box.sdk.BoxAPIException: The API returned an error code: 429
  3. Speed up your debug routine!

    Automated exception search integrated into your IDE

  4. 0

    Authenticating via redirect_uri

    GitHub | 12 months ago | cheyrico2
    com.box.sdk.BoxAPIException: The API returned an error code: 400
  5. 0

    GitHub comment 241#220482290

    GitHub | 9 months ago | bhaswati6
    com.box.sdk.BoxAPIException: The API returned an error code: 400

    5 unregistered visitors
    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.io.IOException

      stream is closed

      at sun.net.www.protocol.http.HttpURLConnection$HttpInputStream.ensureOpen()
    2. Java RT
      HttpURLConnection$HttpInputStream.read
      1. sun.net.www.protocol.http.HttpURLConnection$HttpInputStream.ensureOpen(HttpURLConnection.java:3309)
      2. sun.net.www.protocol.http.HttpURLConnection$HttpInputStream.read(HttpURLConnection.java:3334)
      3. sun.net.www.protocol.http.HttpURLConnection$HttpInputStream.read(HttpURLConnection.java:3329)
      3 frames
    3. com.box.sdk
      BoxFile.uploadVersion
      1. com.box.sdk.BoxAPIResponse.disconnect(BoxAPIResponse.java:149)
      2. com.box.sdk.BoxFile.uploadVersion(BoxFile.java:471)
      3. com.box.sdk.BoxFile.uploadVersion(BoxFile.java:440)
      4. com.box.sdk.BoxFile.uploadVersion(BoxFile.java:430)
      4 frames
    4. com.mstack.dig
      UploadController.uploadIndices
      1. com.mstack.dig.store.box.Box.uploadData(Box.java:102)
      2. com.mstack.dig.service.UploadServiceImpl.uploadFiles(UploadServiceImpl.java:41)
      3. com.mstack.dig.controller.UploadController.uploadIndices(UploadController.java:39)
      3 frames
    5. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      4. java.lang.reflect.Method.invoke(Method.java:498)
      4 frames
    6. Spring
      InvocableHandlerMethod.invokeForRequest
      1. org.springframework.web.method.support.InvocableHandlerMethod.doInvoke(InvocableHandlerMethod.java:221)
      2. org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:136)
      2 frames
    7. Spring MVC
      FrameworkServlet.doPost
      1. org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:110)
      2. org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandlerMethod(RequestMappingHandlerAdapter.java:817)
      3. org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:731)
      4. org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:85)
      5. org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:959)
      6. org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:893)
      7. org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:968)
      8. org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:870)
      8 frames
    8. JavaServlet
      HttpServlet.service
      1. javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
      1 frame
    9. Spring MVC
      FrameworkServlet.service
      1. org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:844)
      1 frame
    10. JavaServlet
      HttpServlet.service
      1. javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
      1 frame
    11. Jetty Server
      SelectChannelEndPoint.run
      1. org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:511)
      2. org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:390)
      3. org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
      4. org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:182)
      5. org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:765)
      6. org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:440)
      7. org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:230)
      8. org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:114)
      9. org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
      10. org.mortbay.jetty.Server.handle(Server.java:326)
      11. org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:542)
      12. org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnection.java:943)
      13. org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:756)
      14. org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:212)
      15. org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404)
      16. org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:410)
      16 frames
    12. Jetty Util
      QueuedThreadPool$PoolThread.run
      1. org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:582)
      1 frame