cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements
We are making some updates so the Community might be down for a few hours on Monday the 11th of November. Apologies for the inconvenience and thank you for your patience. You can find out more 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: 

Re: Swift API v2 and filesGetMetadata with a path of "/"

Swift API v2 and filesGetMetadata with a path of "/"

RTS S.
Helpful | Level 6

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 7

RTS S.
Helpful | Level 6

I also get the error when I try to call filesListFolder with a path of "/"

Steve M.
Dropbox Staff

The root path in API v2 is an empty string (").

RTS S.
Helpful | 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-DB
Dropbox Staff

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.
Helpful | Level 6

I downloaded a couple of days ago using Cocoa Pods with tag '0.7'

 

Greg-DB
Dropbox Staff

Thanks! I can reproduce this. We'll look into it.

Greg-DB
Dropbox Staff

To close the loop here, this was fixed in version 0.7.1.

Need more support?