ChannelSurf icon indicating copy to clipboard operation
ChannelSurf copied to clipboard

Unhandled Exception: System.AggregateException:

Open gduval opened this issue 5 years ago • 7 comments

One or more errors occurred. (AADSTS7000218: The request body must contain the following parameter: 'client_assertion' or 'client_secret'.

Please advise.

gduval avatar Jun 19 '19 23:06 gduval

did you manage to move on?

eliaspn avatar Jun 30 '19 19:06 eliaspn

I'm seeing this same error. Were you ever able to resolve it?

j-mack avatar Jul 31 '19 17:07 j-mack

I am getting the same as well. Any help would be great!

Unhandled Exception: System.AggregateException: One or more errors occurred. (AADSTS7000218: The request body must contain the following parameter: 'client_assertion' or 'client_secret'. Trace ID: 298982d3-8c55-4eeb-8a10-852217931d00 Correlation ID: ed93319e-c77d-4a41-9a38-83953662a705 Timestamp: 2019-08-01 13:33:35Z) ---> Microsoft.IdentityModel.Clients.ActiveDirectory.AdalServiceException: AADSTS7000218: The request body must contain the following parameter: 'client_assertion' or 'client_secret'. Trace ID: 298982d3-8c55-4eeb-8a10-852217931d00 Correlation ID: ed93319e-c77d-4a41-9a38-83953662a705 Timestamp: 2019-08-01 13:33:35Z ---> System.Net.Http.HttpRequestException: Response status code does not indicate success: 401 (Unauthorized). ---> System.Exception: {"error":"invalid_client","error_description":"AADSTS7000218: The request body must contain the following parameter: 'client_assertion' or 'client_secret'.\r\nTrace ID: 298982d3-8c55-4eeb-8a10-852217931d00\r\nCorrelation ID: ed93319e-c77d-4a41-9a38-83953662a705\r\nTimestamp: 2019-08-01 13:33:35Z","error_codes":[7000218],"timestamp":"2019-08-01 13:33:35Z","trace_id":"298982d3-8c55-4eeb-8a10-852217931d00","correlation_id":"ed93319e-c77d-4a41-9a38-83953662a705"} --- End of inner exception stack trace --- at Microsoft.IdentityModel.Clients.ActiveDirectory.HttpClientWrapper.<GetResponseAsync>d__30.MoveNext() --- End of inner exception stack trace --- at Microsoft.IdentityModel.Clients.ActiveDirectory.AdalHttpClient.<GetResponseAsync>d__211.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.IdentityModel.Clients.ActiveDirectory.AdalHttpClient.<GetResponseAsync>d__201.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.IdentityModel.Clients.ActiveDirectory.AcquireTokenHandlerBase.<SendHttpMessageAsync>d__67.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.IdentityModel.Clients.ActiveDirectory.AcquireTokenHandlerBase.<SendTokenRequestAsync>d__64.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.IdentityModel.Clients.ActiveDirectory.AcquireTokenByDeviceCodeHandler.<SendTokenRequestAsync>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 Microsoft.IdentityModel.Clients.ActiveDirectory.AcquireTokenHandlerBase.<RunAsync>d__55.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.IdentityModel.Clients.ActiveDirectory.AuthenticationContext.<AcquireTokenByDeviceCodeAsync>d__24.MoveNext() --- End of inner exception stack trace --- at System.Threading.Tasks.Task.ThrowIfExceptional(Boolean includeTaskCanceledExceptions) at System.Threading.Tasks.Task`1.GetResultCore(Boolean waitCompletionNotification) at ChannelSurfCli.Program.UserLogin()

talador01 avatar Aug 01 '19 13:08 talador01

Got the same error. Try the following.

In Azure Click on "ChannelSurfCli", in the page where you get the IDs click "Supported account types: Multiple organizations" find "default client type, treat application as a public client": change to yes.

This worked for me

mengyuw-github avatar Aug 16 '19 22:08 mengyuw-github

@mengyuw-github that worked!!! Thanks for the info!

osagendn avatar Sep 04 '19 17:09 osagendn

Got the same error. Try the following.

In Azure Click on "ChannelSurfCli", in the page where you get the IDs click "Supported account types: Multiple organizations" find "default client type, treat application as a public client": change to yes.

This worked for me

This also works for me too. Thanks.

nati4193 avatar Nov 15 '19 15:11 nati4193

Got the same error. Try the following.

In Azure Click on "ChannelSurfCli", in the page where you get the IDs click "Supported account types: Multiple organizations" find "default client type, treat application as a public client": change to yes.

This worked for me

Got the same error. Try the following.

In Azure Click on "ChannelSurfCli", in the page where you get the IDs click "Supported account types: Multiple organizations" find "default client type, treat application as a public client": change to yes.

This worked for me

This works for me as well, thanks buddy

vipulsatyanam avatar Jul 18 '20 06:07 vipulsatyanam