簡體   English   中英

在將MessageFormat添加到Meteor應用后,調用方法'headersToken'時出錯

[英]Error invoking Method 'headersToken' after installing adding MessageFormat to Meteor app

meteor add gadicohen:messageformat安裝MessageFormat后, meteor add gadicohen:messageformat我在瀏覽器控制台中收到此錯誤:

Error invoking Method 'headersToken': Internal server error [500]

終端中的完整錯誤日志:

=> App running at: http://localhost:3000/
I20160104-14:23:58.795(1)? Exception while invoking method 'headersToken' Error: Did not check() all arguments during call to 'headersToken'
I20160104-14:23:58.797(1)?     at [object Object]._.extend.throwUnlessAllArgumentsHaveBeenChecked (packages/check/match.js:411:1)
I20160104-14:23:58.797(1)?     at Object.Match._failIfArgumentsAreNotAllChecked (packages/check/match.js:106:1)
I20160104-14:23:58.797(1)?     at maybeAuditArgumentChecks (livedata_server.js:1695:18)
I20160104-14:23:58.797(1)?     at livedata_server.js:708:19
I20160104-14:23:58.797(1)?     at [object Object]._.extend.withValue (packages/meteor/dynamics_nodejs.js:56:1)
I20160104-14:23:58.797(1)?     at livedata_server.js:706:40
I20160104-14:23:58.798(1)?     at [object Object]._.extend.withValue (packages/meteor/dynamics_nodejs.js:56:1)
I20160104-14:23:58.798(1)?     at livedata_server.js:704:46
I20160104-14:23:58.798(1)?     at tryCallTwo (/Users/psychomachine/.meteor/packages/promise/.0.5.1.8idxpg++os+web.browser+web.cordova/npm/node_modules/meteor-promise/node_modules/promise/lib/core.js:45:5)
I20160104-14:23:58.798(1)?     at doResolve (/Users/psychomachine/.meteor/packages/promise/.0.5.1.8idxpg++os+web.browser+web.cordova/npm/node_modules/meteor-promise/node_modules/promise/lib/core.js:171:13)

我是Meteor的新手,到目前為止一切都很順利,但是由於出現此錯誤,我不確定如何繼續。 我更喜歡使用MessageFormat而不是其他i18軟件包,因為MessageFormat附帶了用於翻譯的GUI。

任何提示將不勝感激。

最好的Tench

我距離專家還很遠...但是馬上就可以了-錯誤的第一行-check()...那是很有信息的。

某些東西被推送到headersToken方法,並且它正在嘗試向集合中寫入內容-但是在寫入之前,它並不是首先“檢查”這些參數。

如果您關閉了檢查功能,這將通過。 我在嘗試使用ServerSessions時遇到了類似的情況,最終需要創建自己的程序包,其中包括寫入檢查。

https://github.com/tewksbum/meteor-server-session

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM