首页 > 解决方案 > c# with Bitbucket.org 错误:解析值时遇到意外字符:<。路径 '',第 0 行,第 0 位置

问题描述

我们使用 Atlassian.Stash - Atlassian Stash 的 C# API 包装器,版本 v4.0.30319

C# .Net 4.8,Windows 10/1909

我们从 Bitbucket Server 迁移到 Bitbucket.org,出现错误:Unexpected character encountered while parsing value: <. Path '', line 0, position 0

try
{
  var client = new StashClient(ConfigParametres.GitBaseURL, username, 
  password);
  ResponseWrapper<Atlassian.Stash.Entities.Commit> allCommits = await 
  client.Commits.Get("PROJECT_KEY", "REPOSITORY_NAME", null, null);
  if (allCommits.Values == null)
  {
    return false;
  }
}
catch (Exception ex)
{
  return false;
}

标签: c#cloudbitbucket

解决方案


推荐阅读