Closed dev-zero closed 3 years ago
with a simple script and more logging I get:
$ python conn.py
DEBUG:asyncio:Using selector: EpollSelector
DEBUG:httpx._client:HTTP Request: GET http://192.168.179.35/goform/Deviceinfo.xml "HTTP/1.1 403 Forbidden"
DEBUG:denonavr.decorators:Network error exception on request <Request('GET', 'http://192.168.179.35/goform/Deviceinfo.xml')>
Traceback (most recent call last):
File "/home/tiziano/.local/lib/python3.9/site-packages/httpx/_transports/default.py", line 61, in map_httpcore_exceptions
yield
File "/home/tiziano/.local/lib/python3.9/site-packages/httpx/_transports/default.py", line 201, in __aiter__
async for part in self._httpcore_stream:
File "/home/tiziano/.local/lib/python3.9/site-packages/httpcore/_async/connection_pool.py", line 57, in __aiter__
async for chunk in self.stream:
File "/home/tiziano/.local/lib/python3.9/site-packages/httpcore/_bytestreams.py", line 91, in __aiter__
async for chunk in self._aiterator:
File "/home/tiziano/.local/lib/python3.9/site-packages/httpcore/_async/http11.py", line 208, in _receive_response_data
event = await self._receive_event(timeout)
File "/home/tiziano/.local/lib/python3.9/site-packages/httpcore/_async/http11.py", line 225, in _receive_event
data = await self.socket.read(self.READ_NUM_BYTES, timeout)
File "/home/tiziano/.local/lib/python3.9/site-packages/httpcore/_backends/anyio.py", line 65, in read
raise ReadError("Server disconnected while attempting read") from None
httpcore.ReadError: Server disconnected while attempting read
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/home/tiziano/.local/lib/python3.9/site-packages/denonavr/decorators.py", line 44, in wrapper
return await func(*args, **kwargs)
File "/home/tiziano/.local/lib/python3.9/site-packages/denonavr/api.py", line 85, in async_get
res = await client.get(endpoint, timeout=self.timeout)
File "/home/tiziano/.local/lib/python3.9/site-packages/httpx/_client.py", line 1661, in get
return await self.request(
File "/home/tiziano/.local/lib/python3.9/site-packages/httpx/_client.py", line 1425, in request
response = await self.send(
File "/home/tiziano/.local/lib/python3.9/site-packages/httpx/_client.py", line 1528, in send
raise exc
File "/home/tiziano/.local/lib/python3.9/site-packages/httpx/_client.py", line 1519, in send
await response.aread()
File "/home/tiziano/.local/lib/python3.9/site-packages/httpx/_models.py", line 1561, in aread
self._content = b"".join([part async for part in self.aiter_bytes()])
File "/home/tiziano/.local/lib/python3.9/site-packages/httpx/_models.py", line 1561, in <listcomp>
self._content = b"".join([part async for part in self.aiter_bytes()])
File "/home/tiziano/.local/lib/python3.9/site-packages/httpx/_models.py", line 1577, in aiter_bytes
async for raw_bytes in self.aiter_raw():
File "/home/tiziano/.local/lib/python3.9/site-packages/httpx/_models.py", line 1631, in aiter_raw
async for raw_stream_bytes in self.stream:
File "/home/tiziano/.local/lib/python3.9/site-packages/httpx/_client.py", line 127, in __aiter__
async for chunk in self._stream:
File "/home/tiziano/.local/lib/python3.9/site-packages/httpx/_transports/default.py", line 202, in __aiter__
yield part
File "/usr/lib/python3.9/contextlib.py", line 135, in __exit__
self.gen.throw(type, value, traceback)
File "/home/tiziano/.local/lib/python3.9/site-packages/httpx/_transports/default.py", line 78, in map_httpcore_exceptions
raise mapped_exc(message) from exc
httpx.ReadError: Server disconnected while attempting read
DEBUG:denonavr.decorators:Exception NetworkError: Server disconnected while attempting read raised, clearing cache
DEBUG:denonavr.foundation:Connection error on port 80 when identifying receiver
Traceback (most recent call last):
File "/home/tiziano/.local/lib/python3.9/site-packages/httpx/_transports/default.py", line 61, in map_httpcore_exceptions
yield
File "/home/tiziano/.local/lib/python3.9/site-packages/httpx/_transports/default.py", line 201, in __aiter__
async for part in self._httpcore_stream:
File "/home/tiziano/.local/lib/python3.9/site-packages/httpcore/_async/connection_pool.py", line 57, in __aiter__
async for chunk in self.stream:
File "/home/tiziano/.local/lib/python3.9/site-packages/httpcore/_bytestreams.py", line 91, in __aiter__
async for chunk in self._aiterator:
File "/home/tiziano/.local/lib/python3.9/site-packages/httpcore/_async/http11.py", line 208, in _receive_response_data
event = await self._receive_event(timeout)
File "/home/tiziano/.local/lib/python3.9/site-packages/httpcore/_async/http11.py", line 225, in _receive_event
data = await self.socket.read(self.READ_NUM_BYTES, timeout)
File "/home/tiziano/.local/lib/python3.9/site-packages/httpcore/_backends/anyio.py", line 65, in read
raise ReadError("Server disconnected while attempting read") from None
httpcore.ReadError: Server disconnected while attempting read
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/home/tiziano/.local/lib/python3.9/site-packages/denonavr/decorators.py", line 44, in wrapper
return await func(*args, **kwargs)
File "/home/tiziano/.local/lib/python3.9/site-packages/denonavr/api.py", line 85, in async_get
res = await client.get(endpoint, timeout=self.timeout)
File "/home/tiziano/.local/lib/python3.9/site-packages/httpx/_client.py", line 1661, in get
return await self.request(
File "/home/tiziano/.local/lib/python3.9/site-packages/httpx/_client.py", line 1425, in request
response = await self.send(
File "/home/tiziano/.local/lib/python3.9/site-packages/httpx/_client.py", line 1528, in send
raise exc
File "/home/tiziano/.local/lib/python3.9/site-packages/httpx/_client.py", line 1519, in send
await response.aread()
File "/home/tiziano/.local/lib/python3.9/site-packages/httpx/_models.py", line 1561, in aread
self._content = b"".join([part async for part in self.aiter_bytes()])
File "/home/tiziano/.local/lib/python3.9/site-packages/httpx/_models.py", line 1561, in <listcomp>
self._content = b"".join([part async for part in self.aiter_bytes()])
File "/home/tiziano/.local/lib/python3.9/site-packages/httpx/_models.py", line 1577, in aiter_bytes
async for raw_bytes in self.aiter_raw():
File "/home/tiziano/.local/lib/python3.9/site-packages/httpx/_models.py", line 1631, in aiter_raw
async for raw_stream_bytes in self.stream:
File "/home/tiziano/.local/lib/python3.9/site-packages/httpx/_client.py", line 127, in __aiter__
async for chunk in self._stream:
File "/home/tiziano/.local/lib/python3.9/site-packages/httpx/_transports/default.py", line 202, in __aiter__
yield part
File "/usr/lib/python3.9/contextlib.py", line 135, in __exit__
self.gen.throw(type, value, traceback)
File "/home/tiziano/.local/lib/python3.9/site-packages/httpx/_transports/default.py", line 78, in map_httpcore_exceptions
raise mapped_exc(message) from exc
httpx.ReadError: Server disconnected while attempting read
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/home/tiziano/.local/lib/python3.9/site-packages/denonavr/foundation.py", line 132, in async_identify_receiver
xml = await self.api.async_get_xml(
File "/home/tiziano/.local/lib/python3.9/site-packages/denonavr/decorators.py", line 96, in wrapper
return await func(*args, **kwargs)
File "/home/tiziano/.local/lib/python3.9/site-packages/asyncstdlib/_lrucache.py", line 288, in wrapper
result = await function(*args, **kwargs)
File "/home/tiziano/.local/lib/python3.9/site-packages/denonavr/decorators.py", line 44, in wrapper
return await func(*args, **kwargs)
File "/home/tiziano/.local/lib/python3.9/site-packages/denonavr/api.py", line 139, in async_get_xml
res = await self.async_get(request)
File "/home/tiziano/.local/lib/python3.9/site-packages/denonavr/decorators.py", line 64, in wrapper
raise AvrNetworkError(
denonavr.exceptions.AvrNetworkError: NetworkError: Server disconnected while attempting read
DEBUG:httpx._client:HTTP Request: GET http://192.168.179.35:8080/goform/Deviceinfo.xml "HTTP/1.0 200 OK"
DEBUG:denonavr.decorators:Network error exception on request <Request('GET', 'http://192.168.179.35:8080/goform/Deviceinfo.xml')>
Traceback (most recent call last):
File "/home/tiziano/.local/lib/python3.9/site-packages/httpx/_transports/default.py", line 61, in map_httpcore_exceptions
yield
File "/home/tiziano/.local/lib/python3.9/site-packages/httpx/_transports/default.py", line 201, in __aiter__
async for part in self._httpcore_stream:
File "/home/tiziano/.local/lib/python3.9/site-packages/httpcore/_async/connection_pool.py", line 57, in __aiter__
async for chunk in self.stream:
File "/home/tiziano/.local/lib/python3.9/site-packages/httpcore/_bytestreams.py", line 91, in __aiter__
async for chunk in self._aiterator:
File "/home/tiziano/.local/lib/python3.9/site-packages/httpcore/_async/http11.py", line 208, in _receive_response_data
event = await self._receive_event(timeout)
File "/home/tiziano/.local/lib/python3.9/site-packages/httpcore/_async/http11.py", line 225, in _receive_event
data = await self.socket.read(self.READ_NUM_BYTES, timeout)
File "/home/tiziano/.local/lib/python3.9/site-packages/httpcore/_backends/anyio.py", line 65, in read
raise ReadError("Server disconnected while attempting read") from None
httpcore.ReadError: Server disconnected while attempting read
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/home/tiziano/.local/lib/python3.9/site-packages/denonavr/decorators.py", line 44, in wrapper
return await func(*args, **kwargs)
File "/home/tiziano/.local/lib/python3.9/site-packages/denonavr/api.py", line 85, in async_get
res = await client.get(endpoint, timeout=self.timeout)
File "/home/tiziano/.local/lib/python3.9/site-packages/httpx/_client.py", line 1661, in get
return await self.request(
File "/home/tiziano/.local/lib/python3.9/site-packages/httpx/_client.py", line 1425, in request
response = await self.send(
File "/home/tiziano/.local/lib/python3.9/site-packages/httpx/_client.py", line 1528, in send
raise exc
File "/home/tiziano/.local/lib/python3.9/site-packages/httpx/_client.py", line 1519, in send
await response.aread()
File "/home/tiziano/.local/lib/python3.9/site-packages/httpx/_models.py", line 1561, in aread
self._content = b"".join([part async for part in self.aiter_bytes()])
File "/home/tiziano/.local/lib/python3.9/site-packages/httpx/_models.py", line 1561, in <listcomp>
self._content = b"".join([part async for part in self.aiter_bytes()])
File "/home/tiziano/.local/lib/python3.9/site-packages/httpx/_models.py", line 1577, in aiter_bytes
async for raw_bytes in self.aiter_raw():
File "/home/tiziano/.local/lib/python3.9/site-packages/httpx/_models.py", line 1631, in aiter_raw
async for raw_stream_bytes in self.stream:
File "/home/tiziano/.local/lib/python3.9/site-packages/httpx/_client.py", line 127, in __aiter__
async for chunk in self._stream:
File "/home/tiziano/.local/lib/python3.9/site-packages/httpx/_transports/default.py", line 202, in __aiter__
yield part
File "/usr/lib/python3.9/contextlib.py", line 135, in __exit__
self.gen.throw(type, value, traceback)
File "/home/tiziano/.local/lib/python3.9/site-packages/httpx/_transports/default.py", line 78, in map_httpcore_exceptions
raise mapped_exc(message) from exc
httpx.ReadError: Server disconnected while attempting read
DEBUG:denonavr.decorators:Exception NetworkError: Server disconnected while attempting read raised, clearing cache
DEBUG:denonavr.foundation:Connection error on port 8080 when identifying receiver
Traceback (most recent call last):
File "/home/tiziano/.local/lib/python3.9/site-packages/httpx/_transports/default.py", line 61, in map_httpcore_exceptions
yield
File "/home/tiziano/.local/lib/python3.9/site-packages/httpx/_transports/default.py", line 201, in __aiter__
async for part in self._httpcore_stream:
File "/home/tiziano/.local/lib/python3.9/site-packages/httpcore/_async/connection_pool.py", line 57, in __aiter__
async for chunk in self.stream:
File "/home/tiziano/.local/lib/python3.9/site-packages/httpcore/_bytestreams.py", line 91, in __aiter__
async for chunk in self._aiterator:
File "/home/tiziano/.local/lib/python3.9/site-packages/httpcore/_async/http11.py", line 208, in _receive_response_data
event = await self._receive_event(timeout)
File "/home/tiziano/.local/lib/python3.9/site-packages/httpcore/_async/http11.py", line 225, in _receive_event
data = await self.socket.read(self.READ_NUM_BYTES, timeout)
File "/home/tiziano/.local/lib/python3.9/site-packages/httpcore/_backends/anyio.py", line 65, in read
raise ReadError("Server disconnected while attempting read") from None
httpcore.ReadError: Server disconnected while attempting read
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/home/tiziano/.local/lib/python3.9/site-packages/denonavr/decorators.py", line 44, in wrapper
return await func(*args, **kwargs)
File "/home/tiziano/.local/lib/python3.9/site-packages/denonavr/api.py", line 85, in async_get
res = await client.get(endpoint, timeout=self.timeout)
File "/home/tiziano/.local/lib/python3.9/site-packages/httpx/_client.py", line 1661, in get
return await self.request(
File "/home/tiziano/.local/lib/python3.9/site-packages/httpx/_client.py", line 1425, in request
response = await self.send(
File "/home/tiziano/.local/lib/python3.9/site-packages/httpx/_client.py", line 1528, in send
raise exc
File "/home/tiziano/.local/lib/python3.9/site-packages/httpx/_client.py", line 1519, in send
await response.aread()
File "/home/tiziano/.local/lib/python3.9/site-packages/httpx/_models.py", line 1561, in aread
self._content = b"".join([part async for part in self.aiter_bytes()])
File "/home/tiziano/.local/lib/python3.9/site-packages/httpx/_models.py", line 1561, in <listcomp>
self._content = b"".join([part async for part in self.aiter_bytes()])
File "/home/tiziano/.local/lib/python3.9/site-packages/httpx/_models.py", line 1577, in aiter_bytes
async for raw_bytes in self.aiter_raw():
File "/home/tiziano/.local/lib/python3.9/site-packages/httpx/_models.py", line 1631, in aiter_raw
async for raw_stream_bytes in self.stream:
File "/home/tiziano/.local/lib/python3.9/site-packages/httpx/_client.py", line 127, in __aiter__
async for chunk in self._stream:
File "/home/tiziano/.local/lib/python3.9/site-packages/httpx/_transports/default.py", line 202, in __aiter__
yield part
File "/usr/lib/python3.9/contextlib.py", line 135, in __exit__
self.gen.throw(type, value, traceback)
File "/home/tiziano/.local/lib/python3.9/site-packages/httpx/_transports/default.py", line 78, in map_httpcore_exceptions
raise mapped_exc(message) from exc
httpx.ReadError: Server disconnected while attempting read
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/home/tiziano/.local/lib/python3.9/site-packages/denonavr/foundation.py", line 132, in async_identify_receiver
xml = await self.api.async_get_xml(
File "/home/tiziano/.local/lib/python3.9/site-packages/denonavr/decorators.py", line 96, in wrapper
return await func(*args, **kwargs)
File "/home/tiziano/.local/lib/python3.9/site-packages/asyncstdlib/_lrucache.py", line 288, in wrapper
result = await function(*args, **kwargs)
File "/home/tiziano/.local/lib/python3.9/site-packages/denonavr/decorators.py", line 44, in wrapper
return await func(*args, **kwargs)
File "/home/tiziano/.local/lib/python3.9/site-packages/denonavr/api.py", line 139, in async_get_xml
res = await self.async_get(request)
File "/home/tiziano/.local/lib/python3.9/site-packages/denonavr/decorators.py", line 64, in wrapper
raise AvrNetworkError(
denonavr.exceptions.AvrNetworkError: NetworkError: Server disconnected while attempting read
Traceback (most recent call last):
File "/home/tiziano/.local/lib/python3.9/site-packages/httpx/_transports/default.py", line 61, in map_httpcore_exceptions
yield
File "/home/tiziano/.local/lib/python3.9/site-packages/httpx/_transports/default.py", line 201, in __aiter__
async for part in self._httpcore_stream:
File "/home/tiziano/.local/lib/python3.9/site-packages/httpcore/_async/connection_pool.py", line 57, in __aiter__
async for chunk in self.stream:
File "/home/tiziano/.local/lib/python3.9/site-packages/httpcore/_bytestreams.py", line 91, in __aiter__
async for chunk in self._aiterator:
File "/home/tiziano/.local/lib/python3.9/site-packages/httpcore/_async/http11.py", line 208, in _receive_response_data
event = await self._receive_event(timeout)
File "/home/tiziano/.local/lib/python3.9/site-packages/httpcore/_async/http11.py", line 225, in _receive_event
data = await self.socket.read(self.READ_NUM_BYTES, timeout)
File "/home/tiziano/.local/lib/python3.9/site-packages/httpcore/_backends/anyio.py", line 65, in read
raise ReadError("Server disconnected while attempting read") from None
httpcore.ReadError: Server disconnected while attempting read
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/home/tiziano/.local/lib/python3.9/site-packages/denonavr/decorators.py", line 44, in wrapper
return await func(*args, **kwargs)
File "/home/tiziano/.local/lib/python3.9/site-packages/denonavr/api.py", line 85, in async_get
res = await client.get(endpoint, timeout=self.timeout)
File "/home/tiziano/.local/lib/python3.9/site-packages/httpx/_client.py", line 1661, in get
return await self.request(
File "/home/tiziano/.local/lib/python3.9/site-packages/httpx/_client.py", line 1425, in request
response = await self.send(
File "/home/tiziano/.local/lib/python3.9/site-packages/httpx/_client.py", line 1528, in send
raise exc
File "/home/tiziano/.local/lib/python3.9/site-packages/httpx/_client.py", line 1519, in send
await response.aread()
File "/home/tiziano/.local/lib/python3.9/site-packages/httpx/_models.py", line 1561, in aread
self._content = b"".join([part async for part in self.aiter_bytes()])
File "/home/tiziano/.local/lib/python3.9/site-packages/httpx/_models.py", line 1561, in <listcomp>
self._content = b"".join([part async for part in self.aiter_bytes()])
File "/home/tiziano/.local/lib/python3.9/site-packages/httpx/_models.py", line 1577, in aiter_bytes
async for raw_bytes in self.aiter_raw():
File "/home/tiziano/.local/lib/python3.9/site-packages/httpx/_models.py", line 1631, in aiter_raw
async for raw_stream_bytes in self.stream:
File "/home/tiziano/.local/lib/python3.9/site-packages/httpx/_client.py", line 127, in __aiter__
async for chunk in self._stream:
File "/home/tiziano/.local/lib/python3.9/site-packages/httpx/_transports/default.py", line 202, in __aiter__
yield part
File "/usr/lib/python3.9/contextlib.py", line 135, in __exit__
self.gen.throw(type, value, traceback)
File "/home/tiziano/.local/lib/python3.9/site-packages/httpx/_transports/default.py", line 78, in map_httpcore_exceptions
raise mapped_exc(message) from exc
httpx.ReadError: Server disconnected while attempting read
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/home/tiziano/work/tests/python/denon/conn.py", line 7, in <module>
d.update()
File "/home/tiziano/.local/lib/python3.9/site-packages/denonavr/decorators.py", line 146, in wrapper
return loop.run_until_complete(async_func(*args, **kwargs))
File "/usr/lib/python3.9/asyncio/base_events.py", line 642, in run_until_complete
return future.result()
File "/home/tiziano/.local/lib/python3.9/site-packages/denonavr/denonavr.py", line 157, in async_update
await self.async_setup()
File "/home/tiziano/.local/lib/python3.9/site-packages/denonavr/denonavr.py", line 132, in async_setup
await self._device.async_setup()
File "/home/tiziano/.local/lib/python3.9/site-packages/denonavr/foundation.py", line 97, in async_setup
await self.async_identify_receiver()
File "/home/tiziano/.local/lib/python3.9/site-packages/denonavr/foundation.py", line 132, in async_identify_receiver
xml = await self.api.async_get_xml(
File "/home/tiziano/.local/lib/python3.9/site-packages/denonavr/decorators.py", line 96, in wrapper
return await func(*args, **kwargs)
File "/home/tiziano/.local/lib/python3.9/site-packages/asyncstdlib/_lrucache.py", line 288, in wrapper
result = await function(*args, **kwargs)
File "/home/tiziano/.local/lib/python3.9/site-packages/denonavr/decorators.py", line 44, in wrapper
return await func(*args, **kwargs)
File "/home/tiziano/.local/lib/python3.9/site-packages/denonavr/api.py", line 139, in async_get_xml
res = await self.async_get(request)
File "/home/tiziano/.local/lib/python3.9/site-packages/denonavr/decorators.py", line 64, in wrapper
raise AvrNetworkError(
denonavr.exceptions.AvrNetworkError: NetworkError: Server disconnected while attempting read
import logging
import denonavr
logging.basicConfig()
logging.getLogger().setLevel(logging.DEBUG)
d = denonavr.DenonAVR("192.168.179.35")
d.update()
... it seems that port 80
is used instead of 8080
:
$ curl http://192.168.179.35:8080/goform/Deviceinfo.xml | head -n 10
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0<?xml version="1.0" encoding="utf-8" ?>
<Device_Info>
<DeviceInfoVers>0001</DeviceInfoVers>
<CommApiVers>0301</CommApiVers>
<Gen>0002</Gen>
<BrandCode>0</BrandCode>
<ProductCategory>01</ProductCategory>
<CategoryName>AV RECEIVER</CategoryName>
<ManualModelName>AVR-X1600H</ManualModelName>
<DeliveryCode>02</DeliveryCode>
changing the order to what is documented here (e.g. to [AVR_X_2016, AVR_X]
).
still generates an error:
$ python conn.py DEBUG:asyncio:Using selector: EpollSelector
DEBUG:httpx._client:HTTP Request: GET http://192.168.179.35:8080/goform/Deviceinfo.xml "HTTP/1.0 200 OK"
DEBUG:denonavr.decorators:Network error exception on request <Request('GET', 'http://192.168.179.35:8080/goform/Deviceinfo.xml')>
Traceback (most recent call last):
File "/home/tiziano/.local/lib/python3.9/site-packages/httpx/_transports/default.py", line 61, in map_httpcore_exceptions
yield
File "/home/tiziano/.local/lib/python3.9/site-packages/httpx/_transports/default.py", line 201, in __aiter__
async for part in self._httpcore_stream:
File "/home/tiziano/.local/lib/python3.9/site-packages/httpcore/_async/connection_pool.py", line 57, in __aiter__
async for chunk in self.stream:
File "/home/tiziano/.local/lib/python3.9/site-packages/httpcore/_bytestreams.py", line 91, in __aiter__
async for chunk in self._aiterator:
File "/home/tiziano/.local/lib/python3.9/site-packages/httpcore/_async/http11.py", line 208, in _receive_response_data
event = await self._receive_event(timeout)
File "/home/tiziano/.local/lib/python3.9/site-packages/httpcore/_async/http11.py", line 225, in _receive_event
data = await self.socket.read(self.READ_NUM_BYTES, timeout)
File "/home/tiziano/.local/lib/python3.9/site-packages/httpcore/_backends/anyio.py", line 65, in read
raise ReadError("Server disconnected while attempting read") from None
httpcore.ReadError: Server disconnected while attempting read
...
It seems to be httpx
s fault.
This works:
import httpx
r = httpx.get('http://192.168.179.35:8080/goform/Deviceinfo.xml')
print(r)
this doesn't:
import httpx
import asyncio
async def main():
async with httpx.AsyncClient() as client:
r = await client.get('http://192.168.179.35:8080/goform/Deviceinfo.xml')
print(r)
asyncio.run(main())
and opened discussion here: https://github.com/encode/httpx/discussions/1689
This is solved with httpcore 0.13.6 (and was broken with httpcore 0.13.4).
This is what I try in
ipython
:while
curl
gives me: