c# - 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;
}
解决方案
推荐阅读
- javascript - 在 Selenium 中点击 JavaScript 按钮 - Java
- hadoop - 查询 HIVE 元数据
- javascript - 从标签中获取 Pardot 占位符
- hp-uft - 执行 JAR 文件时的 LeanFT 许可证状态
- java - 收到致命警报:protocol_version 构建失败 Gradle/Maven
- vue.js - 如何在 bliblidotcom vue-rangedate-picker 中将星期一设置为一周的开始而不是星期日
- python - Django 迁移不调用覆盖的 save() 方法?
- php - 从php数组插入sqlite行
- outlook - ics 不更新组织者日历
- php - 通过 PHP 使用条件创建数据库