You might see that the Dropbox Community team have been busy working on some major updates to the Community itself! So, here is some info on what’s changed, what’s staying the same and what you can expect from the Dropbox Community overall.
Forum Discussion
idanarie
2 years agoExplorer | Level 4
409 Conflict when calling sharing/get_shared_link_metadata
Hi team, we have an OAuth 2 integration with Dropbox (switched from access token integration to OAuth2). After the authentication, we are sending an API call check/user we get 200 message and ever...
idanarie
Explorer | Level 4
Hi Scott, thanks for the reply.
I tested it locally on Postman, this is the error I am seeing (even though the link is shared and can be accessed by anyone)
{
"error_summary": "shared_link_access_denied/.",
"error": {
".tag": "shared_link_access_denied"
}
}
Greg-DB
2 years agoDropbox Staff
idanarie Are you using an API app registered with the "app folder" access type? There's currently a bug that results in this error when using this method with an access token for an app folder app. That's still open with engineering, but I don't have a timeline on a fix.
- squdan9 months agoNew member | Level 2
Hi Greg, there is some new about this error? It's affecting my project also.
- Greg-DB9 months agoDropbox Staff
squdan I don't have an update on this case. Are you using an app with the "app folder" access type?
- squdan9 months agoNew member | Level 2
Yes, I'll give you all information about my case, maybe there is another way to achieve what I need.
I'm developing a new APP that stores some information into app users dropbox account, this works fine. Also, this app needs to access to a shared folder from my dropbox account to read some files, but I'm getting "SHARED_LINK_ACCESS_ERROR" error when I try to read from app.
Scoped app (App folder) is automatically set with selected permissions.I'm using Java SDK 2.
public String getPublicFileContent(final String sharedUrl, final String folder, final String filename) { String result; try (final DbxDownloader<SharedLinkMetadata> dropboxSharedLinkFileDownloader = dropboxClient .sharing() .getSharedLinkFileBuilder(sharedUrl) .withPath(getPath(folder, filename)) .start()) { // Obtain input stream from file final InputStream fileInputStream = dropboxSharedLinkFileDownloader.getInputStream(); // Read input stream result = new String(fileInputStream.readAllBytes(), StandardCharsets.UTF_8); } catch (final DbxException e) { log.error("[DROPBOX] Error al accssing public file '{}' - '{}' - '{}'. Error: ", sharedUrl, folder, filename, e); } catch (final IOException e) { log.error("[DROPBOX] Error reading public file '{}' - '{}' - '{}'. Error: ", sharedUrl, folder, filename, e); } return result.toString(); }
Error:
{ "cause" : null, "stackTrace" : [ { "classLoaderName" : null, "moduleName" : "java.desktop", "moduleVersion" : "17.0.6", "methodName" : "run", "fileName" : "EventDispatchThread.java", "lineNumber" : 90, "nativeMethod" : false, "className" : "java.awt.EventDispatchThread" } ], "requestId" : "5bc7ef1fdb6d4731a41186a86e390b3f", "userMessage" : null, "errorValue" : "SHARED_LINK_ACCESS_DENIED", "message" : "Exception in 2/sharing/get_shared_link_file: SHARED_LINK_ACCESS_DENIED", "suppressed" : [ ], "localizedMessage" : "Exception in 2/sharing/get_shared_link_file: SHARED_LINK_ACCESS_DENIED" }
If there is some error in my configuration or how I try to access to the file, pls tell me.
- Greg-DB7 months agoDropbox Staff
Update: the /2/sharing/get_shared_link_metadata and /2/sharing/get_shared_link_file endpoints (and corresponding methods in the SDKs) should now work when using an access token for an app with the app folder access type.
About Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.
5,887 PostsLatest Activity: 46 minutes agoIf 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!