Your workflow is unique 👨‍💻 -  tell us how you use Dropbox here.

Forum Discussion

RTS S.'s avatar
RTS S.
Helpful | Level 6
10 years ago

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.'s avatar
    RTS S.
    Helpful | Level 6
    10 years ago

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

  • RTS S.'s avatar
    RTS S.
    Helpful | Level 6
    10 years ago

    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's avatar
    Greg-DB
    Icon for Dropbox Community Moderator rankDropbox Community Moderator
    10 years ago

    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.'s avatar
    RTS S.
    Helpful | Level 6
    10 years ago

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

     

  • Greg-DB's avatar
    Greg-DB
    Icon for Dropbox Community Moderator rankDropbox Community Moderator
    10 years ago

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

About Dropbox API Support & Feedback

Node avatar for 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!