Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No connectivity exception (moved from facebook-csharp-sdk) #49

Open
sanjeevdwivedi opened this issue Jul 18, 2014 · 0 comments
Open

No connectivity exception (moved from facebook-csharp-sdk) #49

sanjeevdwivedi opened this issue Jul 18, 2014 · 0 comments

Comments

@sanjeevdwivedi
Copy link
Contributor

facebook-csharp-sdk/facebook-csharp-sdk#280

The SDK seems to raise an exception if there is no internet connectivity. In the tutorial we are instructed to create an instance of FacebookSessionClient straight away in the app.xaml.cs without checking connectivity. So when I test on an winphone8 emulator, the following exception is raised several seconds after startup:

{Facebook.WebExceptionWrapper: The remote server returned an error: NotFound. ---> System.Net.WebException: The remote server returned an error: NotFound.
at System.Net.Browser.ClientHttpWebRequest.InternalEndGetResponse(IAsyncResult asyncResult)
at System.Net.Browser.ClientHttpWebRequest.<>c__DisplayClasse.b__d(Object sendState)
at System.Net.Browser.AsyncHelper.<>c__DisplayClass1.b__0(Object sendState)
--- End of inner exception stack trace ---
at System.ComponentModel.AsyncCompletedEventArgs.RaiseExceptionIfNecessary()
at Facebook.OpenReadCompletedEventArgs.get_Result()
at Facebook.Client.FacebookSessionClient.b__0(Object o, OpenReadCompletedEventArgs e)
at Facebook.HttpHelper.OnOpenReadCompleted(OpenReadCompletedEventArgs args)
at Facebook.HttpHelper.ResponseCallback(IAsyncResult asyncResult, Object userToken)
at Facebook.HttpHelper.<>c__DisplayClass2.b__0(IAsyncResult ar)
at System.Net.Browser.ClientHttpWebRequest.<>c__DisplayClass1d.b__1b(Object state2)}

//cc @RamsayGit

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant