lingochamp / lingochamp/FileDownloader

下载文件有的出现412错误

Open
#1,382 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Java
Stars
11.1k
Forks
2.2k
PR merge metrics
No merged PRs in 30d

Description

2021-05-20 16:57:36.301 24258-24258/com.apppubs.U1621255999194 E/下载出错: Connection failed with request[{If-Match=["7931-5bd13d31645e7-gzip"], Range=[bytes=0-], User-Agent=[FileDownloader/1.7.7]}] response[{null=[HTTP/1.1 412 Precondition Failed], Accept-Ranges=[bytes], Connection=[Keep-Alive], Content-Length=[0], Content-Type=[application/vnd.openxmlformats-officedocument.wordprocessingml.document], Date=[Thu, 20 May 2021 08:57:36 GMT], ETag=["7931-5bd13d31645e7"], Keep-Alive=[timeout=5, max=99], Last-Modified=[Tue, 09 Mar 2021 05:28:47 GMT], MS-Author-Via=[DAV], Server=[Apache], X-Android-Received-Millis=[1621501056267], X-Android-Response-Source=[NETWORK 412], X-Android-Selected-Protocol=[http/1.1], X-Android-Sent-Millis=[1621501056240], X-FRAME-OPTIONS=[SAMEORIGIN], X-XSS-Protection=[1; mode=block]}] http-state[412] on task[-852055445--1], which is changed after verify connection, so please try again.

请问该怎么解决?

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

The issue provides an Android FileDownloader log showing an HTTP 412 response caused by an If-Match and ETag mismatch, but names no source file or test. Start by tracing the request and connection-verification path that handles this response. Done means reproducing the failed download and establishing a verified resolution for the 412 case.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, java
Domain
mobile
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.