Hi Gerald,
Could that '\u0000\u0000' be part of an asynchronous response to some previous command?
Otherwise it looks fine:
-> '\u0000 () \u0000' // create query returning empty sequence
<- '1\u0000 \u0000' //The 1 is the query handle.
-> '\u0004 1 \u0000' //Execute the query with handle 1
<- '\u0000 \u0000' // no result no error
Are you using https://npmjs.org/package/basex? If you can raise any problems or questions on github and I will take a look.
/Andy
So the driver sends a query for something that should give no results:'\u0000/somethingNotThere\u0000'It then receives, to my surprise:
'\u0000\u0000'followed by:'1\u0000\u0000'then sends:'\u00041\u0000'and receives again:'\u0000\u0000'Are these proper responses.. is the driver misunderstanding them?On Tue, Jul 23, 2013 at 1:41 PM, Gerald de Jong <gerald@delving.eu> wrote:--Woops, somehow sent before I intended. Just a sec.On Tue, Jul 23, 2013 at 1:40 PM, Gerald de Jong <gerald@delving.eu> wrote:
I'm trying to quickly prototype a REST server which uses BaseX for persistence using NodeJS.
I'm able to create a session, add a document, query that document, and then close the session. Fine.But when I create a query that should return no results, it seems the NodeJS module for BaseX I'm using seems to completely misunderstand the result and never execute the callback.I looked at the protocol spec http://docs.basex.org/wiki/Server_Protocol but it doesn't seem to give back what is specified here. I need a sanity check.The driver sends this:
Delving BV, Vasteland 8, Rotterdam
http://www.delving.eu
http://twitter.com/fluxe
skype: beautifulcode
+31629339805
_______________________________________________
BaseX-Talk mailing list
BaseX-Talk@mailman.uni-konstanz.de
https://mailman.uni-konstanz.de/mailman/listinfo/basex-talk