[QUERY] Failed to de-serialize JSON on date `2020-02-18T10:14:43.06`
See original GitHub issueQuery/Question
De-serialize JSON failed on incorrect date e.g. 2020-02-18T10:14:43.06
. (lack Z
at last char)
Error message
com.fasterxml.jackson.databind.exc.InvalidFormatException: Cannot deserialize value of type `java.time.OffsetDateTime` from String "2020-02-18T10:14:43.06": Failed to deserialize java.time.OffsetDateTime: (java.time.format.DateTimeParseException) Text '2020-02-18T10:14:43.06' could not be parsed at index 22
This probably is web service problem, but I don’t think server will fix.
It happens for multiple mgmt services (include web, sql, etc.).
Let me know whether azure core would adapt for this.
Sample request
PUT https://management.azure.com/subscriptions/###/resourcegroups/javacsmrga8d720064/Microsoft.Web/sites/java-webapp-484058?api-version=2019-08-01
Sample response
{"id":"/subscriptions/ec0aa5f7-9e78-40c9-85cd-535c6305b380/resourceGroups/javacsmrga8d720064/providers/Microsoft.Web/sites/java-webapp-484058","name":"java-webapp-484058","type":"Microsoft.Web/sites","kind":"app","location":"westus","tags":{},"properties":{"name":"java-webapp-484058","state":"Running","hostNames":["java-webapp-484058.azurewebsites.net"],"webSpace":"javacsmrga8d720064-WestUSwebspace","selfLink":"https://waws-prod-bay-115.api.azurewebsites.windows.net:454/subscriptions/ec0aa5f7-9e78-40c9-85cd-535c6305b380/webspaces/javacsmrga8d720064-WestUSwebspace/sites/java-webapp-484058","repositorySiteName":"java-webapp-484058","owner":null,"usageState":"Normal","enabled":true,"adminEnabled":true,"enabledHostNames":["java-webapp-484058.azurewebsites.net","java-webapp-484058.scm.azurewebsites.net"],"siteProperties":{"metadata":null,"properties":[{"name":"LinuxFxVersion","value":""},{"name":"WindowsFxVersion","value":null}],"appSettings":null},"availabilityState":"Normal","sslCertificates":null,"csrs":[],"cers":null,"siteMode":null,"hostNameSslStates":[{"name":"java-webapp-484058.azurewebsites.net","sslState":"Disabled","ipBasedSslResult":null,"virtualIP":null,"thumbprint":null,"toUpdate":null,"toUpdateIpBasedSsl":null,"ipBasedSslState":"NotConfigured","hostType":"Standard"},{"name":"java-webapp-484058.scm.azurewebsites.net","sslState":"Disabled","ipBasedSslResult":null,"virtualIP":null,"thumbprint":null,"toUpdate":null,"toUpdateIpBasedSsl":null,"ipBasedSslState":"NotConfigured","hostType":"Repository"}],"computeMode":null,"serverFarm":null,"serverFarmId":"/subscriptions/ec0aa5f7-9e78-40c9-85cd-535c6305b380/resourceGroups/javacsmrga8d720064/providers/Microsoft.Web/serverfarms/java-asp-c9a952873","reserved":false,"isXenon":false,"hyperV":false,"lastModifiedTimeUtc":"2020-02-18T08:42:27.8166667","storageRecoveryDefaultState":"Running","contentAvailabilityState":"Normal","runtimeAvailabilityState":"Normal","siteConfig":null,"deploymentId":"java-webapp-484058","trafficManagerHostNames":null,"sku":"Basic","scmSiteAlsoStopped":false,"targetSwapSlot":null,"hostingEnvironment":null,"hostingEnvironmentProfile":null,"clientAffinityEnabled":true,"clientCertEnabled":false,"clientCertExclusionPaths":null,"hostNamesDisabled":false,"domainVerificationIdentifiers":null,"customDomainVerificationId":"2D9D2C35841FDE47EE3955E78F943C99EF6D4FB99D295897A5BC167F8837561D","kind":"app","inboundIpAddress":"40.112.192.69","possibleInboundIpAddresses":"40.112.192.69","outboundIpAddresses":"40.112.192.69,40.112.196.57,40.112.198.128,40.78.3.182,40.78.2.143","possibleOutboundIpAddresses":"40.112.192.69,40.112.196.57,40.112.198.128,40.78.3.182,40.78.2.143,40.112.193.168,40.78.1.240,40.78.1.3","containerSize":0,"dailyMemoryTimeQuota":0,"suspendedTill":null,"siteDisabledReason":0,"functionExecutionUnitsCache":null,"maxNumberOfWorkers":null,"homeStamp":"waws-prod-bay-115","cloningInfo":null,"hostingEnvironmentId":null,"tags":{},"resourceGroup":"javacsmrga8d720064","defaultHostName":"java-webapp-484058.azurewebsites.net","slotSwapStatus":null,"httpsOnly":false,"redundancyMode":"None","inProgressOperationId":null,"geoDistributions":null,"privateEndpointConnections":null,"buildVersion":null,"targetBuildVersion":null}}
Why is this not a Bug or a feature Request? A clear explanation of why is this not a bug or a feature request?
More likely a service bug. I need to know whether core would adapt it.
Setup (please complete the following information if applicable):
- OS: Windows
- IDE : IntelliJ
- Version of the Library used: core 1.2.0
Information Checklist Kindly make sure that you have added all the following information above and checkoff the required fields otherwise we will treat the issuer as an incomplete report
- Query Added
- Setup information Added
Issue Analytics
- State:
- Created 4 years ago
- Comments:8 (8 by maintainers)
I will try unblock myself by this
Reopen it since @JonathanGiles requires us to remove serializer package in core-management. Hence it had to be mitigated in core.