androidthings / sample-googleassistant

Google Assistant API sample for Android Things
Apache License 2.0
467 stars 147 forks source link

so bad #72

Closed Wc30 closed 6 years ago

Wc30 commented 6 years ago

01-01 00:07:49.698 212-212/? E/update_engine: [0101/000749:ERROR:libcurl_http_fetcher.cc(436)] Unable to get http response code.

Wc30 commented 6 years ago

When I run studio, I only show the NEW REQUEST button.

Fleker commented 6 years ago

You need to connect to Internet. You can see that the date is incorrect as well.

Wc30 commented 6 years ago

Change my raspberry pie time?I feel a little dizzy.Maybe my buttons are not on the breadboard.

Fleker commented 6 years ago

If your device is not connected to the Internet, it will not connect to an NTP server, and HTTPS requests will fail.

Wc30 commented 6 years ago

So what should I do?I mean how to get my device to connect to the network, my raspberry pie has been connected to wiff.What do you mean by not connecting to the Internet?

Wc30 commented 6 years ago

21e8bf7bcf853937439a038e2fd86a2 b01f99303afacd7b261d2ec825e6ad3

db1da9d9e04fc44978cf9a02716cd7c

Wc30 commented 6 years ago

01-01 00:09:41.779 732-1511/com.google.android.gms.persistent E/Uploader: Clearcut transport failed to make network request. java.net.SocketTimeoutException: failed to connect to play.googleapis.com/216.58.199.10 (port 443) from /192.168.1.96 (port 38906) after 60000ms at libcore.io.IoBridge.connectErrno(IoBridge.java:185) at libcore.io.IoBridge.connect(IoBridge.java:130) at java.net.PlainSocketImpl.socketConnect(PlainSocketImpl.java:129) at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:356) at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:200) at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:182) at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:357) at java.net.Socket.connect(Socket.java:616) at com.android.okhttp.internal.Platform.connectSocket(Platform.java:145) at com.android.okhttp.internal.io.RealConnection.connectSocket(RealConnection.java:141) at com.android.okhttp.internal.io.RealConnection.connect(RealConnection.java:112) at com.android.okhttp.internal.http.StreamAllocation.findConnection(StreamAllocation.java:184) at com.android.okhttp.internal.http.StreamAllocation.findHealthyConnection(StreamAllocation.java:126) at com.android.okhttp.internal.http.StreamAllocation.newStream(StreamAllocation.java:95) at com.android.okhttp.internal.http.HttpEngine.connect(HttpEngine.java:281) at com.android.okhttp.internal.http.HttpEngine.sendRequest(HttpEngine.java:224) at com.android.okhttp.internal.huc.HttpURLConnectionImpl.execute(HttpURLConnectionImpl.java:461) at com.android.okhttp.internal.huc.HttpURLConnectionImpl.connect(HttpURLConnectionImpl.java:127) at com.android.okhttp.internal.huc.HttpURLConnectionImpl.getOutputStream(HttpURLConnectionImpl.java:258) at com.android.okhttp.internal.huc.DelegatingHttpsURLConnection.getOutputStream(DelegatingHttpsURLConnection.java:218) at com.android.okhttp.internal.huc.HttpsURLConnectionImpl.getOutputStream(Unknown Source:0) at pvg.a(:com.google.android.gms@12520015@12.5.20 (030300-189423146):61) at pvg.execute(:com.google.android.gms@12520015@12.5.20 (030300-189423146):8) at pvg.execute(:com.google.android.gms@12520015@12.5.20 (030300-189423146):7) at jup.a(:com.google.android.gms@12520015@12.5.20 (030300-189423146):10) at jup.a(:com.google.android.gms@12520015@12.5.20 (030300-189423146):48) at jve.a(:com.google.android.gms@12520015@12.5.20 (030300-189423146):145) at jve.a(:com.google.android.gms@12520015@12.5.20 (030300-189423146):190) at com.google.android.gms.clearcut.uploader.QosUploaderChimeraService.c(:com.google.android.gms@12520015@12.5.20 (030300-189423146):44) at com.google.android.gms.clearcut.uploader.QosUploaderChimeraService.a(:com.google.android.gms@12520015@12.5.20 (030300-189423146):19) at com.google.android.gms.clearcut.uploader.QosUploaderChimeraService.a(:com.google.android.gms@12520015@12.5.20 (030300-189423146):8) at pai.run(:com.google.android.gms@12520015@12.5.20 (030300-189423146):1) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1162) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:636) at java.lang.Thread.run(Thread.java:764) 01-01 00:09:41.790 732-1511/com.google.android.gms.persistent E/NetworkScheduler.ATC: Trying to release unacquired lock: com.google.android.gms/.clearcut.uploader.QosUploaderService

Fleker commented 6 years ago

Add an ethernet or Wi-Fi connection so that it will connect to the Internet, get the current time, and allow it to make HTTPS requests.

Wc30 commented 6 years ago

I'm sorry to bother you all the time, but I have to wiff all the time.I don't even have the Internet because I'm a over the wall link to the Google interface. To why?

Wc30 commented 6 years ago

image

Fleker commented 6 years ago

The Google Assistant API is a cloud API. You need to make calls through an Internet connection.

Wc30 commented 6 years ago

Make a call?Call who?Or dial-up access.

Wc30 commented 6 years ago

image It stops here, is it wrong or is it right?What's wrong? What's wrong?

Fleker commented 6 years ago

Nothing seems wrong with your posted logs. It seems like your device is connected to the Internet. Have you tried sending a command? You can press the button on-screen or if you've connected it.

Wc30 commented 6 years ago

image

Only one microphone was connected, and the breadboard LED lights and buttons were still in place.

Wc30 commented 6 years ago

image

Wc30 commented 6 years ago

image ok?

Fleker commented 6 years ago

this log

This is the most important error. It states that the app cannot make a secure connection to the Google Assistant because the time is wrong (see 01-01? That's January 1st, which is not today.) Usually the time is not up to date because your device is not connected to the Internet. Until you get the time updated, the app will fail to load.

Wc30 commented 6 years ago

So you think there is no connection to the Internet? image

A new problem has arisen. image

Fleker commented 6 years ago

I don't know whether the device is connected or not, but it has not updated the system time.

Wc30 commented 6 years ago

Ok, I will continue to check whether the time has been modified,

16372212 commented 5 years ago

i meet the same question, have you already handled this problem?

CometInfosoft commented 5 years ago

Not, yet Mr. John. have you ?

On Sun, Nov 18, 2018 at 10:44 PM Johnglindon notifications@github.com wrote:

i meet the same question, have you already handled this problem?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/androidthings/sample-googleassistant/issues/72#issuecomment-439787597, or mute the thread https://github.com/notifications/unsubscribe-auth/AqSUxTpd3uELvsSdh9h8prsBml28dbAsks5uwlNAgaJpZM4T0b_e .

Wc30 commented 5 years ago

Because my Androidthings can't over the wall