Level up your Box knowledge with brand new learning paths on Box University. Visit training.box.com to get started

Download file API timeout via Box sdk

New post

Comments

5 comments

  • Alex Novotny

    Hey Paul, 

    There couple be lots of reasons for this... 

    Do you have the client id for the Box application you created in the developer console? The enterprise ID of your instance would be helpful too. 

    Also. To confirm - you are using this sdk? 

    0
    Comment actions Permalink
  • Paul Hui

    Hey Alex,
    Thanks for your support! Below is the info as what you need. Yes, we are using the Box SDK version of Box.V2.3.9.0\lib\net45\Box.V2.dll
    ClientId: t2emajg79ngqew344begko6rn4n6y5hj
    User ID: 215448143  Enterprise ID: 434601 

    And more context here, we have the background service to read file content from client box server based on their OAuth configuration. Due to improve the file download performance, we will create 5 threads to download different files in parallel. For each individual file downloading, We will use the range stream approach to download, each range stream block size is 10MB. Will this approach cause the Box download api timeout issue? Does Box server side have the max concurrent connections limitation or similar threshold limitation? And what's the right direction to resolve this kind of issue in our application?

    Thank you!

    0
    Comment actions Permalink
  • Paul Hui

    Hey Alex,

    Any finding on this? Could you please share your insights on how to resolve this issue? Appreciated for your help!

    Thank you!

    0
    Comment actions Permalink
  • Alex Novotny

    Hello, 

    Apologies on the delay... our dev forum is not manned for urgent on-demand support. If you would like immediate support - you would need to have a business or above license and contact our support group

    From what I'm seeing - the app created has an OAuth 2.0 authentication type... it also looks like it doesn't have the scopes added to run as-user calls (allows you to see other content that the authenticated used isn't collaborated in). Based on the error logs, it looks like both files you are trying to download are owned by a different user... is the user_id 215448143 collabed into the files you are trying to download? 

    Thanks, 

    Alex

    0
    Comment actions Permalink
  • Paul Hui

    Hey Alex,

    Thanks for the update! Yes, we are using OAuth authentication type, and using the mapped user credential to access the file, who granted the access permission in the authentication process. So the customer user should have the permission to access the file. The user_id 215448143 here should be registered in the Box develop console for app recognition.

    In my understanding, if there no permission to access the file, the Box api response should be 403 forbidden something like that, but not timeout response. How do you think? Could you please help with any insights further?

    Thank you!

    0
    Comment actions Permalink

Post is closed for comments.