TFS:尝试为 "rm" 创建订阅时出现 PublisherNotFoundException
TFS: PublisherNotFoundException when trying to create a subscription for "rm"
本地 TFS 2015 u2。我想为发布创建事件创建一个 HTTP 服务挂钩订阅。按照指示 here and here,我正在向
发送 POST 请求
http://tfs.mycompany.com:8080/tfs/MyCollection/_apis/hooks/subscriptions?api-version=1.0
与以下 JSON:
{
"publisherId": "rm",
"eventType": "ms.vss-release.release-created-event",
"resourceVersion": "1.0-preview.1",
"consumerId": "webHooks",
"consumerActionId": "httpRequest",
"publisherInputs":
{
"projectId": "aaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee"
},
"consumerInputs":
{
"url": "http://someserver/somefolder/"
}
}
我收到以下错误消息:
{
"innerException": null,
"message": "No publisher could be found with id \"rm\".",
"typeName": "Microsoft.VisualStudio.Services.ServiceHooks.WebApi.PublisherNotFoundException, Microsoft.VisualStudio.Services.ServiceHooks.WebApi, Version=14.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a",
"typeKey": "PublisherNotFoundException",
"errorCode": 0,
"eventId": 4501
}
事实上,如果您请求发布商列表,只有一个 ID 为 "tfs"。那里没有 "rm" 发布者。从 "tfs" 发布者请求相同的订阅会产生 "unknown event" 错误。
我是否必须以某种方式启用该发布者?本地 TFS 是否支持它?如果是,从哪个版本开始?
Microsoft 使用支持的版本注释他们的 TFS REST API 文档是否会伤害 Microsoft,就像他们的 API 文档的其余部分一样?
发布者是一种将事件发布到服务挂钩的服务。在 TFS 2015 update2 中,如果您请求发布者列表,您将不会获得带有 "rm" 的发布 ID。暂时不支持TFS2015
另外,其实rm
的资源版本应该是3.0
"resourceVersion": "3.0-preview.1",
本地 TFS 2015 u2。我想为发布创建事件创建一个 HTTP 服务挂钩订阅。按照指示 here and here,我正在向
发送 POST 请求http://tfs.mycompany.com:8080/tfs/MyCollection/_apis/hooks/subscriptions?api-version=1.0
与以下 JSON:
{
"publisherId": "rm",
"eventType": "ms.vss-release.release-created-event",
"resourceVersion": "1.0-preview.1",
"consumerId": "webHooks",
"consumerActionId": "httpRequest",
"publisherInputs":
{
"projectId": "aaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee"
},
"consumerInputs":
{
"url": "http://someserver/somefolder/"
}
}
我收到以下错误消息:
{
"innerException": null,
"message": "No publisher could be found with id \"rm\".",
"typeName": "Microsoft.VisualStudio.Services.ServiceHooks.WebApi.PublisherNotFoundException, Microsoft.VisualStudio.Services.ServiceHooks.WebApi, Version=14.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a",
"typeKey": "PublisherNotFoundException",
"errorCode": 0,
"eventId": 4501
}
事实上,如果您请求发布商列表,只有一个 ID 为 "tfs"。那里没有 "rm" 发布者。从 "tfs" 发布者请求相同的订阅会产生 "unknown event" 错误。
我是否必须以某种方式启用该发布者?本地 TFS 是否支持它?如果是,从哪个版本开始?
Microsoft 使用支持的版本注释他们的 TFS REST API 文档是否会伤害 Microsoft,就像他们的 API 文档的其余部分一样?
发布者是一种将事件发布到服务挂钩的服务。在 TFS 2015 update2 中,如果您请求发布者列表,您将不会获得带有 "rm" 的发布 ID。暂时不支持TFS2015
另外,其实rm
的资源版本应该是3.0
"resourceVersion": "3.0-preview.1",