Troubleshooting - OfficeDev/microsoft-teams-apps-survey GitHub Wiki
The troubleshooting guide lists all known issues and workarounds for the issues.
Summary: On creating a new app, the adaptive card for the app does not get posted on the chat canvas.
Fix: Microsoft is trying to fix the issue. Until an update is released, make sure your tenants does not have a policy which convert multi-tenant AAD apps to single tenant AAD apps. More information on AAD apps can be found here.
2. Deployment of app fails and throws an error of version doesn’t conform to ActionManifest.schema.json
Summary: On trying to deploy the app using the command npm run deploy
, the below error shows
ActionManifest doesn't conform to ActionManifest.schema.json. Errors: String '1.2' does not match regex pattern ^([0-9]|[1-9]+[0-9]*)\.([0-9]|[1-9]+[0-9]*)\.([0-9]|[1-9]+[0-9]*)$
. Path 'version'
Fix: The schema for versioning follows Semantic version 2.0. The convention for version is MAJOR.MINOR.PATCH. Example of a version number is 1.1.2.
3. Deployment of app fails and throws an error of URL format doesn’t conform to ActionManifest.schema.json
Summary: On trying to deploy the app using the command npm run deploy, the below error shows
ActionManifest doesn't conform to ActionManifest.schema.json. Errors: String 'www.contoso.com' does not validate against format 'uri'. Path 'developer.privacyUrl'.
Fix: Each URL must have a proper http or https scheme, like - https://www.contoso.com
If New-ActionPackage
command fails due to PowerShell module installation related errors then try following steps to acquire the AccessToken manually. You can provide this AccessToken as input parameter to the New-ActionPackage
or Update-ActionPackage
command.
-
Open following url in browser and login to your AAD account when prompted.
-
After successful login, browser address bar will contain url similar to below screenshot.
Url in your browser address bar has following format :
http://localhost:22222/ActionsPlatform#access_token=<ACCESS_TOKEN>&token_type=Bearer&expires_in=3598&scope=https%3a%2f%2factions.office365.com%2fActionPackage.ReadWrite.All&session_state=...
Copy the access_token value from this url.
-
Set the AccessToken copied in above step as AccessToken Parameter in
New-ActionPackage
orUpdate-ActionPackage
command as follows.New-ActionPackage -PackageZipFilePath .\..\bundle\MSTeamsApp.zip -AccessToken "<AccessTokenCopiedFromAboveUrl>"