Github 同步时出错 Git 历史:意外字符('<'(代码 60)):需要一个有效值 Databrick 集成错误

Github Error while syncing Git history: Unexpected character ('<' (code 60)): expected a valid value Databrick integration error

我正在遵循有关如何将 Azure DevOps CI/CD 与 Azure Databricks 集成的指南。 https://medium.com/@bedatse/azure-devops-ci-cd-with-azure-databricks-and-data-factory-part-1-c05a44536a8e

到步骤 3-2 为止一切正常,我需要 link 我的工作簿到 Azure DevOps Repo,它应该是我的 git 存储库的 URL。

我已将 Git Repo 中的路径设置为我希望 Databricks 将我的笔记本保存在存储库中的位置。

但是,当我保存时,我收到以下 Git 失败消息;

Error while syncing Git history: Unexpected character ('<' (code 60)): expected a valid value (number, String, array, object, 'true', 'false' or 'null')? at [Source: ????<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">???? ?? ????<html lang="en-US">??<head><title>?? ?? Azure DevOps Services | Sign In?? ??</title><meta http-equiv="X-UA-Compatible" content="IE=11;&#32;IE=10;&#32;IE=9;&#32;IE=8" />?? <link rel="SHORTCUT ICON" href="/favicon.ico"/>???? <link data-bundlelength="508491" data-bundlename="commoncss" data-highcontrast="/_static/tfs/M159_20191007.24/_cssbundles/HighContrast/vss-bundle-commoncss-vFEXRww04Ui9f9-agwRu1-KcB8LHGV2h4if73yu-SgCA=" data-includedstyles="jQueryUI-Modified;Core;Splitter;PivotView" href="/_static/tfs/M159_20191007.24/_cssbundles/Default/vss-bundle-commoncss-vdGeUpct-nfzYfTJ4ZaPoC5_RMPHB-2NPspm7OsZ3cA8=" rel="stylesheet" />??<link data-bundlelength="116152" data-bundlename="viewcss" data-highcontrast="/_static/tfs/M159_2019

非常感谢任何帮助

最近有一位客户提出了这个问题,我刚刚 运行 亲自通过实验室,看看我是否可以重现这个错误。我没有遇到任何重大问题,但确实注意到一些可能有帮助的事情。

我最初观察到 Error linking with Git,尽管有不同的错误文本,但这可能是一个值得研究的额外障碍......自从编写本课程 material 以来,Azure DevOps 和 GitHub 没有不再将新存储库的默认分支命名为 master,而是使用 main。根据您的屏幕截图,Azure Databricks 似乎仍默认为 master,因此可能值得检查一下。

但除了上述之外,我还要仔细检查“Link”和“Git Repo 中的路径”字段是否包含第二部分中标识的意外字符错误信息:

Unexpected character ('<' (code 60)):

说明包含以下注意事项:

Note
format of URL is
http://dev.azure.com/<myOrg>/<myProject>/_git/<myRepo>
which differs from the URL of the repo displayed in Azure DevOps
http://dev.azure.com/<myOrg>/_git/<myRepo>

我能够重现您的错误,只需在需要用您自己的值替换的一些字符串周围放置一个或多个 < > 大括号即可。