Skip to content
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

Error while running: Can not load response cookies #3

Open
potterthecop opened this issue Feb 12, 2022 · 6 comments
Open

Error while running: Can not load response cookies #3

potterthecop opened this issue Feb 12, 2022 · 6 comments

Comments

@potterthecop
Copy link

Hello!
Do you know why i'm getting this error?

WARNING:aiohttp.client:Can not load response cookies: Illegal key 'httponly,msToken'

I installed Anaconda, created a new env and Maltego CE.

Thanks!

@soxoj
Copy link
Owner

soxoj commented Feb 15, 2022

Sorry, looks like it is a problem with the aiohttp cookie loader, so I am unable to help with it.
Can only advise you make a try to remove an illegal key (msToken, I suppose) and load cookie again

@potterthecop
Copy link
Author

Thanks for the response @soxoj but can you guide me even further?
Where can i find this msToken and where can i find these cookies?
I checked the code regarding aiohttp but i didn't know where to look..

@soxoj
Copy link
Owner

soxoj commented Feb 17, 2022

Well, I thought you've passed the cookie jar file manually. But it seems you've done nothing to make such an error.
Let's explore your environment first, attach the file with versions of your python libraries:

pip freeze > pip_freeze.txt

After it update the aiohttp library:

pip install aiohttp==3.8.1

And try to run again.

@potterthecop
Copy link
Author

potterthecop commented Feb 17, 2022

requirements.txt

I had the same version of aiohttp. Forced reinstall but the same error.

I googled for the error and some guy from github aiohttp answered:

It means server sends malformed cookies: they are cannot be parsed by http.cookies.SimpleCookie.load() method.

The only way you could do for loading illegal cookies is parsing it yourself from resp.headers['SET-COOKIE'] using regular expressions for example.

link: aio-libs/aiohttp#1842

But i don't have a clue what to do..maybe because i'm a beginner in python :)

@soxoj
Copy link
Owner

soxoj commented Feb 17, 2022

I'll try to reproduce this error in the env with your versions of libraries and write you.

@red302
Copy link

red302 commented Feb 23, 2022

Hi soxoj,

I have the same issue as potterthecop.
I also get an Error window with:
The following error(s) occurred with the transform 'Maigret'
Error(s)

  • ParseError at [row,col]:[1.1]
    Message: Content is not allowed in prolog.

I also do not have a clue with python - did you manage to resolve his problem?

Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants