Page MenuHomePhabricator
Paste P10708

Android logcat page refresh using mobile-html
ActivePublic

Authored by bearND on Mon, Mar 16, 9:31 PM.
2020-03-16 15:26:29.429 28552-5357/org.wikipedia.dev D/OkHttp: --> GET https://en.wikipedia.org/api/rest_v1/page/summary/Foobar
2020-03-16 15:26:29.439 28552-30030/org.wikipedia.dev D/OkHttp: --> GET https://en.wikipedia.org/api/rest_v1/page/mobile-html/Foobar
2020-03-16 15:26:29.627 28552-5357/org.wikipedia.dev D/OkHttp: <-- 200 https://en.wikipedia.org/api/rest_v1/page/summary/Foobar (197ms)
2020-03-16 15:26:29.627 28552-5357/org.wikipedia.dev D/OkHttp: content-location: https://en.wikipedia.org/api/rest_v1/page/summary/Foobar
2020-03-16 15:26:29.652 28552-5368/org.wikipedia.dev D/OkHttp: --> GET https://en.wikipedia.org/api/rest_v1/feed/announcements
2020-03-16 15:26:29.727 28552-30030/org.wikipedia.dev D/OkHttp: <-- 200 https://en.wikipedia.org/api/rest_v1/page/mobile-html/Foobar (288ms)
2020-03-16 15:26:29.728 28552-30030/org.wikipedia.dev D/OkHttp: content-location: https://en.wikipedia.org/api/rest_v1/page/mobile-html/Foobar
2020-03-16 15:26:29.772 28552-30030/org.wikipedia.dev D/OkHttp: Referer: https://en.wikipedia.org/
2020-03-16 15:26:29.773 28552-5392/org.wikipedia.dev D/OkHttp: --> GET https://en.wikipedia.org/api/rest_v1/data/css/mobile/site
2020-03-16 15:26:29.773 28552-5392/org.wikipedia.dev D/OkHttp: Referer: https://en.wikipedia.org/api/rest_v1/page/mobile-html/Foobar
2020-03-16 15:26:29.777 28552-5394/org.wikipedia.dev D/OkHttp: Referer: https://en.wikipedia.org/
2020-03-16 15:26:29.807 28552-5368/org.wikipedia.dev D/OkHttp: <-- 200 https://en.wikipedia.org/api/rest_v1/feed/announcements (155ms)
2020-03-16 15:26:29.807 28552-5368/org.wikipedia.dev D/OkHttp: content-location: https://en.wikipedia.org/api/rest_v1/feed/announcements
2020-03-16 15:26:29.865 28552-5392/org.wikipedia.dev D/OkHttp: <-- 200 https://en.wikipedia.org/api/rest_v1/data/css/mobile/site (91ms)
2020-03-16 15:26:29.865 28552-5392/org.wikipedia.dev D/OkHttp: content-location: https://en.wikipedia.org/api/rest_v1/data/css/mobile/site
2020-03-16 15:26:30.262 28552-5394/org.wikipedia.dev D/OkHttp: --> GET https://en.wikipedia.org/favicon.ico
2020-03-16 15:26:30.262 28552-5394/org.wikipedia.dev D/OkHttp: Referer: https://en.wikipedia.org/api/rest_v1/page/mobile-html/Foobar
2020-03-16 15:26:30.268 28552-30030/org.wikipedia.dev D/OkHttp: --> GET https://en.wikipedia.org/api/rest_v1/data/i18n/pcs
2020-03-16 15:26:30.268 28552-30030/org.wikipedia.dev D/OkHttp: Referer: https://en.wikipedia.org/api/rest_v1/page/mobile-html/Foobar
2020-03-16 15:26:30.346 28552-5394/org.wikipedia.dev D/OkHttp: <-- 200 https://en.wikipedia.org/favicon.ico (84ms)
2020-03-16 15:26:30.419 28552-30030/org.wikipedia.dev D/OkHttp: <-- HTTP FAILED: org.wikipedia.dataclient.okhttp.HttpStatusException: Code: 404, URL: https://en.wikipedia.org/api/rest_v1/data/i18n/pcs, title: Not found., detail:
2020-03-16 15:26:30.420 28552-30030/org.wikipedia.dev E/org.wikipedia.dataclient.okhttp.OkHttpWebViewClient: shouldInterceptRequest():108:
org.wikipedia.dataclient.okhttp.HttpStatusException: Code: 404, URL: https://en.wikipedia.org/api/rest_v1/data/i18n/pcs, title: Not found., detail:
at org.wikipedia.dataclient.okhttp.UnsuccessfulResponseInterceptor.intercept(UnsuccessfulResponseInterceptor.kt:14)
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:112)
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:87)
at okhttp3.logging.HttpLoggingInterceptor.intercept(HttpLoggingInterceptor.kt:219)
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:112)
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:87)
at okhttp3.RealCall.getResponseWithInterceptorChain(RealCall.kt:194)
at okhttp3.RealCall.execute(RealCall.kt:67)
at org.wikipedia.dataclient.okhttp.OkHttpWebViewClient.request(OkHttpWebViewClient.java:131)
at org.wikipedia.dataclient.okhttp.OkHttpWebViewClient.shouldInterceptRequest(OkHttpWebViewClient.java:62)
at km.a(PG:15)
at org.chromium.android_webview.AwContentsBackgroundThreadClient.shouldInterceptRequestFromNative(PG:2)
2020-03-16 15:26:30.433 28552-30030/org.wikipedia.dev D/OkHttp: --> GET https://en.wikipedia.org/api/rest_v1/page/related/Foobar
2020-03-16 15:26:30.433 28552-30030/org.wikipedia.dev D/OkHttp: Referer: https://en.wikipedia.org/api/rest_v1/page/mobile-html/Foobar
2020-03-16 15:26:30.661 28552-30030/org.wikipedia.dev D/OkHttp: <-- 200 https://en.wikipedia.org/api/rest_v1/page/related/Foobar (227ms)

Event Timeline

bearND created this paste.Mon, Mar 16, 9:31 PM
bearND added a comment.EditedMon, Mar 16, 9:34 PM

This is from logcat, filtering by string en.wikipedia.org.

The 404 for /data/i18n/pcs is expected since that endpoint has not been deployed yet.