Stories
Slash Boxes
Comments

SoylentNews is people

posted by martyb on Sunday July 12 2020, @03:48AM   Printer-friendly

Facebook code change caused outage for Spotify, Pinterest and Waze apps – TechCrunch:

If you're an iPhone user, odds are fairly good you spent a frustrating portion of the morning attempting to reopen apps. I know my morning walk was dampened by the inability to fire up Spotify. Plenty of other users reported similar issues with a number of apps, including Pinterest and Waze.

The issue has since been resolved, with Facebook noting that the problem rests firmly on its shoulders. A log page notes a sudden spike in errors stemming from Facebook's iOS SDK, dating back several hours.

[...] "Earlier today, a code change triggered crashes for some iOS apps using the Facebook SDK," the developer team writes. "We identified the issue quickly and resolved it. We apologize for any inconvenience."

[...] After the second major issue in recent memory, it's easy to imagine many reconsidering their relationship with the social network — after all, a bad experience can put people off an app entirely, as social media debates around Apple Music versus Spotify appeared to point to this morning. Many users will ultimately place the blame at the feet of a given app, rather than a third-party SDK that caused the crash.

A detailed timeline and very readable analysis of what happened is available at Bugsnag:

Some key takeaways

  1. Now the issue is, this absolutely should not crash an application. One of the tenets of good SDK design is that SDKs SHOULD NEVER CRASH THE APP.
  2. Defensive programming, and better handling of malformed data from the server could have meant that instead of crashing the application, the facebook initialization could have just been skipped, or better still, fall back to some kind of default settings if the server responds with junk data.
  3. Additionally, by having some kind of API data validation in place, this situation could have been avoided entirely. Services like Runscope offer this.

See, also: Robustness Principle.


Original Submission

 
This discussion has been archived. No new comments can be posted.
Display Options Threshold/Breakthrough Mark All as Read Mark All as Unread
The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
  • (Score: 1) by Zinnia Zirconium on Sunday July 12 2020, @03:18PM

    by Zinnia Zirconium (11163) on Sunday July 12 2020, @03:18PM (#1019853) Homepage Journal

    Spotify app works better with no signal.

    If Spotify is crashing on your iPhone you can avoid the crash bug by launching it with your phone in airplane mode and Wi-Fi turned off. As soon as you re-enable Wi-Fi or 4G then it'll crash again due to the Facebook iOS SDK issue
    https://9to5mac.com/2020/07/10/app-crash-facebook-sdk/ [9to5mac.com]

    Or you could try one of the many options for downloading your Spotify tunes into audio files that you can play without the Spotify app.

    Sorry I personally haven't made a Spotify downloader because that particular niche has been filled by many other people already.