The request() method can return nil if the cred is bad or there's a connection error, need to handle that for sure before you use body.