lingochamp / lingochamp/FileDownloader

W/FileDownloader.FileDownloadUtils: don't get instance length fromContent-Range header

Open
#1,413 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
11.1k
Forks
2.2k
PR merge metrics
No merged PRs in 30d

Description

下载报错,之前还好好的,现在header获取长度一直为0,没办法进行下载。

2022-10-18 09:08:35.368 6844-6844/tai.tan.nanningrailway E/--bytes--: 0 === 0
2022-10-18 09:08:35.424 7172-7235/tai.tan.nanningrailway W/FileDownloader.FileDownloadUtils: don't get instance length fromContent-Range header
2022-10-18 09:08:35.505 6844-6844/tai.tan.nanningrailway E/------error-----: there isn't any content need to download on 2001696028--1 with the content-length is 0

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by inspecting FileDownloadUtils and the handling of the Content-Range header, using the reported logs as the reproduction signal. Determine why the instance length becomes 0, then verify that the affected download obtains a nonzero length and proceeds successfully.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, java
Domain
mobile
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 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.