错误:Twilio和Meteor需要用户名

时间:2019-04-10 22:07:38

标签: react-native meteor twilio dotenv

我正在尝试运行一个使用Twilio的React Native应用,但是我一直收到错误消息,要求输入用户名。我已经有一个带有ACCOUNT_SID和其他环境变量的.env文件,但仍然遇到问题。

 W20190410-16:48:24.420(-5)? (STDERR) C:\Users\Jacob\AppData\Local\.meteor\packages\meteor-tool\1.5.4_2\mt-os.windows.x86_32\dev_bundle\server-lib\node_modules\fibers\future.js:280
[METEOR] W20190410-16:48:24.486(-5)? (STDERR)                                           throw(ex);
[METEOR] W20190410-16:48:24.487(-5)? (STDERR)                                           ^
[METEOR] W20190410-16:48:24.488(-5)? (STDERR)
[METEOR] W20190410-16:48:24.489(-5)? (STDERR) Error: username is required
[METEOR] W20190410-16:48:24.490(-5)? (STDERR)     at new Twilio (C:\Users\Jacob\kalleo\kalleo-master\kalleo-app-server\node_modules\twilio\lib\rest\Twilio.js:141:11)
[METEOR] W20190410-16:48:24.492(-5)? (STDERR)     at new initializer (C:\Users\Jacob\kalleo\kalleo-master\kalleo-app-server\node_modules\twilio\lib\index.js:9:10)
[METEOR] W20190410-16:48:24.493(-5)? (STDERR)     at meteorInstall.imports.server.phone.twilio.client.js (imports/server/phone/twilio/client.js:4:22)
[METEOR] W20190410-16:48:24.493(-5)? (STDERR)     at fileEvaluate (packages\modules-runtime.js:333:9)
[METEOR] W20190410-16:48:24.494(-5)? (STDERR)     at require (packages\modules-runtime.js:228:16)
[METEOR] W20190410-16:48:24.494(-5)? (STDERR)     at meteorInstall.imports.server.phone.twilio.notify.services.js (imports/server/phone/twilio/notify/services.js:1:31)
[METEOR] W20190410-16:48:24.495(-5)? (STDERR)     at fileEvaluate (packages\modules-runtime.js:333:9)
[METEOR] W20190410-16:48:24.496(-5)? (STDERR)     at require (packages\modules-runtime.js:228:16)
[METEOR] W20190410-16:48:24.496(-5)? (STDERR)     at meteorInstall.imports.server.phone.twilio.notify.sendPushNotification.js (imports/server/phone/twilio/notify/sendPushNotification.js:1:92)
[METEOR] W20190410-16:48:24.496(-5)? (STDERR)     at fileEvaluate (packages\modules-runtime.js:333:9)
[METEOR] W20190410-16:48:24.497(-5)? (STDERR)     at require (packages\modules-runtime.js:228:16)
[METEOR] W20190410-16:48:24.498(-5)? (STDERR)     at meteorInstall.imports.server.phone.routes.call-status-changes.js (imports/server/phone/routes/call-status-changes.js:1:39)
[METEOR] W20190410-16:48:24.499(-5)? (STDERR)     at fileEvaluate (packages\modules-runtime.js:333:9)
[METEOR] W20190410-16:48:24.501(-5)? (STDERR)     at require (packages\modules-runtime.js:228:16)
[METEOR] W20190410-16:48:24.501(-5)? (STDERR)     at meteorInstall.imports.server.phone.configureRoutes.js (imports/server/phone/configureRoutes.js:1:602)
[METEOR] W20190410-16:48:24.502(-5)? (STDERR)     at fileEvaluate (packages\modules-runtime.js:333:9)
[METEOR] W20190410-16:48:24.504(-5)? (STDERR)     at require (packages\modules-runtime.js:228:16)
[METEOR] W20190410-16:48:24.504(-5)? (STDERR)     at meteorInstall.imports.server.phone.index.js (imports/server/phone/index.js:1:14)
[METEOR] W20190410-16:48:24.506(-5)? (STDERR)     at fileEvaluate (packages\modules-runtime.js:333:9)
[METEOR] W20190410-16:48:24.507(-5)? (STDERR)     at require (packages\modules-runtime.js:228:16)
[METEOR] W20190410-16:48:24.508(-5)? (STDERR)     at meteorInstall.imports.server.graphql.scalars.PhoneNumber.js (imports/server/graphql/scalars/PhoneNumber.js:1:299)
[METEOR] W20190410-16:48:24.509(-5)? (STDERR)     at fileEvaluate (packages\modules-runtime.js:333:9)
[METEOR] => Exited with code: 1

有人知道为什么Meteor不读取我的.env文件吗?

0 个答案:

没有答案