microsoft / symphony

CI/CD for IaC on multiple orchestrators
MIT License
177 stars 21 forks source link

This request expects an object in the request body, but the supplied data could not be deserialized #253

Open lukemurraynz opened 10 months ago

lukemurraynz commented 10 months ago

Hi, team

Looking into Symphony, and during the Azure DevOps Terraform provisioning step (using the Get Started document), it keeps erroring with the the following error. This is using a PAT Token with Full rights:

`svradmin@VM2:~/symphony$ cat /home/svradmin/symphony/scripts/install/cli/../../..//.symphony/logs/2024-01-21-00-16-1705796187-azdo/http.error.log

Inner Exception in Http Response _request_uri: https://dev.azure.com/ORGNAME/Symphony/_apis/build/definitions?api-version=5.1 _response: {"$id":"1","innerException":null,"message":"This request expects an object in the request body, but the supplied data could not be deserialized.","typeName":"Microsoft.TeamFoundation.Build.WebApi.RequestContentException, Microsoft.TeamFoundation.Build2.WebApi","typeKey":"RequestContentException","errorCode":0,"eventId":3000}

Inner Exception in Http Response _request_uri: https://dev.azure.com/ORGNAME/Symphony/_apis/pipelines/pipelinePermissions/queue/345?api-version=5.1-preview.1 _response: {"$id":"1","innerException":null,"message":"Pipelines with ID(s) 0 could not be found","typeName":"Microsoft.Azure.Pipelines.Authorization.WebApi.DefinitionNotFoundException, Microsoft.Azure.Pipelines.Authorization.WebApi","typeKey":"DefinitionNotFoundException","errorCode":0,"eventId":3000}

Inner Exception in Http Response _request_uri: https://dev.azure.com/ORGNAME/Symphony/_apis/pipelines/pipelinePermissions/repository/62d6019a-f4e5-4827-a9ed-2aeb95557b94.1d03b9f6-8290-4e90-bb05-204c7331168a?api-version=5.1-preview.1 _response: {"$id":"1","innerException":null,"message":"Pipelines with ID(s) 0 could not be found","typeName":"Microsoft.Azure.Pipelines.Authorization.WebApi.DefinitionNotFoundException, Microsoft.Azure.Pipelines.Authorization.WebApi","typeKey":"DefinitionNotFoundException","errorCode":0,"eventId":3000}

Inner Exception in Http Response _request_uri: https://dev.azure.com/ORGNAME/Symphony/_apis/build/definitions?api-version=5.1 _response: {"$id":"1","innerException":null,"message":"This request expects an object in the request body, but the supplied data could not be deserialized.","typeName":"Microsoft.TeamFoundation.Build.WebApi.RequestContentException, Microsoft.TeamFoundation.Build2.WebApi","typeKey":"RequestContentException","errorCode":0,"eventId":3000}

Inner Exception in Http Response _request_uri: https://dev.azure.com/ORGNAME/Symphony/_apis/pipelines/pipelinePermissions/queue/345?api-version=5.1-preview.1 _response: {"$id":"1","innerException":null,"message":"Pipelines with ID(s) 0 could not be found","typeName":"Microsoft.Azure.Pipelines.Authorization.WebApi.DefinitionNotFoundException, Microsoft.Azure.Pipelines.Authorization.WebApi","typeKey":"DefinitionNotFoundException","errorCode":0,"eventId":3000}

Inner Exception in Http Response _request_uri: https://dev.azure.com/ORGNAME/Symphony/_apis/pipelines/pipelinePermissions/repository/62d6019a-f4e5-4827-a9ed-2aeb95557b94.1d03b9f6-8290-4e90-bb05-204c7331168a?api-version=5.1-preview.1 _response: {"$id":"1","innerException":null,"message":"Pipelines with ID(s) 0 could not be found","typeName":"Microsoft.Azure.Pipelines.Authorization.WebApi.DefinitionNotFoundException, Microsoft.Azure.Pipelines.Authorization.WebApi","typeKey":"DefinitionNotFoundException","errorCode":0,"eventId":3000}`

The repository was cloned, but Pipelines don't look to be set up

I have a Agent pool named, Default- but no self-hosted agent, I am looking to run this with a Microsoft hosted agent.

A. Is this related to the issue above? B. If so, is it possible to use a Microsft hosted agent? C. How can I rename the Resource Group and resources that were created (keyvault etc), instead of manually generated? I expected an option in the CLI to set these.

lukemurraynz commented 10 months ago

I setup a Self-hosted agent for testing. This was not resolved.

JQUINONES82 commented 7 months ago

Following the docs, receiving the error on a RHEL 9 linux host Service connection and repos get copied.

I currently too have a self hosted agent Running 3.236.1

Heart beat up and listening 2024-04-04 08:17:32Z INFO MessageListener] Sent GetAgentMessage to keep alive agent 11, session 'xxxxxxxx'. [2024-04-04 08:17:40Z INFO MessageListener] Sleeping for 8.844 seconds before retrying. [2024-04-04 08:18:39Z INFO MessageListener] Sleeping for 5.557 seconds before retrying.

Inner Exception in Http Response _request_uri: https://dev.azure.com/ORGNAMEXXX/symphony-test4/_apis/pipelines/pipelinePermissions/queue/387?api-version=5.1-preview.1 _response: {"$id":"1","innerException":null,"message":"Pipelines with ID(s) 0 could not be found","typeName":"Microsoft.Azure.Pipelines.Authorization.WebApi.DefinitionNotFoundException, Microsoft.Azure.Pipelines.Authorization.WebApi","typeKey":"DefinitionNotFoundException","errorCode":0,"eventId":3000}

Inner Exception in Http Response _request_uri: https://dev.azure.com/ORGNAMEXXX/symphony-test4/_apis/pipelines/pipelinePermissions/repository/XXXXXXXXXXXXXXXXXX?api-version=5.1-preview.1 _response: {"$id":"1","innerException":null,"message":"Pipelines with ID(s) 0 could not be found","typeName":"Microsoft.Azure.Pipelines.Authorization.WebApi.DefinitionNotFoundException, Microsoft.Azure.Pipelines.Authorization.WebApi","typeKey":"DefinitionNotFoundException","errorCode":0,"eventId":3000}