Start 2025 on time and up to date. Seamlessly integrate your calendars into Dropbox with these simple steps.

Forum Discussion

BradHenderson's avatar
BradHenderson
Explorer | Level 4
10 months ago

new device error - DownloadErrorException: Exception in 2/files/down

I have developed an app that operates well on a Samsung Tablet ("Tablet1").  I have now loaded the app onto a different Samsung tablet (same model-"Tablet2") but find that when I try to download the ...
  • Здравко's avatar
    Здравко
    10 months ago

    BradHenderson wrote:

    ...  I thought I could just load the app onto a different device provide the app with correct token and Dropbox would give access to the new device. ...


    BradHenderson, That's something normal and expected to be as you think. For some reason (i.e. some mistake) it's not. You should debug your application starting with finding that reason out. That's what I advised you to do, not something else.

    Hm..🤔 Let's say it in other words. Where did you get that non existing file path/id from - is it something hard coded or...? Hard coding of such thing is not a good idea - it predisposes for errors and confusions! Can you "fix" your code not to assume particular file (or any place at all), but to look for that file (place of file) using navigation with listing account content starting from account/namespace root? This root path is ALWAYS correct and has the same form - just empty string (the same for ALL accounts - no chance for error or confusion). In such a way, whatever happens, you will be able see it while navigating in your application user interface (and understand when/what is going wrong, not just guesses). Everything else would be speculation. Even more, it wouldn't be possible to select non existing file in such a way (it wouldn't exist in the lists too where you're going to get everything from). 😉 Such non-existing file is possible only when you assume something - something that's not true or not entirely true in particular situation. There are lots of possibilities and instead of guessing what's there, just take a look.

    Hope it's a bit more clear now.