Your workflow is unique 👨💻 - tell us how you use Dropbox here.
Forum Discussion
RTS S.
10 years agoHelpful | Level 6
Swift API v2 and filesGetMetadata with a path of "/"
I am calling this from within an Application Context.
So "/" should be my App directory.
Two problems:
1) I get a server error reposponse:
{"error_summary": "path/malformed_path", "error": {".tag": "path", "path": {".tag": "malformed_path"}}}
2) When I get this error ... The Swift api fails to deserialize "malformed_path"
Called from Files.GetMetadataErrorSerializer:deserialize when it tries to deserialize the "path"
7 Replies
Replies have been turned off for this discussion
- RTS S.10 years agoHelpful | Level 6
I also get the error when I try to call filesListFolder with a path of "/"
- Steve M.10 years ago
Dropbox Staff
The root path in API v2 is an empty string (").
- RTS S.10 years agoHelpful | Level 6
That solved the access problem. Does not make any sense to me ...
There is still an error handling problem which causes a fatal exit.
- Greg-DB10 years ago
Dropbox Community Moderator
What version of the SDK are you using? If it's not up to date, please update it and let us know if you're still seeing this. Thanks!
- RTS S.10 years agoHelpful | Level 6
I downloaded a couple of days ago using Cocoa Pods with tag '0.7'
- Greg-DB10 years ago
Dropbox Community Moderator
Thanks! I can reproduce this. We'll look into it.
- Greg-DB10 years ago
Dropbox Community Moderator
To close the loop here, this was fixed in version 0.7.1.
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!