[英]Hello World sample: "Something went wrong" when installing/testing
I tried to get the example from https://docs.microsoft.com/en-us/microsoftteams/platform/get-started/get-started-dotnet to run.我试图从https://docs.microsoft.com/en-us/microsoftteams/platform/get-started/get-started-dotnet获取示例以运行。 I successfully built and published (on Azure) the webapp.
我成功构建并发布了(在 Azure 上)webapp。 Then I tried - manually editing the json file in the visual studio solution similarly to what the docs said, and then import the resulting zip in App Studio - adding the App directly in App Studio through the manifest editor (this works, but it fails when installing/testing it)
然后我尝试 - 在 Visual Studio 解决方案中手动编辑 json 文件,类似于文档所说的,然后在 App Studio 中导入生成的 zip - 通过清单编辑器直接在 App Studio 中添加应用程序(这有效,但它失败时安装/测试它)
Both give me an error without any more info "something went wrong".两者都给我一个错误,没有更多信息“出了点问题”。
Any way to actually figure out what I did wrong (if anything)?有什么办法可以真正弄清楚我做错了什么(如果有的话)?
Either way, maybe you guys can figure it out from the json file's contents:无论哪种方式,也许你们可以从json文件的内容中弄清楚:
{
"$schema": "https://statics.teams.microsoft.com/sdk/v1.0/manifest/MicrosoftTeams.schema.json",
"manifestVersion": "1.0",
"version": "1.0.0",
"id": " 1CC58D17-1E95-443C-958F-E1F14D4CA3B4",
"packageName": "com.contoso.helloworld",
"developer": {
"name": "Contoso",
"websiteUrl": "https://www.microsoft.com",
"privacyUrl": "https://www.microsoft.com/privacy",
"termsOfUseUrl": "https://www.microsoft.com/termsofuse"
},
"name": {
"short": "Hello World",
"full": "Hello World App for Microsoft Teams"
},
"description": {
"short": "Hello World App for Microsoft Teams",
"full": "This sample app provides a very simple app for Microsoft Teams. You can extend this to add more content and capabilities."
},
"icons": {
"outline": "contoso20x20.png",
"color": "contoso96x96.png"
},
"accentColor": "#60A18E",
"staticTabs": [
{
"entityId": "com.contoso.helloworld.hellotab",
"name": "Hello Tab",
"contentUrl": "https://microsoftteamssampleshelloworldweb20181022032046.azurewebsites.net/hello",
"scopes": [
"personal"
]
}
],
"configurableTabs": [
{
"configurationUrl": "https://microsoftteamssampleshelloworldweb20181022032046.azurewebsites.net/configure",
"canUpdateConfiguration": true,
"scopes": [
"team"
]
}
],
"bots": [
{
"botId": "00000000-0000-0000-0000-000000000000",
"needsChannelSelector": false,
"isNotificationOnly": false,
"scopes": [
"team",
"personal"
]
}
],
"composeExtensions": [
{
"botId": "00000000-0000-0000-0000-000000000000",
"scopes": [
"personal",
"team"
],
"commands": [
{
"id": "getRandomText",
"description": "Gets some random text and images that you can insert in messages for fun.",
"title": "Get some random text for fun",
"initialRun": true,
"parameters": [
{
"name": "cardTitle",
"description": "Card title to use",
"title": "Card title"
}
]
}
]
}
],
"permissions": [],
"validDomains": []
}
Any suggestions?有什么建议?
There is a whitespace in your app Id in shared manifes:共享清单中的应用程序 ID 中有一个空格:
"id": " 1CC58D17-1E95-443C-958F-E1F14D4CA3B4"
Could you please remove it and try and let us know if it works?您能否将其删除并尝试让我们知道它是否有效? Also you can remove bots and composeExtensions section if you want.
如果需要,您也可以删除机器人和 composeExtensions 部分。
I can't comment yet (not enough reputation points) but could you go through the instructions again?我还不能评论(没有足够的声望点)但是你能再看一遍说明吗? I believe something went wrong with either the GUID, or one of the URL's.
我相信 GUID 或 URL 之一出了问题。 The instructions also advise to use ngrok, which is usefull for debugging.
说明还建议使用 ngrok,这对调试很有用。 If you can't find a clear error message, i advise you follow those instructions.
如果您找不到明确的错误消息,我建议您按照这些说明进行操作。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.