 <p>I think your <code>message.string</code> is <code>nil</code> when passed to <code>UIAlertController</code>. Check it twice. </p> <p>Print <code>message</code> after getting so you know that what you get in it.</p> <p>You can put breakpoints also to check that you are getting data or not.</p>