pnp / generator-teams

A Yeoman Generator for Microsoft Teams
https://pnp.github.io/generator-teams
MIT License
424 stars 111 forks source link

Bug report: Missing error message error #381

Open manmat opened 8 months ago

manmat commented 8 months ago

Description

When I am trying to run gulp tenant:deploy I get the following error message:

[20:28:50] Found additional Yo Teams plugin: yoteams-deploy
[20:28:50] Using gulpfile ~/projects/teams-yo/gulpfile.js
[20:28:50] Starting 'tenant:deploy'...
[20:28:50] Starting 'manifest'...
[20:28:50] Starting 'validate-manifest'...
[20:28:50] Starting 'generateManifests'...
[20:28:50] Unable to find "1.15" amongst supported schemas. Use --no-schema-validation to skip validation of schema.
[20:28:50] Finished 'generateManifests' after 32 ms
[20:28:50] Starting 'validateSchemas'...
[20:28:50] Finished 'validateSchemas' after 2.35 ms
[20:28:50] Finished 'validate-manifest' after 36 ms
[20:28:50] Starting 'zipTask'...
[20:28:50] Finished 'zipTask' after 1.49 ms
[20:28:50] Finished 'manifest' after 38 ms
[20:28:50] Starting 'tenant:publish'...
[20:28:50] Starting 'tenant:login'...
[20:28:50] 'tenant:login' errored after 202 ms
[20:28:50] Error: Missing error message
    at new PluginError (/Users/mani/projects/teams-yo/node_modules/plugin-error/index.js:64:11)
    at /Users/mani/projects/teams-yo/node_modules/yoteams-deploy/dist/deployTask.js:71:20
    at Socket.<anonymous> (/Users/mani/projects/teams-yo/node_modules/yoteams-deploy/dist/execute.js:24:9)
    at Socket.emit (node:events:519:28)
    at Socket.emit (node:domain:551:15)
    at addChunk (node:internal/streams/readable:559:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:510:3)
    at Readable.push (node:internal/streams/readable:390:5)
    at Pipe.onStreamRead (node:internal/stream_base_commons:190:23)
    at Pipe.callbackTrampoline (node:internal/async_hooks:130:17)
[20:28:50] 'tenant:publish' errored after 202 ms
[20:28:50] 'tenant:deploy' errored after 244 ms

Steps to reproduce

This is a freshly generated project, I did run gulp build and gulp manifest. Here is my .env:

# The public domain name of where you host your application
PUBLIC_HOSTNAME=f21d-2a02-aa1-1028-481d-6d7c-6673-925-3323.ngrok-free.app

# Id of the Microsoft Teams application
APPLICATION_ID=41b294d0-bf9c-11ee-825d-1530dfa22a10
# Package name of the Microsoft Teams application
PACKAGE_NAME=sendfeedbackrequests

# App Id and App Password for the Bot Framework bot
MICROSOFT_APP_TID=[AZURE_TENANT_ID]
MICROSOFT_APP_ID=[AZURE_CLIENT_ID]
MICROSOFT_APP_PASSWORD=[AZURE_CLIENT_SECRET]

# Port for local debugging
PORT=3007

# Security token for the default outgoing webhook
SECURITY_TOKEN=

# ID of the Outlook Connector
CONNECTOR_ID=

# Application Insights instrumentation key
APPINSIGHTS_INSTRUMENTATIONKEY=

# NGROK configuration for development
# NGROK authentication token (leave empty for anonymous)
NGROK_AUTH=[AUTH_TOKEN]
# NGROK sub domain. ex "myapp" or  (leave empty for random)
NGROK_SUBDOMAIN=
# NGROK region. (us, eu, au, ap - default is us)
NGROK_REGION=

# Debug settings, default logging "msteams"
DEBUG=msteams

Expected results

The teams bot should be deployed so that I can test it locally.

Actual results

I get an error message described above.

Project you experience issues with

yoteams-deploy

generator version

4.1.0

build tools version

1.8.0

nodejs version

v21.6.1

npm version

10.2.4

Operating system (environment)

macOS

Additional Info

No response