Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
lukemurraynz opened this issue Jan 21, 2024 · 2 comments

Comments

@lukemurraynz
Copy link
Contributor

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
Copy link
Contributor Author

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

@JQUINONES82
Copy link

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}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants