'Pyairmore if 'Proxy-Authorization' in headers: error python?
I try to send to use pyairmore to send sms using python.
So when i run my code
from ipaddress import IPv4Address
from pyairmore.request import AirmoreSession
from pyairmore.services.messaging import MessagingService
from pyairmore.services.device import DeviceService
device_ip = IPv4Address("X.X.X.X")
session = AirmoreSession(device_ip)
print(session.is_server_running)
I got True answer, so my server is running correctly
but when i try to make
device = DeviceService(session)
details = device.fetch_device_details()
or python session.request_authorization()
i always got the same error "if 'Proxy-Authorization' in headers: TypeError: argument of type 'NoneType' is not iterable" and i don't know what to do with that, can you help me ?
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|