Getting the below error when running either terraform plan or terraform state. Seems like it is a JSON deserialization problem but unsure. Has anyone encountered this before?
Error: Error making Read request on Sql Database sqldb-EMS-prod: sql.DatabasesClient#Get: Failure responding to request: StatusCode=200 – Original Error: Error occurred unmarshalling JSON - Error = ‘invalid character ‘{’ after top-level value’ JSON = ‘{“odata.metadata”:“https://management.centralus.control.database.windows.net/v2/ManagementService.Trusted.svc/modules/ServerManagement/$metadata#databases/@Element",“id”:"/subscriptions//resourceGroups//providers/Microsoft.Sql/servers//databases/”,“name”:“",“type”:“Microsoft.Sql/servers/databases”,“location”:“Central US”,“kind”:“v12.0,user,vcore,serverless”,“managedBy”:null,“properties”:{“databaseId”:"”,“edition”:“GeneralPurpose”,“status”:“Online”,“serviceLevelObjective”:“GP_S_Gen5_2”,“collation”:“SQL_Latin1_General_CP1_CI_AS”,“maxSizeBytes”:“34359738368”,“creationDate”:“2020-09-25T21:31:18.447Z”,“currentServiceObjectiveId”:“",“requestedServiceObjectiveId”:"”,“requestedServiceObjectiveName”:“GP_S_Gen5_2”,“createMode”:null,“sampleName”:null,“sourceDatabaseId”:null,“defaultSecondaryLocation”:“East US 2”,“earliestRestoreDate”:“2020-10-26T00:00:00Z”,“restorePointInTime”:null,“sourceDatabaseDeletionDate”:null,“blobUriAndSasKey”:null,“recoveryServicesRecoveryPointResourceId”:null,“elasticPoolName”:null,“containmentState”:2,“readScale”:“Disabled”,“failoverGroupId”:null,“zoneRedundant”:false,“isUpgradeRequested”:false}}{“odata.error”:{“code”:“500”,“message”:{“lang”:“en-US”,“value”:“An error occurred while trying to write an error payload.”}}}’