-
-
Notifications
You must be signed in to change notification settings - Fork 16.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TypeError: res.set is not a function #3037
Comments
Can you provide more context or a sample reproduction? Are you sure that it's a response argument in the first position? |
I cannot provide a sample reproduction, for I don't know what the IDS/IPS is sending to my site. (Or maybe you may want I run node with special parameters (I don't know how) that will log function agument values?) |
I added the line I don't know if it could help... Maybe you need the |
@noopole can you share the details of the request which results in |
@noopole Thanks for the link. It's definitely the response object, but it looks like a raw node.js response object and not one wrapped by Express.js. Is it possible where you're using this is using raw req/res objects and not Express? |
@hacksparrow ok I will log It's either the static or EDIT 21/7/2016 Sorry for the confusion: I wrote OPTIONS + HEAD but actually I was meaning GET + HEAD, the |
Thanks. I can't seem to replicate it locally or see how the script could cause you issues. Have you found a way to replicate it yourself. Here's some logs from my testing:
Is there something else in your script because looking at your logs you have a 21440 byte successful response for |
I cannot replicate it myself so I will log the The successful 21440 bytes GET is the If the issue occurs again today I will open a ticket to my IT helpdesk to ask for the details of the attack (with no hope, it's a big, worldwide company...). Last option, I could install a sniffer on my server to catch all the received requests but I'm not a network specialist. |
It seems that the HTTP request that makes it happen starts like this: Attached is the log for REQ and RES: |
The request |
My server is scanned by the security team of my company to detect secutity flaws, and I've got a strange error in my console:
Here is the logged stack:
I'm using express 4.14.0
Is it normal that such a function is not defined?
Code around line 626 is:
The text was updated successfully, but these errors were encountered: