Hi mscdex,

Thanks for the reply.

I tried this code "  console.log('net.Server.address() === ' 
+ ('util').inspect(server.server.address()));  " from you and there's no 
value showing on the page. I also noticed that the azure needs to start and 
stop sometimes for the changes to take effect. My problem about restify 
wasn't really a problem maybe the server just need to start/stop that time. 

My current problem now is this statement "sql.query(conn_str, "SELECT * 
FROM RESULT WHERE GameID = 1", function(err, results) {});" in a required 
file(module). In this required file I have "var sql = 
require('node-sqlserver'); for SQL server and var conn_str = "my SQL 
driver" that results an error(below).

http.js:600
    throw new TypeError('first argument must be a string or Buffer');
          ^
TypeError: first argument must be a string or Buffer
    at ServerResponse.write (http.js:600:11)
    at Server.<anonymous> 
(C:\DWASFiles\Sites\leagues\VirtualDirectory0\site\wwwroot\server.js:34:6)
    at Server.emit (events.js:70:17)
    at HTTPParser.onIncoming (http.js:1572:12)
    at HTTPParser.parserOnHeadersComplete [as onHeadersComplete] (http.js:91:29)
    at Socket.ondata (http.js:1468:22)
    at Pipe.onread (net.js:374:27)


Thanks,


On Wednesday, August 1, 2012 5:05:42 AM UTC+8, mscdex wrote:
>
> On Jul 31, 1:33 pm, almarjin <[email protected]> wrote: 
> > console.log('%s listening at %s', server.name, server.url); 
> > [...] 
> > restify listening at http://undefined:undefined 
>
> It's not server.name that is undefined (it's "restify"), but the 
> content of server.url. I ran your sample code and it showed up for me 
> on my Windows machine on node 0.8.4. 
>
> What shows up in your log if you insert this statement right after the 
> other console.log statement from above?: 
> console.log('net.Server.address() === ' + 
> require('util').inspect(server.server.address())); 
>
> Also, what node version is being used here? 
>

-- 
Job Board: http://jobs.nodejs.org/
Posting guidelines: 
https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
You received this message because you are subscribed to the Google
Groups "nodejs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en

Reply via email to