maikvandergaag / msft-extensions

Repository for extensions mainly used for Azure DevOps Extensions
https://msftplayground.com
MIT License
126 stars 81 forks source link

Getting API Version Number Error #446

Closed mk-khan closed 1 year ago

mk-khan commented 1 year ago

I have version counter task added to pipeline from version 1 onwards. However, today the task started failing with this error.

{"$id":"1","innerException":null,"message":"Invalid api version string: \"6.0.\". Api version string must be in the format: {Major}.{Minor}[-preview[.{ResourceVersion}]].","typeName":"Microsoft.VisualStudio.Services.WebApi.VssInvalidApiResourceVersionException, Microsoft.VisualStudio.Services.WebApi","typeKey":"VssInvalidApiResourceVersionException","errorCode":0,"eventId":3000}

tried to play with the other versions available even the preview one, it still fails with the same error message

{"$id":"1","innerException":null,"message":"Invalid api version string: \"7.1-preview.7.\". Api version string must be in the format: {Major}.{Minor}[-preview[.{ResourceVersion}]].","typeName":"Microsoft.VisualStudio.Services.WebApi.VssInvalidApiResourceVersionException, Microsoft.VisualStudio.Services.WebApi","typeKey":"VssInvalidApiResourceVersionException","errorCode":0,"eventId":3000}

Not sure whats wrong with the task .. any suggestions?

mk-khan commented 1 year ago

Seems like a wrong error message, it turns out to be issue with the PAT token expired. Thanks