mirror of
https://github.com/OAuthSwift/OAuthSwift.git
synced 2026-04-26 12:45:52 +03:00
[GH-ISSUE #441] OAuthSwiftError error -10 With Twitter #288
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#288
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 @ejwalters on GitHub (Mar 4, 2018).
Original GitHub issue: https://github.com/OAuthSwift/OAuthSwift/issues/441
Description: I am attempting to connect to Twitter via OAuth1 and I am getting an error saying "The operation couldn’t be completed. (OAuthSwiftError error -10.)". It seems that I am getting caught in the error handler of the authorize method. My code seems to match the examples so I am not sure what I am missing. Here is the code:
OAuth Provider (Twitter, Github, ..): Twitter
OAuth Version:
OS (Please fill the version) :
Installation method:
Library version:
Xcode version:
[ x] 9.0 (Swift 4.0)
9.0 (Swift 3.2)
8.x (Swift 3.x)
8.0 (Swift 2.3)
7.3.1
other: (Please fill in the version you are using.)
objective c
@phimage commented on GitHub (Mar 4, 2018):
let _ =
This is the error...
@ejwalters commented on GitHub (Mar 4, 2018):
I changed it to this and I get the same result:
@phimage commented on GitHub (Mar 4, 2018):
And Xcode say nothing?
That’s an error too
The object must be retain in memory, like an attribute of the class
Alternatively you can put oauthswift object as class attribute
This is an asynchronous code with no strong reference, to allow to free memory
@ejwalters commented on GitHub (Mar 4, 2018):
XCode does generate a warning of "Intialization of immutable value 'handle'..." when i use
let handle =. I was using the code from the sample. Changed the code to this and it worked. Thanks!@phimage commented on GitHub (Mar 4, 2018):
Do not use “!”
Bad practice
Use swiftlint to see all bad practice when coding in swift
I expect that the “var” are in class scope and not viewDidLoad scope
Or you will have same issue one day