cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements
Share your feedback on the Document Scanning Experience in the Dropbox App 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: 

Internal Server Error 500 when sharing folder

Internal Server Error 500 when sharing folder

petepete717
Helpful | Level 6

When running my code I can share a folder one or two times but then I receive the Internal Server Error 500 afterwards.

 

Creating the shared folder works:

 

client.sharing.shareFolder(path: pathName).response { launch, error in

            switch launch {

            case .complete(let launchData):

               let id = launchData.sharedFolderID

               -> Code for adding shared member called from here

             shareFolder(id: id)

            case .asyncJobId(let jobID):

                // Do my async things here

                }

            case .none:

                print("None")

            }

}

 

func shareFolder(id: String) {

let member = Sharing.AddMember(member: .email("my.test@email.com))

client.sharing.addFolderMember(sharedFolderId: id,

                                       members: [member],

                                       quiet: false,

                                       customMessage: "Welcome to EZfile!")

        .response { _, error in

            switch error {

            case .none:

               print("Success creating share")

            case .some(let wrapped):

                print("Sharing folder error: \(#function)", wrapped)

            }

        }

}

 

The folder is created (I see it in Dropbox) but the share does not work in 80% of the times. Which indicates that I am creating the client correctly.

 

What am I missing here?

12 Replies 12

Greg-DB
Dropbox Staff

Thanks for the additional information!

petepete717
Helpful | Level 6

Hi Greg

Do you have any further information? I am stuck and cannot get my app to work reliably with this issue still open. 
Thank you very much. 

Greg-DB
Dropbox Staff

This is still open with engineering, but I don't have an update to report yet. I'll follow up here once I do.

Need more support?
Who's talking

Top contributors to this post

  • User avatar
    Greg-DB Dropbox Staff
  • User avatar
    petepete717 Helpful | Level 6
  • User avatar
    PeteFromCH New member | Level 2
What do Dropbox user levels mean?