Azure-pipelines-tasks: App Center distribute fails with a DatabaseError when marking the package as available

Created on 9 Dec 2020  路  4Comments  路  Source: microsoft/azure-pipelines-tasks

Required Information

Entering this information will route you directly to the right team and expedite traction.

Question, Bug, or Feature?
Type: Bug

Enter Task Name: App Center distribute v3.173

list here (V# not needed):
https://github.com/Microsoft/azure-pipelines-tasks/tree/master/Tasks

Environment

Issue Description

When the old release upload API got deprecated, we tried transitioning over to the App Center distribute task as we didn't knew that the downtime was generalized at the time. Since the transition, we keep on getting database errors when the package is flagged as available.

Task logs

2020-12-09T14:38:31.0108382Z ##[debug]-- Mark package available. 2020-12-09T14:38:31.0109151Z ##[debug]---- url: https://api.appcenter.ms/v0.1/apps/FOO/BAR/releases/123/groups 2020-12-09T14:38:31.2666442Z ##[debug]---- {"code":"dependent_service_error","message":"Error: {\"error\":{\"code\":\"DatabaseError\",\"message\":\"Conversion failed when converting from a character string to uniqueidentifier.\"}}"} 2020-12-09T14:38:31.2668136Z ##[debug]---- http call status code: 500 2020-12-09T14:38:31.2680065Z ##[debug]task result: Failed

AppCenter bug

Most helpful comment

@NaagAlgates There is nothing to fix. The bug is only opened because the error should be more clear to the user.

It happened because you are using distribution group names instead of their guid.

All 4 comments

After a lot of fumbling around, our team figured out that while the previous API we were using required to pass the distribution group as names, the tasks needed the ids...

I will keep this bug opened as this should return a 400 with a validation error on the distribution group field.

I'm facing this error today. Is there any temporary solution until this is fixed?

@NaagAlgates There is nothing to fix. The bug is only opened because the error should be more clear to the user.

It happened because you are using distribution group names instead of their guid.

Yes. Thanks. You're right.

Was this page helpful?
0 / 5 - 0 ratings