Skip to content

App Service SDK issue when call ListConnectionStrings api #25058

Open
@LianwMS

Description

@LianwMS

CreateConnectorExecutor - Execute end. Result status: Failed, error code: InternalProcessingError, error message: Execution failed.. Unable to deserialize the response.. Exception: Microsoft.Rest.SerializationException: Unable to deserialize the response.
---> Newtonsoft.Json.JsonSerializationException: Cannot deserialize the current JSON array (e.g. [1,2,3]) into type 'System.Collections.Generic.IDictionary2[System.String,Microsoft.Azure.Management.WebSites.Models.ConnStringValueTypePair]' because the type requires a JSON object (e.g. {"name":"value"}) to deserialize correctly. To fix this error either change the JSON to a JSON object (e.g. {"name":"value"}) or change the deserialized type to an array or a type that implements a collection interface (e.g. ICollection, IList) like List<T> that can be deserialized from a JSON array. JsonArrayAttribute can also be added to the type to force it to deserialize from a JSON array. Path 'properties', line 1, position 275. at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.EnsureArrayContract(JsonReader reader, Type objectType, JsonContract contract) at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateList(JsonReader reader, Type objectType, JsonContract contract, JsonProperty member, Object existingValue, String id) at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateValueInternal(JsonReader reader, Type objectType, JsonContract contract, JsonProperty member, JsonContainerContract containerContract, JsonProperty containerMember, Object existingValue) at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.SetPropertyValue(JsonProperty property, JsonConverter propertyConverter, JsonContainerContract containerContract, JsonProperty containerProperty, JsonReader reader, Object target) at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.PopulateObject(Object newObject, JsonReader reader, JsonObjectContract contract, JsonProperty member, String id) at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateObject(JsonReader reader, Type objectType, JsonContract contract, JsonProperty member, JsonContainerContract containerContract, JsonProperty containerMember, Object existingValue) at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateValueInternal(JsonReader reader, Type objectType, JsonContract contract, JsonProperty member, JsonContainerContract containerContract, JsonProperty containerMember, Object existingValue) at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.Deserialize(JsonReader reader, Type objectType, Boolean checkAdditionalContent) at Newtonsoft.Json.JsonSerializer.DeserializeInternal(JsonReader reader, Type objectType) at Microsoft.Rest.Serialization.SafeJsonConvert.DeserializeObject[T](String json, JsonSerializerSettings settings) at Microsoft.Azure.Management.WebSites.WebAppsOperations.***(String resourceGroupName, String name, Dictionary2 customHeaders, CancellationToken cancellationToken)
--- End of inner exception stack trace ---
at Microsoft.Azure.Management.WebSites.WebAppsOperations.***(String resourceGroupName, String name, Dictionary`2 customHeaders, CancellationToken cancellationToken)
at Microsoft.Azure.Management.WebSites.WebAppsOperationsExtensions.ListConnectionStringsAsync(IWebAppsOperations operations, String resourceGroupName, String name, CancellationToken cancellationToken)
at Cupertino.Providers.SourceProvider.WebAppConfigureProvider.ListConnectionStrings() in /__w/1/s/src/Cupertino.Providers/SourceProvider/WebAppConfigureProvider.cs:line 417
at Cupertino.Providers.SourceProvider.WebAppConfigureProvider.CreateConnectionInfoRollbackConfig(ConnectorContext connectorContext) in /__w/1/s/src/Cupertino.Providers/SourceProvider/WebAppConfigureProvider.cs:line 262
at Cupertino.Providers.SourceProvider.SourceProviderBase.CreateConnectionInfoRollbackConfig(ConnectorContext connectorContext) in /__w/1/s/src/Cupertino.Providers/SourceProvider/SourceProviderBase.cs:line 128
at Cupertino.Providers.ConnectionConfigHandler.CreateConfigRollbackConfig(IConnectionSourceProvider sourceProvider, ConnectorContext connectorContext, SourceSetting sourceSettings) in /__w/1/s/src/Cupertino.Providers/ConnectionConfig/ConnectionConfigHandler.cs:line 95
at Cupertino.Providers.HandlerUtilies.WrapTask(Task task, Action preTask, Action postTask) in /__w/1/s/src/Cupertino.Providers/HandlerUtilies.cs:line 76
at Cupertino.Providers.AzureSourceConnectorHandler.CreateRollbackSetting(ConnectorContext connContext, AuthContext authContext, CancellationToken cancellationToken) in /__w/1/s/src/Cupertino.Providers/ConnectorHandler/AzureSourceConnectorHandler.cs:line 271
at Microsoft.Cupertino.Executor.Connections.CreateConnectorExecutor.CreateRollbackSetting(JToken payload, AuthContext authContext, CancellationToken cancellationToken) in /__w/1/s/src/Microsoft.Cupertino.Executor/Connections/V2/CreateConnectorExecutor.cs:line 210
at Microsoft.Cupertino.Executor.ExecutorBase.CreateInternalDataWithRollbackSetting(JToken payload, AuthContext authContext, JObject internalData, CancellationToken cancellationToken) in /__w/1/s/src/Microsoft.Cupertino.Executor/ExecutorBase.cs:line 178

Metadata

Metadata

Assignees

No one assigned

    Labels

    Service AttentionWorkflow: This issue is responsible by Azure service team.Web Apps

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions