Cut the Clutter: Test Ignore Files Feature - sign up to become a beta tester here.
Forum Discussion
htoosaywah
8 years agoNew member | Level 2
java.lang.IllegalArgumentException: String 'path' does not match pattern
I just download the dropbox API and integrate into my android code, but it shows error that the path is not match and I don't know where to fix it.
FATAL EXCEPTION: AsyncTask #2 Process: com.example.inspiron.smartdoorapp2, PID: 16439 java.lang.RuntimeException: An error occurred while executing doInBackground() at android.os.AsyncTask$3.done(AsyncTask.java:309) at java.util.concurrent.FutureTask.finishCompletion(FutureTask.java:354) at java.util.concurrent.FutureTask.setException(FutureTask.java:223) at java.util.concurrent.FutureTask.run(FutureTask.java:242) at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:234) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1113) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:588) at java.lang.Thread.run(Thread.java:818) Caused by: java.lang.IllegalArgumentException: String 'path' does not match pattern at com.dropbox.core.v2.files.ListFolderArg.<init>(ListFolderArg.java:68) at com.dropbox.core.v2.files.ListFolderArg.<init>(ListFolderArg.java:100) at com.dropbox.core.v2.files.DbxUserFilesRequests.listFolder(DbxUserFilesRequests.java:1384) at com.example.inspiron.smartdoorapp2.ListFolderTask.doInBackground(ListFolderTask.java:43) at com.example.inspiron.smartdoorapp2.ListFolderTask.doInBackground(ListFolderTask.java:12) at android.os.AsyncTask$2.call(AsyncTask.java:295) at java.util.concurrent.FutureTask.run(FutureTask.java:237) at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:234) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1113) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:588) at java.lang.Thread.run(Thread.java:818)
1 Reply
- Greg-DB8 years ago
Dropbox Community Moderator
Based on that stack trace, this issue is occurring when you're calling "listFolder", because you're not supplying a valid "path" value. If you need help with that, please share the relevant code, including the "path" value you're supplying.
About Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.6,039 PostsLatest Activity: 18 hours ago
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 or Facebook.
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!