Comments (10)
Which version of moleculer-web do you have?
from moleculer-web.
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.
Try to uninstall and install moleculer-web to have the latest version 0.8.1
from moleculer-web.
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.
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.
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.
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.
A workaround can be to disable timeout while developing because currently, I don't know, how I will fix it.
from moleculer-web.
Ok, thanks for the follow up @icebob
from moleculer-web.
Unfortunately I can't fix it.
from moleculer-web.
Related Issues (20)
- Could not handle the request when the request come with files and data in multipart HOT 2
- Sometime the list of REST api is missing some functions HOT 1
- multipartHandler throws unhandled error if payload is too large
- CORS Preflight Issue HOT 2
- Response headers affectation HOT 2
- Missing interface when upload file. HOT 2
- resetTime should accept function
- Undefined `actions` property in `/api/~node/services?withActions=true` causes empty REST API page HOT 1
- Route-level `mergeParams` doesn't exist for auto aliases HOT 1
- Cannot skip route with middleware HOT 1
- Improve routes priorization HOT 1
- RateLimit didn't check if trusted proxy send the header x-forwarded-for HOT 4
- REST shortcut doesn't handle action object correctly
- Typescript error: import { IParseOptions } from 'qs'
- Can we get an official interface for ctx.meta.$ fields available in moleculer-web?
- Routes with autoAliases not considered for started HOT 1
- Allow define action type in auto aliases (rest action param) HOT 2
- What is the benefit of using ctx.meta.$location & ctx.meta.$responseType vs just setting via ctx.meta.$responseHeaders? HOT 4
- update request body value in onBeforeCall hook not working HOT 1
- Transporter cannot connect to a redis server instance in a docker-compose stack
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from moleculer-web.