question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Queueing a build fails with poor error message

See original GitHub issue

I tried queue a build and received this error:

root : 'NoneType' object has no attribute 'message'

That wasn’t very helpful, so I added --debug and got something a bit more helpful:

msrest.http_logger : b'{"ClassName":"Microsoft.TeamFoundation.Build.WebApi.BuildRequestValidationFailedException","Messa
ge":"Could not queue the build because there were validation errors or warnings.","Data":null,"InnerException":null,"HelpURL":null,"StackTraceString":null,"RemoteStackTraceString":null,"RemoteStackIndex":0,"ExceptionMethod":null,"HResult":-
2146232832,"Source":null,"WatsonBuckets":null,"m_logException":false,"m_reportException":false,"m_errorCode":0,"m_logLevel":"warning","m_eventId":3000,"ValidationResults":[{"result":"error","message":"An error occurred while loading the YAML build definition. An object ID must be 40 characters long and only have hex digits. Passed in object ID: ."}]}'

Here’s the important part I think:

An error occurred while loading the YAML build definition. An object ID must be 40 characters long and only have hex digits. Passed in object ID: .

I don’t think there is anything wrong with the YAML - builds from the UI work just fine.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:7 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
tedchambcommented, Dec 13, 2017

Filed two bugs last week on the build team for the service. We will be able to provide a more detailed message, once these bugs are addressed.

1reaction
lzybkrcommented, Dec 6, 2017

That did help - our default branch is not master, nor do we have such a branch, but specifying the branch worked. Thanks.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Queueing a build fails with poor error message #106 - GitHub
I tried queue a build and received this error: root : 'NoneType' object has no attribute 'message' That wasn't very helpful, ...
Read more >
Is it possible to recover messages from error queue ...
Messages in the error queue are usually a sign something really bad is going on. Either something is offline for a longer period...
Read more >
How to Make Your Messaging System Reliable and Keep ...
The message/queue TTL expired. It failed due to a transient error. It failed because it is unprocessable (bad data, message versioning issue ......
Read more >
MSMQ: What can cause a "Insufficient resources to perform ...
I had the same error message and the solution was simple. There were a lot of messages sitting on various queues, and the...
Read more >
Error Handling with Spring AMQP - Baeldung
A Dead Letter Queue (DLQ) is a queue that holds undelivered or failed messages. A DLQ allows us to handle faulty or bad...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found