无法启动“新Web服务体验"; [英] Unable to launch "New Web Services Experience"
问题描述
我已经为AML实验创建了一个Web服务.当我尝试启动新Web服务体验"时,从它,我面临以下错误:
I have created a web service for an AML experiment. When I try to launch the "New Web Services Experience" from it, I'm facing the below error:
"错误消息:无法授权该请求.确保请求具有带标题令牌的Authorization标头,格式为"Authorization:Bearer [token]".
"Error Message: Could not authorize the request. Make sure the request has an Authorization header with a bearer token, of the form "Authorization: Bearer [token]"."
请帮助我.
谢谢
Amar
推荐答案
很抱歉看到您遭受此问题困扰.请参考以下文档的代码示例部分:
Sorry to see you are suffering from this issue. Please refer to the code sample part of the following document:
https://docs.microsoft.com/zh-CN/azure/machine-learning/studio/consume-web-services#connect
https://docs.microsoft.com/en-us/azure/machine-learning/studio/consume-web-services#connect
Python代码示例:
example of Python code:
url = api_key = headers = { 'application/json' 授权" 'Bearer '
# Replace this with the URI and API Key for your web service url = '<your-api-uri>' api_key = '<your-api-key>' headers = {'Content-Type':'application/json', 'Authorization':('Bearer '+ api_key)}
关于
Yutong
这篇关于无法启动“新Web服务体验";的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!