mirror of
https://github.com/OAuthSwift/OAuthSwift.git
synced 2026-04-26 12:45:52 +03:00
[GH-ISSUE #302] {"errors":[{"code":32,"message":"Could not authenticate you."}]} when trying to submit a post to Twitter? #183
Labels
No labels
bug
cocoapod
duplicate
enhancement
feature-request
help wanted
help wanted
invalid
pull-request
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/OAuthSwift#183
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @lanza on GitHub (Oct 31, 2016).
Original GitHub issue: https://github.com/OAuthSwift/OAuthSwift/issues/302
Description: I get the error
when I try to submit a post to
http://api.twitter.com/1.1/statuses/update.json.Authorization works just fine. I can get tweets for the main timeline. I can get user information. But when I try to call this post I get this error. Here's the call. The auth and oauthswift are exactly as set in the README.md.
OAuth Provider (Twitter, Github, ..):
Twitter
OAuth Version:
OS (Please fill the version) :
Installation method:
Library version:
Xcode version:
8.0 (Swift 3.0)
8.0 (Swift 2.3)
7.3.1
other: (Please fill in the version you are using.)
objective c
@phimage commented on GitHub (Oct 31, 2016):
Have you read twitter api?
(For a next issue please give a link to the provider doc, Doc of the request if you can
https://dev.twitter.com/rest/reference/post/statuses/update)
I don't see any 'body' parameter in the doc for that request
@lanza commented on GitHub (Oct 31, 2016):
Oh oops that was a typo. It does indeed work when calling that function. However, this fails while using the OAuthSwiftAlamofire framework with that same error message.
This returns that same error message. The only thing that differs in the URLRequest being called would be the
shouldHandleCookiesparameter beingtruefor the AlamoFire adapter version. I edited Alamofire's code to simply change that header and still the same error.@phimage commented on GitHub (Oct 31, 2016):
If OAuthSwift work, you can close this issue
And open one for
OAuthSwiftAlamofire(you can add a link to this one)If you have done some debug ie. break point in
adapt(_ urlRequest: URLRequest) throws -> URLRequest {to see originalurlRequestand modified one