wordpress-mobile / WordPress-iOS

WordPress for iOS - Official repository
http://ios.wordpress.org/
GNU General Public License v2.0
3.7k stars 1.12k forks source link

AtomicAuthenticationService Decoding Error #23150

Open sentry-io[bot] opened 7 months ago

sentry-io[bot] commented 7 months ago

[!NOTE] This issue affects the WordPress app.

Sentry Issue: WORDPRESS-IOS-48PQ

WordPressKit.AtomicAuthenticationServiceRemote.ResponseError.decodingFailure(response: ["url": redacted, "cookies": {
    "error_data" =     {
        domain = "redacted";
        expires = "<null>";
        name = "<null>";
        path = "/";
        value = "<null>";
    };
    errors =     {
        domain = "redacted";
        expires = "<null>";
        name = "<null>";
        path = "/";
        value = "<null>";
    };
}])

Notes

This is a handled error that was reported to Sentry through the CrashLogging component. I created this issue because it has affected 5 unique users and may break the user experience.

The code that reports the error has been there since 2020/2021, so there might be a change in the response structure. Since this comes from AtomicAuthenticationService, perhaps it's also possible that the site installed a plugin that modifies the cookie authentication logic or disabled the access to fetch auth cookies from their site.

Based on the Sentry breadcrumbs, it looks like the affected users were trying to view/preview their site by tapping on the site URL link in the My Site tab.

dangermattic commented 7 months ago

Thanks for reporting! 👍

sentry-io[bot] commented 7 months ago

Sentry Issue: WORDPRESS-IOS-48PP