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鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
Post promise error #45
Comments
Hello @AlbanPerli, Concerning the "ambiguous" parameter. This is because This yields an error : ws.post("", params: ["":""]).then { json in } while the following doesn't : ws.post("", params: ["":""]).then { (json:JSON) in { } The way it's usually meant to be used is "wrapped" in a function that gives the type. func postSomething() -> Promise<JSON> {
return ws.post("", params: ["":""])
}
// later
postSomething().then { json in
}
As for the second error, this compiles fine on my end :/ Hope it helps :) De rien! |
Thanks for the quick response! I've read the issue #11 And of course, still the same error for the It comes from cocoapods, I don't understand why the |
@s4cha ...Found! the Arrow framework has a It leads to strange behaviours, with poor error description. It could be interesting to make ws compatible with SwiftyJSON I'll look about it. Thank! |
@AlbanPerli glad you found it! Have you tried specifying Cheers, |
Sure @s4cha 馃憤 At the end of august. |
Any update on this? |
Hi, first, thanks for your good job! (especially with Stevia 馃憤 )
I wanted to use your lib (v2.0.4) to post some datas but...
When I try this:
Produce error: Ambiguous use of 'post(_:params:)'
And when used like in the
get
example:Produce error: No 'post' candidates produce the expected contextual result type 'Promise'
Any ideas?
Did I miss something?
Tell me if I can help!
Merci :)
The text was updated successfully, but these errors were encountered: