New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
unable to access "users/get_current_account" #42
Comments
hey there, could you share a little more information on how we might be able to reproduce that problem? make a link to a project you've setup that reproduces this? |
hi @varenc , i just downloaded Swiftdropbox zip file and put it into my project(because of 'Swiftdropbox' not updated for 'Alamofire' 3.1 and i'm using Alamofire 3.1). i followed this link https://blogs.dropbox.com/developers/2015/05/try-out-swiftydropbox-the-new-swift-sdk-for-dropbox-api-v2/ step by step.
|
If |
yes error was printed . it shows Bad Input: Error in call to API function "users/get_current_account": request body: could not decode input as JSON. |
I am having the exact same problem when trying to access
|
I was having the same problems with the latest checkout. The issue seems to be caused by the following:
The block for the custom parameter encoding is not being run when an empty dictionary is passed in. If you add something to the parameters argument then the block is run. I'm guessing this probably used to work and broke in the recent Alamofire uprev to 3.0? |
That is the code I suspected as well but wasnt sure. Sure wish theyd expose the xproj and unit tests so we could help out ;) |
thanks for digging into this! Our office is mostly shutdown during the holidays but we should be able to get a fix out for this as soon as folks are back in the office. The client aspect of these SDKs are actually automatically generated from a specification of the API. This lets us ensure that all our SDKs of are always 100% up to date with the API, but it does complicate the SDK. We plan to release the full code for the generators in the future, but we're not there yet. |
thanks @tylermann . now it's working fine ,you were right it is happening bcz an empty dictionary is passed. |
voting for fix :) |
fixed in #48 |
Hi,
i'm following this link https://www.dropbox.com/developers/documentation/swift#tutorial, but after authorized the client when i try to access data of user it returns nil. as it shows Bad Input: Error in call to API function "users/get_current_account": request body: could not decode input as JSON or
Bad Input: Error in call to API function "files/list_folder": request body: could not decode input as JSON.
The text was updated successfully, but these errors were encountered: