Publish to BAR Fails with 500 error when a repo has the same default channel association for both the github and internal azure devops repo
See original GitHub issueReported by @vatsan-madhavan ; a few of his builds failing when interacting with BAR:
https://dev.azure.com/dnceng/internal/_build/results?buildId=129133 https://dev.azure.com/dnceng/internal/_build/results?buildId=129107
Error:
D:\a\1\s\.packages\microsoft.dotnet.arcade.sdk\1.0.0-beta.19167.10\tools\SdkTasks\PublishBuildAssets.proj(30,5): error : RestApiException`1: The response contained an invalid status code 500 Internal Server Error
D:\a\1\s\.packages\microsoft.dotnet.arcade.sdk\1.0.0-beta.19167.10\tools\SdkTasks\PublishBuildAssets.proj(30,5): error :
D:\a\1\s\.packages\microsoft.dotnet.arcade.sdk\1.0.0-beta.19167.10\tools\SdkTasks\PublishBuildAssets.proj(30,5): error : Body: {"message":"An error occured.","errors":null}
D:\a\1\s\.packages\microsoft.dotnet.arcade.sdk\1.0.0-beta.19167.10\tools\SdkTasks\PublishBuildAssets.proj(30,5): error : at Microsoft.DotNet.Maestro.Client.Builds.CreateInternalAsync(BuildData body, CancellationToken cancellationToken) in /_/src/Maestro/Client/src/Generated/Builds.cs:line 285
D:\a\1\s\.packages\microsoft.dotnet.arcade.sdk\1.0.0-beta.19167.10\tools\SdkTasks\PublishBuildAssets.proj(30,5): error : at Microsoft.DotNet.Maestro.Client.Builds.CreateAsync(BuildData body, CancellationToken cancellationToken) in /_/src/Maestro/Client/src/Generated/Builds.cs:line 210
D:\a\1\s\.packages\microsoft.dotnet.arcade.sdk\1.0.0-beta.19167.10\tools\SdkTasks\PublishBuildAssets.proj(30,5): error : at Microsoft.DotNet.Maestro.Tasks.PushMetadataToBuildAssetRegistry.PushMetadataAsync(CancellationToken cancellationToken) in /_/src/Maestro/Microsoft.DotNet.Maestro.Tasks/src/PushMetadataToBuildAssetRegistry.cs:line 84
D:\a\1\s\.packages\microsoft.dotnet.arcade.sdk\1.0.0-beta.19167.10\tools\SdkTasks\PublishBuildAssets.proj(30,5): error :
Issue Analytics
- State:
- Created 5 years ago
- Comments:9 (9 by maintainers)
Top Results From Across the Web
Error 500 when forking a project for the second time (after ...
tried to push this branch to origin (my repository) but I got the error ! [remote rejected] error: failed to push some refs...
Read more >How to fix error 500 for connecting Azure databricks ...
I am trying to connect a Repo from Azure DevOps to Azure Databricks. ... My colleague can create a repo, and we have...
Read more >github - I am getting 500 error on git clone
500 Internal Server Error I have the same problem, but in GitLab, and the answer to the problem is that GitLabis make a...
Read more >Webhooks | GitLab
Webhooks are custom HTTP callbacks that you define. They are usually triggered by an event, such as pushing code to a repository or...
Read more >Publish messages to topics | Cloud Pub/Sub
A publisher application creates and sends messages to a topic. Pub/Sub offers at-least-once message delivery and best-effort ordering to existing subscribers.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
In theory nothing. Only one of them should be needed. However we should not be crashing if both entries exist. I’ll be keeping an eye to make sure the correct things are being assigned while I submit the correct fix.
Thanks for looking into this Ricardo