assistant-sdk-python icon indicating copy to clipboard operation
assistant-sdk-python copied to clipboard

post request error

Open ahducheng opened this issue 6 years ago • 2 comments

Proxy server use Hong Kong post https://embeddedassistant.googleapis.com/$rpc/google.assistant.embedded.v1alpha2.EmbeddedAssistant/Assist bin file above 20 k will be high probability incidental 502 error,Using proxy server won't appear in Taiwan。

提示HTTP/1.1 502 Bad Gateway Content-Type: text/html; charset=UTF-8 Referrer-Policy: no-referrer Content-Length: 1613 Date: Thu, 04 Apr 2019 06:43:23 GMT Alt-Svc: quic=":443"; ma=2592000; v="46,44,43,39" Connection: close

Error 502 (Server Error)!!1

502. That鈥檚 an error.

The server encountered a temporary error and could not complete your request.

Please try again in 30 seconds. That鈥檚 all we know.

ahducheng avatar Apr 09 '19 09:04 ahducheng

Whether in Taiwan or Hong Kong IP 70 k reply is more than 502

ahducheng avatar Apr 09 '19 09:04 ahducheng

python post.py -i http_post.bin -i http_post.bin input_file=http_post.bin { "access_token": "ya29.Gl3mBrJNWg9BAi4TLV5TMkvWrlgsM6KTVd9AiPHMczhfU6QiPqaqSBYy354y-u27Hn_t-D9NnvYKCyrT6FUPplbFZDAN9Am6B7FdLF_JkazZTim7fz_JqKfsDHHnrpo", "expires_in": 3600, "scope": "https://www.googleapis.com/auth/assistant-sdk-prototype", "token_type": "Bearer" } {'Content-type': 'application/x-protobuf', 'Authorization': 'Bearer ya29.Gl3mBrJNWg9BAi4TLV5TMkvWrlgsM6KTVd9AiPHMczhfU6QiPqaqSBYy354y-u27Hn_t-D9NnvYKCyrT6FUPplbFZDAN9Am6B7FdLF_JkazZTim7fz_JqKfsDHHnrpo', 'Accept': 'text/plain'} http_post.bin 502 CaseInsensitiveDict({'content-length': '1613', 'alt-svc': 'quic=":443"; ma=2592000; v="46,44,43,39"', 'connection': 'close', 'date': 'Tue, 09 Apr 2019 09:31:02 GMT', 'referrer-policy': 'no-referrer', 'content-type': 'text/html; charset=UTF-8'})

Error 502 (Server Error)!!1

502. That’s an error.

The server encountered a temporary error and could not complete your request.

Please try again in 30 seconds. That’s all we know.

ahducheng avatar Apr 09 '19 09:04 ahducheng