Ao executar o comando
curl --verbose -H Accept: application/xml http://localhost:3000/produtos
conforme orientado na aula, recebi o seguinte erro:
* Hostname was NOT found in DNS cache
* Could not resolve host: application
* Closing connection 0
curl: (6) Could not resolve host: application
* Hostname was NOT found in DNS cache
* Trying 127.0.0.1...
* Connected to localhost (127.0.0.1) port 3000 (#1)
> GET /produtos HTTP/1.1
> User-Agent: curl/7.35.0
> Host: localhost:3000
>
< HTTP/1.1 500 Internal Server Error
< X-Powered-By: Express
< Content-Type: text/html; charset=utf-8
< Content-Length: 55
< ETag: W/"37-afZGnBzIS91xMu4QbK0sRQ"
< Date: Thu, 03 Mar 2016 13:06:46 GMT
< Connection: keep-alive
<
* Connection #1 to host localhost left intact
<HTML> Deu problema ao processar a requisição </HTML>
Não consegui identificar o motivo. Agradeço a ajuda. Utilizo o ubuntu 14.04