-
Notifications
You must be signed in to change notification settings - Fork 31
Closed
Labels
bugSomething isn't workingSomething isn't workingfixedBug got fixed or found a solutionBug got fixed or found a solution
Description
Steps to reproduce
Using the latest released version with .NET Core 3 I am getting a 406 Not Acceptable error on around a third of requests. Debugging locally produces the following error...
@ using (var devops = new VssConnection(eventContext.CollectionUri, clientCredentials))
Method not found: 'Newtonsoft.Json.JsonSerializerSettings System.Net.Http.Formatting.BaseJsonMediaTypeFormatter.get_SerializerSettings()'.
at Microsoft.VisualStudio.Services.WebApi.VssJsonMediaTypeFormatter.SetSerializerSettings(Boolean bypassSafeArrayWrapping, Boolean enumsAsNumbers, Boolean useMsDateFormat)
at Microsoft.VisualStudio.Services.WebApi.VssJsonMediaTypeFormatter..ctor(Boolean bypassSafeArrayWrapping, Boolean enumsAsNumbers, Boolean useMsDateFormat)
at Microsoft.VisualStudio.Services.WebApi.VssJsonMediaTypeFormatter..ctor(Boolean bypassSafeArrayWrapping)
at Microsoft.VisualStudio.Services.WebApi.VssHttpClientBase..ctor(Uri baseUrl, HttpMessageHandler pipeline, Boolean disposeHandler)
at Microsoft.VisualStudio.Services.Location.Client.LocationHttpClient..ctor(Uri baseUrl, HttpMessageHandler pipeline, Boolean disposeHandler)
at Microsoft.VisualStudio.Services.WebApi.Location.VssServerDataProvider..ctor(VssConnection connection, HttpMessageHandler pipeline, String fullyQualifiedUrl)
at Microsoft.VisualStudio.Services.WebApi.VssConnection..ctor(Uri baseUrl, VssHttpMessageHandler innerHandler, IEnumerable`1 delegatingHandlers, Boolean allowUnattributedClients)
at Microsoft.VisualStudio.Services.WebApi.VssConnection..ctor(Uri baseUrl, VssHttpMessageHandler innerHandler, IEnumerable`1 delegatingHandlers)
at Microsoft.VisualStudio.Services.WebApi.VssConnection..ctor(Uri baseUrl, VssCredentials credentials, VssHttpRequestSettings settings)
at Microsoft.VisualStudio.Services.WebApi.VssConnection..ctor(Uri baseUrl, VssCredentials credentials)
at aggregator.Engine.RuleExecutor.<ExecuteAsync>d__3.MoveNext() in C:\Users\lmorton\Downloads\aggregator-cli\aggregator-cli-6747f6ea131ba7b96105e179f2999c1c0f61830a\src\aggregator-ruleng\RuleExecutor.cs:line 38
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
at aggregator.AzureFunctionHandler.<RunAsync>d__3.MoveNext() in C:\Users\lmorton\Downloads\aggregator-cli\aggregator-cli-6747f6ea131ba7b96105e179f2999c1c0f61830a\src\aggregator-function\AzureFunctionHandler.cs:line 76
Expected behavior
Instantiate the VssConnection
Actual behavior
Method not found: 'Newtonsoft.Json.JsonSerializerSettings System.Net.Http.Formatting.BaseJsonMediaTypeFormatter.get_SerializerSettings()'.
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workingfixedBug got fixed or found a solutionBug got fixed or found a solution