Need to see if your shared folder is taking up space on your dropbox 👨💻? Find out how to check here.
Forum Discussion
ksprasad
9 years agoNew member | Level 2
Unexpected response code 400
Hi, I had been able to successfully connect to dropbox using dropbox api. I am using the bundle dropbox-core-sdk 1.7.6 from maven repository. But since recently I am getting the below error fro...
- 9 years ago
The Dropbox Java SDK you're using (v1.7.6) is old and is using the now retired API v1. Calling API v1 will return a 400 error since it is now disabled.
You should instead use the latest version of the Dropbox Java SDK (currently v3.0.5), which uses API v2.
Greg-DB
Dropbox Community Moderator
8 years agoTanny This 'path/not_found' error just means there is currently nothing at the specified path ("/neges" in your code) in the linked account.
A good way to check what is currently in the account is by listing the root, by using the path "" (an empty string).
Tanny
8 years agoExplorer | Level 3
thank you a lot for the help!!
I did change de code line that you indicate me, but I does not retrieve the files:
ListFolderResult result = client.files().listFolder("");
This is the output:
cd D:\Mis Documentos\Documents\NetBeansProjects\mavenproject1\dropbox; "JAVA_HOME=C:\\Program Files\\Java\\jdk1.8.0_181" cmd /c "\"\"C:\\Program Files\\NetBeans 8.2\\java\\maven\\bin\\mvn.bat\" -Dexec.args=\"-classpath %classpath com.neges.dropbox.Main\" -Dexec.executable=\"C:\\Program Files\\Java\\jdk1.8.0_181\\bin\\java.exe\" -Dmaven.ext.class.path=\"C:\\Program Files\\NetBeans 8.2\\java\\maven-nblib\\netbeans-eventspy.jar\" -Dfile.encoding=UTF-8 org.codehaus.mojo:exec-maven-plugin:1.2.1:exec\""
Running NetBeans Compile On Save execution. Phase execution is skipped and output directories of dependency projects (with Compile on Save turned on) will be used instead of their jar artifacts.
Scanning for projects...
------------------------------------------------------------------------
Building dropbox 1.0-SNAPSHOT
------------------------------------------------------------------------
--- exec-maven-plugin:1.2.1:exec (default-cli) @ dropbox ---
Tanny Nogales
------------------------------------------------------------------------
BUILD SUCCESS
------------------------------------------------------------------------
Total time: 8.381s
Finished at: Thu Aug 02 15:54:38 GMT-04:00 2018
Final Memory: 5M/123M
------------------------------------------------------------------------
My folder have the following files and subfolders:
And this is my app configuration:
Please your help !! :)
- Greg-DB8 years ago
Dropbox Community Moderator
In the screenshot of the web site, I see you're looking at a folder at "/neges". It sounds like that's probably just a folder you created manually.
For an app with the "app folder" permission, like the app you have registered, per your second screenshot, Dropbox automatically makes the special app folder for you. By default that's located at "/Apps/<app folder name>", for the English localization, or a corresponding translation for other localizations, e.g. "Aplicaciones" for Spanish.
So, please check in your account at "/Aplicaciones/neges" for the actual app folder and put whatever files you want there. (It's empty by default.)- Tanny8 years agoExplorer | Level 3You are the best !!!!! It finally works!!
About Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.
The Dropbox Community team is active from Monday to Friday. We try to respond to you as soon as we can, usually within 2 hours.
If you need more help you can view your support options (expected response time for an email or ticket is 24 hours), or contact us on X, Facebook or Instagram.
For more info on available support options for your Dropbox plan, see this article.
If you found the answer to your question in this Community thread, please 'like' the post to say thanks and to let us know it was useful!