Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

a silly question about how to add a new handle to a request #110

Open
dickinchina opened this Issue · 2 comments

2 participants

@dickinchina

i simply add the follow code into the index.html from the demo. i'm sure it could run into this function.
function send(){
pomelo.request("connector.enteyHandler.send",{msg:'hello'},function(response){
var result = response.data;
console.log('result:');
})};
and also add some codes in the entryHandler.js:
Handler.prototype.send = function(msg,session,next){
next(null, {code:200});
};

then after i click a button and the function send() invoke successfully, but the callback function did not be called.

i check the log files and it tells me the server failed to find the handle,

log:
"/node_modules/pomelo/lib/server/server.js - no default error handler to resolve unknown exception. Error: fail to find handler for connector.enteyHandler.send"
i known i must miss some important informations...please help to tell me what's the wrong point to add a new handle function?thx!

@py8765
Owner

maybe the spelling mistake, connector.enteyHandler.send --> connector.entryHandler.send

@dickinchina

sorry, it's my fault...
" /node_modules/pomelo/lib/server/server.js - no default error handler to resolve unknown exception. Error: fail to find handler for connector.entryHandler.send"

the issue is not the spelling mistake.
maybe i need to have a deep understanding of pomelo later.
thanks for your quick answer.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.