cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements
Want to know what we learned at IBC? Check out our learnings on media, remote working and more right here.

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: 

my dropbox chooser stopped working

my dropbox chooser stopped working

DeanBlakely
Explorer | Level 4

My Dropbox chooser no longer works in my android app and nothing has changed. I was retesting it recently and it returns the error saying "Sorry and error occurred. Please try again later."

below I have pasted relevant code that has been working for around a year and also a printout from the error log having to do with GetLinkAsyncTask.

Any Idea why this stopped working?

 

private static final String APP_KEY = "21fxa7qsjb9xpt6"; //app key for dropbox
private static final int DBX_CHOOSER_REQUEST = 256; // arbitrarily choosing 256
private DbxChooser mChooser;
 
public void btnDropbox_Clicked(View v)
{
vibratePhone(50);
DbxChooser.ResultType resultType;
resultType = DbxChooser.ResultType.PREVIEW_LINK;
DebugLog.debugLog("launching Dropbox Chooser ", false);
GlobalStuff.outToChooser = true;
mChooser.forResultType(resultType).launch(this, DBX_CHOOSER_REQUEST);

}
public void onActivityResult(int requestCode, int resultCode, Intent data)
{
if (requestCode == DBX_CHOOSER_REQUEST )
{
DebugLog.debugLog("It was for dropbox", false); 
GlobalStuff.outToChooser = false;
if (resultCode == Activity.RESULT_OK)
{
DbxChooser.Result result = new DbxChooser.Result(data);
DebugLog.debugLog("Link to selected file: " + result.getLink(), false); 
@SuppressWarnings("deprecation")
android.text.ClipboardManager clipboard = (android.text.ClipboardManager) 
GlobalStuff.GCT.getSystemService(GlobalStuff.GCT.CLIPBOARD_SERVICE);
Uri uri = result.getLink();
String str = uri.toString();
clipboard.setText(str); 
}
else
{
//failed or was cancelled by user
} 
}
//for some poorly documented reason we need to call mHelper.handleActivityResult
//to get our mPurchaseFinishedListener to execute so that we can consume purchases
//and provision product . . .

if (requestCode == RC_REQUEST)
{
DebugLog.debugLog("It was for in-app billing", false); 
if (mHelper == null) 
{
DebugLog.debugLog("mHellper was null ", false); 
return;
}
if (mHelper.handleActivityResult(requestCode, resultCode, data))
{
DebugLog.debugLog("Got positive back from handleActivityResult call", false); 
}
} 
}


log error is as follows:

 

01-16 16:57:04.125 2825-2825/? W/SplitWindow: update focus... 
01-16 16:57:04.144 1298-1386/? I/WindowManager: Losing delayed focus: Window{adbe0f7 u0 com.dropbox.android/com.dropbox.android.activity.DropboxChooserActivity}
01-16 16:57:04.152 2825-2825/? W/SplitWindow: update focus... 
01-16 16:57:04.310 2825-16239/? I/com.dropbox.android.activity.gf: Error in GetLinkAsyncTask
j: 500 Internal Server Error (The server has either erred or is incapable of performing the requested operation.)
at com.dropbox.client2.ak.a(panda.py:566)
at com.dropbox.client2.ak.b(panda.py:645)
at com.dropbox.client2.ak.a(panda.py:77)
at com.dropbox.client2.am.a(panda.py:148)
at com.dropbox.client2.ak.b(panda.py:386)
at com.dropbox.client2.ak.a(panda.py:279)
at com.dropbox.internalclient.ai.a(panda.py:39)
at com.dropbox.internalclient.ba.c(panda.py:2237)
at com.dropbox.internalclient.ba.a(panda.py:2397)
at com.dropbox.android.activity.gf.a(panda.py:320)
at com.dropbox.android.activity.gf.b(panda.py:236)
at dbxyzptlk.db2820200.bg.s.a(panda.py:55)
at dbxyzptlk.db2820200.bg.s.a(panda.py:30)
at dbxyzptlk.db2820200.en.a.doInBackground(panda.py:113)
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)
01-16 16:57:04.341 3533-3533/? I/[SystemUI]NavigationThemeResource: notify navigation bar color(0xff000000)
3 Replies 3

Greg-DB
Dropbox Staff
Thanks for the report! Is this only occurring for you when you select files in the Public folder? If so, that's a known issue we're working on.

Greg-DB
Dropbox Staff
The issue with choosing files in the Public folder should be fixed now. Please let us know if you're still seeing any issues.

DeanBlakely
Explorer | Level 4

Yes.  It works now.  Glad to hear it was on your end.

Thanks

Need more support?
Who's talking

Top contributors to this post

  • User avatar
    DeanBlakely Explorer | Level 4
  • User avatar
    Greg-DB Dropbox Staff
What do Dropbox user levels mean?