Home > Forum > Tips&Tricks > No registered factory for content type text/html -> Wrong credentials

No registered factory for content type text/html -> Wrong credentials
0

MVP
In reply to: Lukasz Swiszcz (WEBCON)

Hi,

Thanks for letting us know about this issue. We'll take a closer look to figure out what happened and ensure it’s properly addressed.

Best regards,
Łukasz

Hi Lukasz,

I wasn't able to reproduce the issue after entering the credentials again. Therefore I didn't open a ticket but I still wanted to put this in the community, in case someone else encounters it.

This is the call stack:
Event source WEBCON Emails Manager
Event details:
E-mail Sender
System.InvalidOperationException: Content type text/html does not have a factory registered to be parsed
at Microsoft.Kiota.Abstractions.Serialization.ParseNodeFactoryRegistry.GetRootParseNode(String contentType, Stream content)
at Microsoft.Kiota.Http.HttpClientLibrary.HttpClientRequestAdapter.<GetRootParseNode>d__30.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.Kiota.Http.HttpClientLibrary.HttpClientRequestAdapter.<ThrowIfFailedResponse>d__28.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.Kiota.Http.HttpClientLibrary.HttpClientRequestAdapter.<SendNoContentAsync>d__22.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at Microsoft.Kiota.Http.HttpClientLibrary.HttpClientRequestAdapter.<SendNoContentAsync>d__22.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.Graph.Users.Item.SendMail.SendMailRequestBuilder.<PostAsync>d__2.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at WebCon.WorkFlow.Service.AttachmentsProcessing.Helpers.GraphEmailsSender.<>c__DisplayClass6_0.<<SendEmailAsync>b__0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at WebCon.WorkFlow.Tools.Helpers.ExecuteWithTimeoutHelper.<ExecuteWithTimeoutAsync>d__1.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at WebCon.WorkFlow.Service.AttachmentsProcessing.Helpers.GraphEmailsSender.<SendEmailAsync>d__6.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at WebCon.WorkFlow.Service.WCF.WCFService.<>c__DisplayClass48_1.<<GraphTestMailSendAsync>b__2>d.MoveNext()


When I entered an invalid app registration I got this (expected) error:
MSAL.Desktop.4.61.3.0.MsalServiceException:
ErrorCode: unauthorized_client
Microsoft.Identity.Client.MsalServiceException: AADSTS700016: Application with identifier '.....' was not found in the directory ..

When I entered an invalid secret I got this error
MSAL.Desktop.4.61.3.0.MsalServiceException:
ErrorCode: invalid_client
Microsoft.Identity.Client.MsalServiceException: A configuration issue is preventing authentication


I really have no idea how this happened. The secret hasn't changed.

I'm not sure that it's worth looking into it. :)