cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements
Update: Find information on Dropbox support during COVID-19 here
Close

Dropbox API Support & Feedback

Find help with the Dropbox API from other developers.

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Highlighted

java.lang.IllegalArgumentException: String 'path' does not match pattern

New member | Level 2
New member | Level 2

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:58
     at java.lang.Thread.run(Thread.java:81
  Caused by: java.lang.IllegalArgumentException: String 'path' does not match pattern
     at com.dropbox.core.v2.files.ListFolderArg.<init>(ListFolderArg.java:6
     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:58
     at java.lang.Thread.run(Thread.java:81
1 Reply 1
Highlighted

Re: java.lang.IllegalArgumentException: String 'path' does not match pattern

Dropboxer
Dropboxer
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.
Polls
Do you know how to organize your files and folders?
We have created a guide on folder best practice, so you can get organized now check it out here.

Work Smarter with Dropbox

The way we work is changing. Share and discover new ways to work smarter with Dropbox in our community.

Sound good? Let's get started.
Who's talking

Top contributors to this post

What do Dropbox user levels mean?
Need more support?