Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

httpConn.contentType must not be null error when download file #936

Open
uzair-ird opened this issue Jan 31, 2024 · 1 comment
Open

httpConn.contentType must not be null error when download file #936

uzair-ird opened this issue Jan 31, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@uzair-ird
Copy link

Descri java.lang.NullPointerException: getContentType(...) must not be null
W/System.err( 7202): at vn.hunghd.flutterdownloader.DownloadWorker.downloadFile(DownloadWorker.kt:343)
W/System.err( 7202): at vn.hunghd.flutterdownloader.DownloadWorker.doWork(DownloadWorker.kt:206)
W/System.err( 7202): at androidx.work.Worker$1.run(Worker.java:82)
W/System.err( 7202): at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
W/System.err( 7202): at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:644)
W/System.err( 7202): at java.lang.Thread.run(Thread.java:1012)
I/WM-WorkerWrapper( 7202): Worker result FAILURE for Work [ id=fc17e316-6f48-48ae-9c4d-80293d740396, tags={ vn.hunghd.flutterdownloader.DownloadWorker, flutter_download_task } ]be the bug

To Reproduce

Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior

Screenshots

Desktop (please complete the following information):

  • OS: [e.g. iOS]
  • Browser [e.g. chrome, safari]
  • Version [e.g. 22]

Device information:

  • Device: [e.g. iPhone 13]
  • OS: [e.g. iOS 15.4]
  • plugin version [e.g. v1.8.0]

Additional context

@uzair-ird uzair-ird added the bug Something isn't working label Jan 31, 2024
@uzair-ird
Copy link
Author

I am using flutter_downloader: ^1.11.5 this version

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant