KennethSoelberg / AOS-SW-API

MIT License
0 stars 0 forks source link

httpcore._exceptions.ProtocolError #1

Closed egabrum closed 3 years ago

egabrum commented 3 years ago

I'm getting this exception every time when I run the following script against an Aruba 2930F running ArubaOS-switch WC.16.10.0011

httpcore._exceptions.ProtocolError: can't handle event type ConnectionClosed when role=SERVER and state=SEND_RESPONSE
import aos_sw_api

def main():
    with aos_sw_api.Client(
        switch_ip="x.x.x.x",
        api_version=1,
        username="manager",
        password="x",
        https=False,
    ) as client:
        pass
        # res = client.port.get_all_ports_statistics()
        # print(res)

if __name__ == "__main__":
    main()
egabrum commented 3 years ago

This can be closed. It was a bug in in WC.16.10.0011 , fixed in WC.16.10.0012 :-(

BTW, I see a lot of progress here with respect to the version in pypi (0.1.1?). Have you considered publishing these updates?