mvysny / photocloud-frame-slideshow

Android Digital Photo Frame
https://www.android-photo-frame.eu
15 stars 1 forks source link

Dropbox fails with v1 retired #43

Closed mvysny closed 7 years ago

mvysny commented 7 years ago

Dropbox fails with v1 retired

mvysny commented 7 years ago

screenshot_2017-09-29-07-11-27

mvysny commented 7 years ago

Lol, official v2 client from Dropbox uses v1 API:

Caused by sk.baka.photoframe.util.IOExceptionWithCause: DropboxServerException (nginx): 400 Bad Request (v1_retired)
       at sk.baka.photoframe.fsimpl.dropbox.DropboxFileSystem.list(DropboxFileSystem.kt:64)
       at sk.baka.photoframe.fs.CacheFileSystem.list(CacheFileSystem.java:104)
       at sk.baka.photoframe.fsimpl.cache.ThumbnailCache$ThumbnailCacheFileSystem.list(ThumbnailCache.java:132)
       at sk.baka.photoframe.fs.FilterFileSystem.list(FilterFileSystem.kt:27)
       at sk.baka.photoframe.fs.FilterFileSystem.list(FilterFileSystem.kt:27)
       at sk.baka.photoframe.fs.SortFileSystem.list(SortFileSystem.kt:18)
       at sk.baka.photoframe.stream.SimpleDirTreeFileIterator$ListChildrenRunnable.call(SimpleDirTreeFileIterator.java:313)
       at sk.baka.photoframe.stream.SimpleDirTreeFileIterator$ListChildrenRunnable.call(SimpleDirTreeFileIterator.java:270)
       at java.util.concurrent.FutureTask.run(FutureTask.java:237)
       at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:422)
       at java.util.concurrent.FutureTask.run(FutureTask.java:237)
       at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112)
       at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587)
       at java.lang.Thread.run(Thread.java:818)
Caused by com.dropbox.client2.exception.DropboxServerException
       at com.dropbox.client2.RESTUtility.parseAsJSON(RESTUtility.java:265)
       at com.dropbox.client2.RESTUtility.execute(RESTUtility.java:415)
       at com.dropbox.client2.RESTUtility.execute(RESTUtility.java:339)
       at com.dropbox.client2.RESTUtility.streamRequest(RESTUtility.java:194)
       at com.dropbox.client2.RESTUtility.request(RESTUtility.java:124)
       at com.dropbox.client2.DropboxAPI.metadata(DropboxAPI.java:1919)
       at sk.baka.photoframe.fsimpl.dropbox.DropboxFileSystem.list(DropboxFileSystem.kt:43)
       at sk.baka.photoframe.fs.CacheFileSystem.list(CacheFileSystem.java:104)
       at sk.baka.photoframe.fsimpl.cache.ThumbnailCache$ThumbnailCacheFileSystem.list(ThumbnailCache.java:132)
       at sk.baka.photoframe.fs.FilterFileSystem.list(FilterFileSystem.kt:27)
       at sk.baka.photoframe.fs.FilterFileSystem.list(FilterFileSystem.kt:27)
       at sk.baka.photoframe.fs.SortFileSystem.list(SortFileSystem.kt:18)
       at sk.baka.photoframe.stream.SimpleDirTreeFileIterator$ListChildrenRunnable.call(SimpleDirTreeFileIterator.java:313)
       at sk.baka.photoframe.stream.SimpleDirTreeFileIterator$ListChildrenRunnable.call(SimpleDirTreeFileIterator.java:270)
       at java.util.concurrent.FutureTask.run(FutureTask.java:237)
       at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:422)
       at java.util.concurrent.FutureTask.run(FutureTask.java:237)
       at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112)
       at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587)
       at java.lang.Thread.run(Thread.java:8
mvysny commented 7 years ago

https://stackoverflow.com/questions/46482543/android-dropbox-client-fails-with-v1-retired

CarrotShapedTurtle commented 7 years ago

I'm getting the same Photocloud Error message. Actually I switched to this app from Dayframe + paid the AU$12 (remove the nagging reminder + activate Daydream) to avoid precisely that problem... :(

mvysny commented 7 years ago

Oh crap, I'm very sorry about that. I have the new Dropbox API in place, testing.

CarrotShapedTurtle commented 7 years ago

Thanks!

mvysny commented 7 years ago

Fixed in 1.9.9

CarrotShapedTurtle commented 7 years ago

Wow, that was fast! It works now, after removing the Dropbox stream and re-adding it. Thanks!

mvysny commented 7 years ago

Thanks! Yeah I suspect that Dropbox will incorrectly report v1 retired or your app is not allowed to use v2 until you remove the Dropbox stream from photocloud and add it back again, forcing it to re-authenticate.