WordPress-iOS
WordPress-iOS copied to clipboard
Crash when retrieving Blog loginURL
Description
As of 23.0, the crash started in 21.6 and has hundreds of events but only affects one user, so the priority is set to low.
The crash happens on line 19:
let loginURL = try? blog.loginUrl().asURL()
And logs indicate that loginURL type may not be NSString as expected. getOptionValue:(NSString *)name may return an unexpected type that causes the crash.
- (NSString *)loginUrl
{
NSString *loginUrl = [self getOptionValue:@"login_url"];
if (!loginUrl) {
loginUrl = [self urlWithPath:@"wp-login.php"];
}
return loginUrl;
}
Sentry
Sentry Issue: WORDPRESS-IOS-3PM8
NSInvalidArgumentException: -[__NSCFBoolean _fastCStringContents:]: unrecognized selector sent to instance 0x1f4120370
File "WordPressOrgRestApi+WordPress.swift", line 19, in makeCookieNonceAuthenticator
File "WordPressOrgRestApi+WordPress.swift", line 7, in makeAuthenticator
File "WordPressOrgRestApi+WordPress.swift", line 39, in WordPressOrgRestApi.init
File "<compiler-generated>", in WordPressOrgRestApi.init
File "Blog.m", line 889, in -[Blog wordPressOrgRestApi]
...
(45 additional frame(s) were not displayed)
| Fails | |
|---|---|
| :no_entry_sign: | Please add a feature label to this issue. e.g. 'Stats' |
Generated by :no_entry_sign: dangerJS
Sentry issue: WORDPRESS-IOS-4682