Need to see if your shared folder is taking up space on your dropbox 👨💻? Find out how to check here.
Developers
767 Topicsjava.lang.NoSuchMethodError: com.fasterxml.jackson.core.JsonToken.isStructStart()Z exception
Hi, I am developing a desktop application that will allow me to upload a file to my Db account, This is going to be executed on a VM. The problem is that even though it is working just fine on my computer, I am getting This strange exception when i run it on the VM. Exception in thread "main" java.lang.reflect.InvocationTargetException at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.eclipse.jdt.internal.jarinjarloader.JarRsrcLoader.main(JarRsrcLoader.java:58) Caused by: java.lang.NoSuchMethodError: com.fasterxml.jackson.core.JsonToken.isStructStart()Z at com.dropbox.core.stone.StoneSerializer.skipValue(StoneSerializer.java:118) at com.dropbox.core.ApiErrorResponse$Serializer.deserialize(ApiErrorResponse.java:62) at com.dropbox.core.ApiErrorResponse$Serializer.deserialize(ApiErrorResponse.java:36) at com.dropbox.core.stone.StoneSerializer.deserialize(StoneSerializer.java:66) at com.dropbox.core.DbxWrappedException.fromResponse(DbxWrappedException.java:43) at com.dropbox.core.v2.DbxRawClientV2$1.execute(DbxRawClientV2.java:106) at com.dropbox.core.v2.DbxRawClientV2.executeRetriable(DbxRawClientV2.java:256) at com.dropbox.core.v2.DbxRawClientV2.rpcStyle(DbxRawClientV2.java:97) at com.dropbox.core.v2.files.DbxUserFilesRequests.getMetadata(DbxUserFilesRequests.java:632) at com.dropbox.core.v2.files.DbxUserFilesRequests.getMetadata(DbxUserFilesRequests.java:663) at my.tools.dropbox.DropboxApi.exist(DropboxApi.java:292) ... 5 more The line that is causing this is Metadata a= client.files().getMetadata(path); Do you have any idea what might be the problem? I have been searching the internet with no luck!Solved28KViews0likes3Commentswhy using Intent.ACTION_OPEN_DOCUMENT does not list the Dropbox?
Tried on Android Os 4.4, and above, if using Intent.ACTION_GET_CONTENT the android's file picker lists Google drives, Google Photos, Dropbox, etc. If using Intent.ACTION_OPEN_DOCUMENT, there just are no apps (like Dropbox, Photos etc.) in the file picker's drawer except only Google Drive. How to list the Dropbox in Android's file picker drawer if using Intent.ACTION_OPEN_DOCUMENT? code snippet of using ACTION_OPEN_DOCUMENT and ACTION_GET_CONTENT are listed below: Intent openIntent = new Intent(Intent.ACTION_GET_CONTENT); if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.KITKAT) { openIntent = new Intent(Intent.ACTION_OPEN_DOCUMENT); openIntent.addFlags(Intent.FLAG_GRANT_READ_URI_PERMISSION); } openIntent.addCategory(Intent.CATEGORY_OPENABLE); openIntent.setType("*/*"); startActivityForResult(openIntent, ANDROID_FILE_PICKER); Intent openIntent = new Intent(Intent.ACTION_GET_CONTENT);openIntent.addCategory(Intent.CATEGORY_OPENABLE);openIntent.setType("*/*");startActivityForResult(openIntent, ANDROID_FILE_PICKER);18KViews1like15CommentsDownloading a file, getting error in DropboxTransportClient.swift, line 200
Hi all, I've checked the forum and didn't find an answer. Overview: my app works with a SQLite db. I have an option to store the DB in DropBox (only store it, not working on it). The user download the DB, I create a file "device name".usr to say to other users the DB is in use right now. I've created this procedure (sorry, comments are in Italian): func copiaDB() { let databaseURL = try! FileManager.default .url(for: .applicationSupportDirectory, in: .userDomainMask, appropriateFor: nil, create: true) .appendingPathComponent("db.sqlite") let completeUrl = URL(fileURLWithPath: databaseURL.path) let destination: (URL, HTTPURLResponse) -> URL = { temporaryURL, response in return completeUrl } let semo = DispatchSemaphore.init(value: 0) let downQueue = OperationQueue.init() downQueue.maxConcurrentOperationCount = 1 // operation 1 downQueue.addOperation { // detach database o errore sqlite dbQueue = try? AppDatabase.openDatabase(atPath: "") // copio file self.client?.files.download(path: "/db.sqlite", overwrite: true, destination: destination) } // operation 2 downQueue.addOperation { // avverto che qualcuno sta lavorando sul file let fileData = "Database in uso".data(using: String.Encoding.utf8, allowLossyConversion: false)! self.client?.files.upload(path: "/\(UIDevice.current.name).usr", input: fileData) } // operation 3 downQueue.addOperation { semo.wait() dbQueue = try? AppDatabase.openDatabase(atPath: databaseURL.path) } } It work's fine, detach the DB, download it, create the usr file, attach the DB to queue so I can work on it locally. Here there is a little problem, not reguaridng DropBox. I need a way to advise user the download is completed, but i can't create an alert or change a label text because the download is async with the main queue. I need the procedure to work with OperationQueue because dbQueue = try? AppDatabase.openDatabase(atPath: databaseURL.path) needs to be exeguted after the download is finished, or i risk to compromise the db. Then I created the procedure to check if the db is available in DropBox: func checkDB() { client?.files.search(path: "", query: ".usr", mode: .filename).response { response, error in if let response = response { if response.matches.count == 0 { self.copiaDB() } else { self.inUso(tipo: (response.matches.first?.metadata.name)!) } } else if let _ = error { } } } self.inUso simply create an alert saying the device name is using the DB. This works, but, calling the first procedure copiaDB() I now got this error: Fatal error: Unexpectedly found nil while implicitly unwrapping an Optional value: file /Users/marcopirola/Desktop/Progetto Swift/Gestione Affitti/SwiftyDropbox/Source/SwiftyDropbox/Shared/Handwritten/DropboxTransportClient.swift, line 200 2019-11-10 11:10:02.238294+0100 Gestione Affitti[11658:6548246] Fatal error: Unexpectedly found nil while implicitly unwrapping an Optional value: file /Users/marcopirola/Desktop/Progetto Swift/Gestione Affitti/SwiftyDropbox/Source/SwiftyDropbox/Shared/Handwritten/DropboxTransportClient.swift, line 200 I tried to debug it, it actually download the db and create the .usr file, but then somehow it recalls the download procedure with a nil command string. I removed checkDB() from the procedure calling directly copiaDB() and it works again. Any idea? Thanks, Marco "Chetral" PirolaSolved17KViews0likes2CommentsFeedback: The Embedder Launched in Preview
New feature alert! Dropbox is previewing a new pre-built component called the File and Folder Embedder. Simply paste a JavaScript snippet into your code and you’ve added the ability to turn Dropbox shared links into interactive, embedded previews. It’s never been easier to provide your users with the ability to view and interact directly with their Dropbox files and folders. You can read more about the Embedder on our developer blog or the Embedder documentation. We want your feedback! While in the Preview phase, we’re actively adding enhancements, new controls, and new supported filetypes to the Embedder. What features would you like to see? How do your users interact with their Dropbox files from your app? Please post your thoughts or ideas about the Embedder below. Willing to give us more direct feedback? This April, we’re offering a chance to win a $200 Amazon gift card for folks that fill out this survey. Completing the survey counts as your entry into the sweepstakes*. Legal disclaimer: Navigating to the survey in this forum post will direct you to our Qualtrics survey website. All information you enter will be treated in accordance with the Dropbox Privacy Policy. Dropbox will never ask you for your password or billing information via invitations to surveys or in surveys themselves. *NO PURCHASE NECESSARY. VOID WHERE PROHIBITED BY LAW. Ends April 30, 2020 at 9:00pm Pacific Time. Must be 18+, have reached the age of majority in state of residence, and be a legal resident of the U.S. Sponsor: Dropbox, Inc. Odds of winning depend on the number of entries received. Click here for complete rules.15KViews12likes39CommentsWelcome to the Dropbox Developer Community!
Welcome to the Dropbox Developer Community! This is a space where you can get help, provide feedback, brainstorm ideas, make connections, and get inspired. The Dropbox team is here to help with questions, file bugs, and report your feedback. We also encourage all community members to jump in and support each other. Here are just some of the things you can do in the Dropbox Developer Community forum: Get help Ask questions about specific issues or roadblocks Brainstorm how to use the Dropbox API to solve your technical and/or business needs Review tips, examples, and tutorials Help others Share your expertise, experiences, and insights to answer questions from other community members and participate in discussions Share examples, stories, and code samples of the work you have done on the DBX Platform Influence DBX Platform Provide feedback and file feature requests with the Dropbox team Alert us to potential bugs with our endpoints and SDKs Stay in the loop Get the latest announcements and updates from Dropbox Get invited to participate in feedback sessions, surveys, and developer events Have fun Get to know the Dropbox team and other developers in the community Earn badges, kudos, and levels Right now, we have two main categories within the Dropbox Developer Community: API Support & Feedback This page is meant for getting technical support from the Dropbox team and community about specific API issues, as well as providing product feedback and feature requests. The Dropbox team is here to help answer questions, file bugs, and report your feedback about the DBX Platform. If you think you know the answer to a question or have experienced something similar, please feel free to chime in. General Discussion The general discussion page covers everything else, from Dropbox announcements, to sharing code samples, to brainstorming your start up ideas. We encourage all community members to contribute content that will help other developers and engage in the conversations here. If you’re new to the community start here to get an overview of how to post, reply, earn badges, and more. Please help us keep the Dropbox Developer Community respectful and helpful by abiding by our Community Guidelines. Thank you for being a part of the Dropbox Developer Community! We’re looking forward to getting to know you. - The DBX Platform Team15KViews0likes0CommentsDropBox API Async Call, "DropBoxClient.Files.DownloadAsync" will not throw an exception (solution)
Issue: I have been using DropBox for the storage of my new document management application's installation file as well as for updated, individual files that can be downloaded at a later date (after the initial installation). Upon testing the following async call, DropBoxClient.Files.DownloadAsync, I saw that if a file has not been uploaded to my DropBox folder, where all of these application files are to be stored, this call will throw a "path not found" exception (which makes sense). However, instead of having this error caught by my code's try-catch construct, the application being tested simply ends. According to replies from DropBox developers in and around 2017, this was a known issue with their API SDK, and consequently would be fixed. However, my own testing for the past day or so appears to have shown that this issue still exists, even with latest version of the DropBox SDK\API, which I implemented using the NuGet Package Manager. Solution: I decided to test another async call to see if this situation is common to all of the DropBox API async calls or was merely an issue with the aforementioned async call. As a result, I tested the following call prior to DownloadAsync call to see if a "path not found" exception would be caught as hoped. Using the following call, DropBoxClient.Files.GetMetadataAsync, which merely retrieves the meta-data for the specified file, if the file does not exist in my DropBox folder, it will in fact throw the "path not found" exception and the exception will be caught properly with a try-catch construct... As a result, if you are experiencing a similar issue with your code, simply use the DropBoxClient.Files.GetMetadataAsync call prior to the actual download call to test for your file's existence, while having the ability to trap for an error exception if one arises.14KViews0likes7CommentsMissing scope from request
Hi, I'm looking for some help setting up an Android app with the api. I am looking to list all files in a dropbox folder, select one to download and then read it into my app to process the data. The initial download is very similar to the Android SDK example but even that isn't working properly as it, like my app, creates an empty local file and the DownloadFileTask.java shows an error. I've traced this to 2021-05-21 10:01:02.336 10188-10188/com.example.********. E/com.example.********.FilesActivity: Failed to download file. d.a.a.s: {"error_summary": "missing_scope/.", "error": {".tag": "missing_scope", "required_scope": "files.content.read"}} In the developer app centre I definitely have file.content.read clicked and I have removed all data from my app and uninstalled. On reinstallation it asks me to login to dropbox which I assume then re-authenticates the app, which should have the scope set. Neither the SDK example nor my app is actually creating the file I have the app-key set in R.string.app_key and also in the manifest in the AuthActivity section, although I don't have an activity in my app called AuthActivity, so not sure why it should be there. Please help as this is holding me up.Solved13KViews1like4CommentsDeveloper console app
Hi Team, We are trying to provide dropbox support into our existing application which uses file-stack for uploading files. We followed this tutorial and created an APP from the developer console. Currently our app (dropbox developer console) indicates it is in development mode and supports maximum of 500 users although it freezes once it reaches a count of 50 as per documentation. From the same documentation https://www.dropbox.com/developers/reference/developer-guide we also got to know that we need to proceed with "Apply for production" CTA in order to take our app to the production where any number of users can be connected to the app. We just wanted to understand if we want to "apply for production" where n number of users can connect to app, Are there any charges involved in this ? Awaiting your response Regards, Rohit Raut12KViews0likes1Comment