reader
reader copied to clipboard
Failed writing received data to disk/application
Try curl https://r.jina.ai/https://xz.aliyun.com/news/17222 giving the following error:
{
"data": null,
"cause": {},
"code": 422,
"name": "AssertionFailureError",
"status": 42206,
"message": "Failed to access https://xz.aliyun.com: Failed writing received data to disk/application",
"readableMessage": "AssertionFailureError: Failed to access https://xz.aliyun.com: Failed writing received data to disk/application"
}
The error occurs whenever it repeats.
This is due to a buggy implementation of the aliyun.com server, an issue in streaming compressed data in this particular case.
This can be reproduced by running curl https://xz.aliyun.com/news/17222 --compressed.
Reader uses curl-impersonate for the initial request by default.
This can be walked around by specifying browser as the only engine. Which is more tolerant of buggy servers.
curl https://r.jina.ai/https://xz.aliyun.com/news/17222 -H 'x-engine: browser'