reader icon indicating copy to clipboard operation
reader copied to clipboard

Failed writing received data to disk/application

Open KaitoHH opened this issue 9 months ago • 1 comments

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.

KaitoHH avatar Jun 05 '25 06:06 KaitoHH

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'

nomagick avatar Jun 19 '25 14:06 nomagick