为什么会出错
`Error: The hook 'orm' is taking too long to load.`
它经常发生在扬帆的时候?即使orm timeout已经设置为100000,但有时仍会发生(并不总是)。通常情况下,它发生在PC重新启动和帆运行的第一次。
它也经常发生在云服务器和我的笔记本电脑旁边的个人电脑。所以它发生在我被测试的环境中:
Windows 8.1 (PC和膝上型计算机)和Linux (Ubuntu 14.04)
node.js版本0.10.38
帆版0.11
MongoDB第3版
完整的错误报告如下
error: Err
我正在尝试将初始数据从引导程序(sailsv1.0.2)中加载到sails应用程序中,但是它失败了,出现了以下错误:
error: UsageError: Invalid initial data for new record.
Details:
Missing value for required attribute `agentType`. Expected a string, but instead, got: undefined
型号:
module.exports = {
attributes: {
agentType: {
type: 'str