Hi,

I'm having problem with restify.

*My Code:*

var restify = require("restify");
var port = process.env.port || 8080;

function send(req, res, next) {
res.send('hello ' + req.params.name);
return next();
}

var server = restify.createServer();
server.post('/hello', function create(req, res, next) {
res.send(201, Math.random().toString(36).substr(3, 8));
return next();
});
 
server.put('/hello', send);
server.get('/hello/:name', send);
  
server.head('/hello/:name', send);
server.del('hello/:name', function rm(req, res, next) {
res.send(204);
return next();
});
 
 server.listen(port, function() {
console.log('%s listening at %s', server.name, server.url);
});

*URL:*

http://leagues.azurewebsites.net/hello/test

*Error result:*

iisnode encountered an error when processing the request.

HRESULT: 0x6d
HTTP status: 500
HTTP reason: Internal Server Error

You are receiving this HTTP 200 response because 
system.webServer/iisnode/@devErrorsEnabled<https://github.com/tjanczuk/iisnode/blob/master/src/samples/configuration/web.config>configuration
 setting is 'true'.

In addition to the log of stdout and stderr of the node.exe process, 
consider using 
debugging<http://tomasz.janczuk.org/2011/11/debug-nodejs-applications-on-windows.html>and
 ETW 
traces<http://tomasz.janczuk.org/2011/09/using-event-tracing-for-windows-to.html>to
 further diagnose the problem.

The last 64k of the output generated by the node.exe process to stdout and 
stderr is shown below:

restify listening at http://undefined:undefined
hello
test
hello
test
hello
test
hello
test
hello
test
hello
test
hello
test
hello
test
hello
test
hello
test
hello
test
hello
test
hello
test
hello
test
hello
test
hello
test


I would also like to know if there's a conflict between Restify and node-server?


Thanks,

-- 
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