python-libmaas icon indicating copy to clipboard operation
python-libmaas copied to clipboard

maas login got an unexpected keyword argument 'verify_ssl'

Open erik78se opened this issue 4 years ago • 1 comments

When entering an URL that might not be the right, the error that is thrown is really not helpful.

This is what it looks like....

(python-libmaas) erik@dcv-engineering:~/allcode/python-libmaas$ maas login
URL: https://maas.example.com/MAAS
Username: erik
Password: 
Error: __init__() got an unexpected keyword argument 'verify_ssl'

Something is going wrong here.

erik78se avatar Mar 23 '21 10:03 erik78se

I noticed that the aiohttp version == 4.0.01a1 dont support the verify_ssl=False anymore...

So I installed the 3.7.2

pip3 install aiohttp==3.7.2

and removed the 4.0.0a1 version ....

Installing collected packages: aiohttp Attempting uninstall: aiohttp Found existing installation: aiohttp 4.0.0a1 Uninstalling aiohttp-4.0.0a1: Successfully uninstalled aiohttp-4.0.0a1 Successfully installed aiohttp-3.7.2

Then, it worked

(venv) erik@dcv-engineering:~/allcode/python-libmaas$ bin/maas login URL: http://maas.example.com:5240/MAAS/api/2.0 Username: erik Password: Congratulations! You are logged in to the MAAS server at http://maas.example.com:5240/MAAS/api/2.0/ with the profile name erik.

For help with the available commands, try:

maas help

(venv) sssler@dcv-engineering:~/allcode/python-libmaas$

erik78se avatar Mar 23 '21 10:03 erik78se

Not a bug

r00ta avatar Jan 13 '24 16:01 r00ta