facebookarchive / stetho

Stetho is a debug bridge for Android applications, enabling the powerful Chrome Developer Tools and much more.
http://facebook.github.io/stetho/
MIT License
12.66k stars 1.13k forks source link

HTTP/1.1 404 Not Found #597

Closed JavaBoyHW closed 5 years ago

JavaBoyHW commented 6 years ago

I use stetho in my App. I want to test my sqlite。I have searched Issues, but anyone can help me. I use gradle in my app module, build.gradle: // Stetho core compile 'com.facebook.stetho:stetho:1.3.1' compile 'com.facebook.stetho:stetho-okhttp3:1.3.1' And my Application.java: Stetho.initializeWithDefaults(this); new OkHttpClient.Builder().addNetworkInterceptor(new StethoInterceptor()) .build(); when i install my App in my phone(huawei Android 7.0). Run my App.In my Chrome, open "chrome://inspect/#devices", click the inspect button. After a loading, I get a "HTTP/1.1 404 Not Found":

qq 20180515143047

alirezanobahari commented 6 years ago

Here with the same problem. does anyone know the solution?

shixiuwen commented 6 years ago

Here with the same problem. does anyone know the solution?

alirezanobahari commented 6 years ago

Hey there @JavaBoyHW finally i found the problem use vpn in both mobile and your computer. its because of google restricted this feature in your country.

ghost commented 5 years ago

Hey there @JavaBoyHW finally i found the problem use vpn in both mobile and your computer. its because of google restricted this feature in your country.

Unfortunately that's true. I used a proxy and it's all fine.

pallaviMN commented 5 years ago

@armavion , can you please let me know, how did you resolve? even i am facing the same

ghost commented 5 years ago

@pallaviMN My IP address is from Iran, and Google doesn't really like us 😃 So basically what I did was to connect to a VPN to change my public IP. As soon as I connected to the VPN and clicked "inspect", I didn't see the 404 error anymore and it all worked.

pallaviMN commented 5 years ago

@armavion , actually in our office its not working but @home when i tried it works

jasta commented 5 years ago

Closing as this is a client connectivity issue to Google, not a Stetho issue.

jasta commented 5 years ago

Although note that in theory it would be possible for Stetho to ship our own copy of devtools to workaround this issue, but that is currently considered out of scope as a straight forward fix to this issue :\

pcqpcq commented 4 years ago

add appspot.com to proxy config works for me

mohsen2986 commented 3 years ago

@pallaviMN My IP address is from Iran, and Google doesn't really like us smiley So basically what I did was to connect to a VPN to change my public IP. As soon as I connected to the VPN and clicked "inspect", I didn't see the 404 error anymore and it all worked.

this is the bad part of history , im working on it about 3 h :(