GithubHelp home page GithubHelp logo

Comments (10)

molobala avatar molobala commented on May 27, 2024

Which version of moleculer-web do you have?

from moleculer-web.

tcaraccia avatar tcaraccia commented on May 27, 2024

Sorry, I should have specified that before.

    "moleculer": "^0.13.1",
    "moleculer-db": "^0.7.5",
    "moleculer-db-adapter-mongoose": "^0.7.1",
    "moleculer-web": "^0.8.0"

Node 8.4.0

from moleculer-web.

molobala avatar molobala commented on May 27, 2024

Try to uninstall and install moleculer-web to have the latest version 0.8.1

from moleculer-web.

tcaraccia avatar tcaraccia commented on May 27, 2024

Thanks!
Same thing.

[2018-08-16T15:21:15.104Z] ERROR desh-12781/WWW:    Request error! RequestTimeoutError : Request is timed out when call 'www.rest' action on 'desh-12781' node.
 RequestTimeoutError: Request is timed out when call 'www.rest' action on 'desh-12781' node.
    at p.timeout.catch.err (/home/sarodspirit/Development/mf-back/node_modules/moleculer/src/middlewares/timeout.js:33:13)
    at tryCatcher (/home/sarodspirit/Development/mf-back/node_modules/bluebird/js/release/util.js:16:23)
    at Promise._settlePromiseFromHandler (/home/sarodspirit/Development/mf-back/node_modules/bluebird/js/release/promise.js:512:31)
    at Promise._settlePromise (/home/sarodspirit/Development/mf-back/node_modules/bluebird/js/release/promise.js:569:18)
    at Promise._settlePromise0 (/home/sarodspirit/Development/mf-back/node_modules/bluebird/js/release/promise.js:614:10)
    at Promise._settlePromises (/home/sarodspirit/Development/mf-back/node_modules/bluebird/js/release/promise.js:689:18)
    at Async._drainQueue (/home/sarodspirit/Development/mf-back/node_modules/bluebird/js/release/async.js:133:16)
    at Async._drainQueues (/home/sarodspirit/Development/mf-back/node_modules/bluebird/js/release/async.js:143:10)
    at Immediate.Async.drainQueues (/home/sarodspirit/Development/mf-back/node_modules/bluebird/js/release/async.js:17:14)
    at runCallback (timers.js:781:20)
    at tryOnImmediate (timers.js:743:5)
    at processImmediate [as _immediateCallback] (timers.js:714:5)
Data: { action: 'www.rest', nodeID: 'desh-12781' }

package-lock.json

    "moleculer-web": {
      "version": "0.8.1",
      "resolved": "https://registry.npmjs.org/moleculer-web/-/moleculer-web-0.8.1.tgz",
      "integrity": "sha512-ZbcvR+PoUeTBdibqFkMCPNIRKpECB9RRoYd+3GJQEC8FaoYNnzWaSJ15qtDaV/4U/3cKQMCRskdUflhIUCQ2PA==",
      "requires": {
        "body-parser": "1.18.3",
        "chalk": "2.4.1",
        "es6-error": "4.1.1",
        "isstream": "0.1.2",
        "lodash": "4.17.10",
        "path-to-regexp": "2.2.1",
        "qs": "6.5.2",
        "serve-static": "1.13.2"
      }
    },

from moleculer-web.

icebob avatar icebob commented on May 27, 2024

It's weird because this problem was fixed in 0.8.1.
Could you try the vue example in this repo? Here: https://github.com/moleculerjs/moleculer-web/tree/master/examples/webpack-vue

If it's working and your's not and you don't find the problem, please make a reproduce repo and I will check it.

from moleculer-web.

tcaraccia avatar tcaraccia commented on May 27, 2024

I still can't find the issue.
Here is the reproduce repo
Vue service is loaded in services/www.service.js
Thanks very much!

from moleculer-web.

icebob avatar icebob commented on May 27, 2024

Hmm, interesting. The problem is with /__webpack_hmr because webpack-hot-middleware doesn't close this response, it's a keep-alive request, so this request will be timed out.
The same code "works" in moleculer-web examples because request timeout is not configured.

from moleculer-web.

icebob avatar icebob commented on May 27, 2024

A workaround can be to disable timeout while developing because currently, I don't know, how I will fix it.

from moleculer-web.

tcaraccia avatar tcaraccia commented on May 27, 2024

Ok, thanks for the follow up @icebob

from moleculer-web.

icebob avatar icebob commented on May 27, 2024

Unfortunately I can't fix it.

from moleculer-web.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.