-
Notifications
You must be signed in to change notification settings - Fork 349
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 on parsing cookies #234
Comments
@YerkoPalma I'm also facing this issue. Were you able to find a fix to this error? |
Same here. Any suggestions for how to potentially fix it? |
I have put in a PR to help avoid this issue (bmeck/node-cookiejar#34). There are a couple of obstacles which prevent my PR from solving your problem. First, I'm not a maintainer of the https://github.com/bmeck/node-cookiejar project, so I must wait for my fix to get approved and merged. Second, there are still the https://github.com/visionmedia/superagent and https://github.com/matthewmueller/x-ray projects which will need to be updated after to include the fixed version of https://github.com/bmeck/node-cookiejar. The root cause of this issue is the site in the example (http://www.senado.cl/appsenado/index.php?mo=senadores&ac=listado) is sending back invalid cookies. There are no values in the cookie, just cookie metadata. Below are the headers returned. Notice how the Set-Cookie header has no value, only the HttpOnly and Secure flags. It might be faster to contact the webmaster of the site and tell them that their code is sending invalid cookies. You can read more about the standards for cookies here: https://developer.mozilla.org/ru/docs/Web/HTTP/Headers/Set-Cookie#Directives.
|
Subject of the issue
x-ray
is failling when parsing cookiesYour environment
Steps to reproduce
I run this code
Expected behaviour
It should have logged
Actual behaviour
It throws
The text was updated successfully, but these errors were encountered: