HttpException when trying to open a static google map url
- Dominant language
- Java
- Stars
- 35k
- Forks
- 6.2k
- Avg merge
- 1d 11h
- Merged PRs (30d)
- 8
Description
**Glide Version**: Glide version 4.11
**Integration libraries**: OkHttp3 integration library
**Device/Android Version**: Pixel 4a running Android 11
**Glide load line / `GlideModule` (if any) / list Adapter code (if any)**:
```java
Glide.with(view).load(url).into(view)
```
**Stack trace / LogCat**:
```
2021-02-19 18:09:32.599 9941-9941 W/Glide: Load failed for https://maps.googleapis.com/maps/api/staticmap?size=60x60¢er=37.8803290000000032478055800311267375946044921875,-122.2698859999999996261976775713264942169189453125&zoom=15&markers=scale:2|anchor:bottom|icon:https%3A//d19rpgkrjeba2z.cloudfront.net/70aa85a54455b683/static/images/maps/icon-pin-map%402x.png|37.880329,-122.269886&scale=2&key=AIzaSyDOHSRtHcrkFA0S4Ut6_uUlvXWXDN9K-rE&signature=FE6fucfH06e7CyGKzGRy-35ki50= with size [64x64]
class com.bumptech.glide.load.engine.GlideException: Failed to load resource
There was 1 cause:
com.bumptech.glide.load.HttpException()
call GlideException#logRootCauses(String) for more detail
Cause (1 of 1): class com.bumptech.glide.load.engine.GlideException: Fetching data failed, class java.io.InputStream, REMOTE
There was 1 cause:
com.bumptech.glide.load.HttpException()
call GlideException#logRootCauses(String) for more detail
Cause (1 of 1): class com.bumptech.glide.load.HttpException:
2021-02-19 18:09:32.599 9941-9941/ I/Glide: Root cause (1 of 1)
com.bumptech.glide.load.HttpException:
at com.bumptech.glide.integration.okhttp3.OkHttpStreamFetcher.onResponse(OkHttpStreamFetcher.java:71)
at okhttp3.internal.connection.RealCall$AsyncCall.run(RealCall.kt:519)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
at java.lang.Thread.run(Thread.java:923)
```
Contributor guide
Research direction
Start with the Glide load line and the stack trace at com.bumptech.glide.integration.okhttp3.OkHttpStreamFetcher.java:71. Reproduce the Google Static Maps request on the stated Android and Glide versions, then inspect the HTTP response and OkHttp3 integration behavior. Done means identifying the failure cause and documenting or implementing a concrete fix.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- android, java
- Domain
- mobile, networking
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100