roleoroleo / yi-hack-MStar.gdrive

Google drive loader for yi smart ip camera (MStar based)
MIT License
25 stars 6 forks source link

Auth2.0 setup failure: curl: (6) Could not resolve host: www.googleapis.com #6

Open denven opened 3 years ago

denven commented 3 years ago

sh /tmp/sd/yi-hack/gdrive/GDriveConf

Phenomenon My google drive api requests all failed on my device today, no response at all; I didn't figure out the reason; so I tried to use this script to setup google drive credentials for another time.

When I come to the auth2.0 setup:

Put this link into your browser: https://accounts.google.com/o/oauth2/v2/auth?scope=https://www.googleapis.com/auth/drive&state=state&redirect_uri=urn:ietf:wg:oauth:2.0:oob&response_type=code&client_id=295424722600-8jssdfsfsdfsdooiwoewlljk.apps.googleusercontent.com&access_type=offline

Copy and paste your code here: 4/1AY0e-g58RXEY6cH4Df1QWJMiCNKYvVeKdPW9ijbGZ17SkFEA6X0mFnX39xH0 % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0curl: (6) Could not resolve host: www.googleapis.com

Analysis: ping 8.8.8.8 is reachable, but ping any valid domain is not working, returns bad address.

The reboot cannot fix this.

Some people said that the problem is with busybox

Memo: Just put a record here, I may need to reset the network of my device, if anyone or I find a fix, please reply it here. Thanks.