Strapi: error (hook:mongoose) takes too long to load

Created on 28 May 2019  路  3Comments  路  Source: strapi/strapi

Informations

  • Node.js version: 10.15.3
  • NPM version: 6.4.1
  • Strapi version: 3.0.0-alpha.26.2
  • Database: MongoDB
  • Operating system: Windows 10
$ strapi start
[2019-05-28T02:48:33.321Z] debug 鉀旓笍 Server wasn't able to start properly.
[2019-05-28T02:48:33.327Z] error (hook:mongoose) takes too long to load
(hook:mongoose) takes too long to load
{
  "defaultConnection": "default",
  "connections": {
    "default": {
      "connector": "strapi-hook-mongoose",
      "settings": {
        "client": "mongo",
        "host": "flutter-ecommerce-raatb.mongodb.net",
        "port": 27017,
        "database": "server",
        "username": "AShop",
        "password": "rashidul",
        "srv": true
      },
      "options": {
        "ssl": true
      }
    }
  }
}

or

{
  "defaultConnection": "default",
  "connections": {
    "default": {
      "connector": "strapi-hook-mongoose",
      "settings": {
        "client": "mongo",
        "host": "@flutter-ecommerce-raatb.mongodb.net",
        "port": 27017,
        "database": "server",
        "username": "AShop",
        "password": "rashidul",
        "srv": true
      },
      "options": {
        "ssl": true
      }
    }
  }
}
help wanted

Most helpful comment

Hello!

If you database connection is a little bit to long this error message can happen.
You have to update the timeout value in ./config/hook.json.

All 3 comments

@Rashidul420222 In the future please give a fairly self explanatory title, please use code blocks, and please follow the bug report template. I have edited your original post.

Hello!

If you database connection is a little bit to long this error message can happen.
You have to update the timeout value in ./config/hook.json.

Hello,

I've found it helps to run strapi start then strapi develop

Was this page helpful?
0 / 5 - 0 ratings

Related issues

denislutz picture denislutz  路  3Comments

OrestTs picture OrestTs  路  3Comments

peeomid picture peeomid  路  3Comments

monkibraum picture monkibraum  路  3Comments

rahilwazir picture rahilwazir  路  3Comments