Skip to content

Add error handling for Tumblr posts #51

Description

@Daniel15
      An unhandled exception has occurred: The remote server returned an error: (404) Not Found.
System.Net.WebException: The remote server returned an error: (404) Not Found.
  at System.Net.HttpWebRequest.EndGetResponse (System.IAsyncResult asyncResult) [0x00064] in <bd46d4d4f7964dfa9beea098499ab597>:0 
  at System.Net.HttpWebRequest.GetResponse () [0x0000e] in <bd46d4d4f7964dfa9beea098499ab597>:0 
  at System.Xml.XmlDownloadManager.GetNonFileStream (System.Uri uri, System.Net.ICredentials credentials, System.Net.IWebProxy proxy, System.Net.Cache.RequestCachePolicy cachePolicy) [0x00030] in <1140eab9e72948548294172a9716416d>:0 
  at System.Xml.XmlDownloadManager.GetStream (System.Uri uri, System.Net.ICredentials credentials, System.Net.IWebProxy proxy, System.Net.Cache.RequestCachePolicy cachePolicy) [0x00025] in <1140eab9e72948548294172a9716416d>:0 
  at System.Xml.XmlUrlResolver.GetEntity (System.Uri absoluteUri, System.String role, System.Type ofObjectToReturn) [0x0003b] in <1140eab9e72948548294172a9716416d>:0 
  at System.Xml.XmlTextReaderImpl.FinishInitUriString () [0x00054] in <1140eab9e72948548294172a9716416d>:0 
  at System.Xml.XmlTextReaderImpl..ctor (System.String uriStr, System.Xml.XmlReaderSettings settings, System.Xml.XmlParserContext context, System.Xml.XmlResolver uriResolver) [0x000d9] in <1140eab9e72948548294172a9716416d>:0 
  at System.Xml.XmlReaderSettings.CreateReader (System.String inputUri, System.Xml.XmlParserContext inputContext) [0x00044] in <1140eab9e72948548294172a9716416d>:0 
  at System.Xml.XmlReader.Create (System.String inputUri, System.Xml.XmlReaderSettings settings, System.Xml.XmlParserContext inputContext) [0x0000d] in <1140eab9e72948548294172a9716416d>:0 
  at System.Xml.XmlReader.Create (System.String inputUri, System.Xml.XmlReaderSettings settings) [0x00000] in <1140eab9e72948548294172a9716416d>:0 
  at System.Xml.Linq.XElement.Load (System.String uri, System.Xml.Linq.LoadOptions options) [0x00007] in <0d20eb83a0f947f5bd4207adaa3db8ae>:0 
  at System.Xml.Linq.XElement.Load (System.String uri) [0x00000] in <0d20eb83a0f947f5bd4207adaa3db8ae>:0 
  at Daniel15.Data.Repositories.MicroblogRepository.LatestPosts (System.Int32 count, System.Int32 offset) [0x00021] in <7fbd176ad3744ad4b183125761e7b81c>:0 
  at Daniel15.Web.ViewComponents.TumblrPostsViewComponent.Invoke () [0x00000] in <43d35dade19a4bd88073ef123f079510>:0 
  at (wrapper dynamic-method) System.Object:lambda_method (System.Runtime.CompilerServices.Closure,object,object[])
  at Microsoft.AspNetCore.Mvc.Internal.ObjectMethodExecutor.Execute (System.Object target, System.Object[] parameters) [0x00000] in <60a492e538104060ba252cf63b4b4aa3>:0 
  at Microsoft.AspNetCore.Mvc.ViewComponents.DefaultViewComponentInvoker.InvokeSyncCore (Microsoft.AspNetCore.Mvc.Internal.ObjectMethodExecutor executor, Microsoft.AspNetCore.Mvc.ViewComponents.ViewComponentContext context) [0x00059] in <d130ecd06c7c40ddbcbfb894eb280ce2>:0 
  at Microsoft.AspNetCore.Mvc.ViewComponents.DefaultViewComponentInvoker+<InvokeAsync>d__5.MoveNext () [0x00102] in <d130ecd06c7c40ddbcbfb894eb280ce2>:0 

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions