Skip to content

Handle network error in login screen #646

@machour

Description

@machour
Question Response
Version? master
Devices tested? iPhone 7...

What Currently Happens?

I'm on a really poor connection these days, and just tried to login in GitPoint, this happened:

screen shot 2017-11-23 at 12 55 47 pm

2017-11-23 12:55:03.939 [warn][tid:com.facebook.react.JavaScript] 'Encountered an error loading page', { domain: 'NSURLErrorDomain',
  loading: false,
  description: 'The network connection was lost.',
  target: 84,
  code: -1005,
  canGoBack: false,
  title: 'GitHub · Where software is built',
  url: 'https://github.com/login?client_id=87c7f05700c052937cfb&return_to=%2Flogin%2Foauth%2Fauthorize%3Fclient_id%3D87c7f05700c052937cfb%26redirect_uri%3Dgitpoint%253A%252F%252Fwelcome%26response_type%3Dtoken%26scope%3Duser%2Brepo%26state%3D0.7673387498480858',
  canGoForward: false }

I'm forced to terminate the App and restart it, as the "CANCEL" button is disabled.

What Do You Expect To Happen?

This error should be gracefully handled and the "CANCEL" button should be enabled back.

My Reproduction Steps

Live in Tunisia with a bad DSL provider 😆

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions