Closed mduleone closed 9 years ago
In any case all your permutations pass on Windows node v0.10.30. not sure what is up with verify not being unable to PUT.
Every permutation I tried resulted in the same output as above. I wasn't sure if they were possibly causing the verification program to error after my code executed, but I wasn't able to "verify" after exercise 5 because of this problem. Just a thought... maybe the verification program is making the solution try to listen on the same port as the user code, and it's failing because of that?
Anyway, I compared my code against what the solution was doing and determined that the output I was getting was the correct output. Aside from that hiccup, and a couple grammar issues, this was an awesome tutorial! Thank you for putting it together!
I ran into this today, and it seems that the problem in my situation was a hung node process still listening on the port the solution uses, 3001.
I imagine there was a problem with expressworks at some point that caused this, as I didn't pass 3001 to any of my invocations.
I ran into this same problem, and killall node
worked to fix it.
I ran the verification of my solution twice, once thru sudo and once without. Both times, my solution seemed to work, but the verification step failed.
My code (slightly different than the provided solution, but the same in spirit):
I tried removing
"use strict"
as well as changingres.end(date)
tores.send(date)
to see if either was causing the verification script to fail to execute, but neither step resolved anything.