-
Notifications
You must be signed in to change notification settings - Fork 93
tests/Demo.py request time out #487
Comments
root@513f6ffd6abe:/project/avalon# cd tests/
[09:11:33 INFO main] Request Json [09:11:33 INFO main] *Received Response [09:11:33 INFO main] ---------------- Input file name: json_02.json ------------- [09:11:33 INFO main] ********** Worker details Updated with Worker ID********* [09:11:33 INFO main] Request Json [09:11:33 INFO main] *Received Response [09:11:33 INFO avalon_sdk.worker.worker_details] Updating Worker Details [09:11:33 INFO avalon_crypto_utils.signature] Encrypting Workorder Data [09:11:43 ERROR avalon_sdk.http_client.http_jrpc_client] no response from server: timed out |
I tried to run this and could not reproduce this issue on latest avalon "master" branch. Please check and confirm. |
| 2020-05-20 08:07:57,488 - INFO - b'L\nwo-timestamps'
avalon-sgx-enclave-manager | File /tmp/account_ledger.json WRITE has been completed
avalon-sgx-enclave-manager |
avalon-lmdb | 2020-05-20 08:07:57,488 - INFO - ['L', 'wo-timestamps']
avalon-sgx-enclave-manager | Avalon Intel SGX Enclave initialized.
[08:11:06 INFO main] Request Json
{"jsonrpc": "2.0", "method": "WorkerLookUp", "id": 1, "params": {"workerType": 1, "workOrderId": null}}
[08:11:16 ERROR avalon_sdk.http_client.http_jrpc_client] no response from server: timed out
Traceback (most recent call last):
File "/usr/local/lib/python3.6/dist-packages/avalon_sdk/http_client/http_jrpc_client.py", line 62, in _postmsg
response = opener.open(request, timeout=10)
File "/usr/lib/python3.6/urllib/request.py", line 526, in open
response = self._open(req, data)
File "/usr/lib/python3.6/urllib/request.py", line 544, in _open
'_open', req)
File "/usr/lib/python3.6/urllib/request.py", line 504, in _call_chain
result = func(*args)
File "/usr/lib/python3.6/urllib/request.py", line 1353, in http_open
return self.do_open(http.client.HTTPConnection, req)
File "/usr/lib/python3.6/urllib/request.py", line 1328, in do_open
r = h.getresponse()
File "/usr/lib/python3.6/http/client.py", line 1356, in getresponse
response.begin()
File "/usr/lib/python3.6/http/client.py", line 307, in begin
version, status, reason = self._read_status()
File "/usr/lib/python3.6/http/client.py", line 268, in _read_status
line = str(self.fp.readline(_MAXLINE + 1), "iso-8859-1")
File "/usr/lib/python3.6/socket.py", line 586, in readinto
return self._sock.recv_into(b)
socket.timeout: timed out
[08:11:16 WARNING STDERR] Traceback (most recent call last):
[08:11:16 WARNING STDERR] File "/usr/local/lib/python3.6/dist-packages/avalon_sdk/http_client/http_jrpc_client.py", line 62, in _postmsg
[08:11:16 WARNING STDERR] response = opener.open(request, timeout=10)
[08:11:16 WARNING STDERR] File "/usr/lib/python3.6/urllib/request.py", line 526, in open
[08:11:16 WARNING STDERR] response = self._open(req, data)
[08:11:16 WARNING STDERR] File "/usr/lib/python3.6/urllib/request.py", line 544, in _open
[08:11:16 WARNING STDERR] '_open', req)
[08:11:16 WARNING STDERR] File "/usr/lib/python3.6/urllib/request.py", line 504, in _call_chain
[08:11:16 WARNING STDERR] result = func(*args)
[08:11:16 WARNING STDERR] File "/usr/lib/python3.6/urllib/request.py", line 1353, in http_open
[08:11:16 WARNING STDERR] return self.do_open(http.client.HTTPConnection, req)
[08:11:16 WARNING STDERR] File "/usr/lib/python3.6/urllib/request.py", line 1328, in do_open
[08:11:16 WARNING STDERR] r = h.getresponse()
[08:11:16 WARNING STDERR] File "/usr/lib/python3.6/http/client.py", line 1356, in getresponse
[08:11:16 WARNING STDERR] response.begin()
[08:11:16 WARNING STDERR] File "/usr/lib/python3.6/http/client.py", line 307, in begin
[08:11:16 WARNING STDERR] version, status, reason = self._read_status()
[08:11:16 WARNING STDERR] File "/usr/lib/python3.6/http/client.py", line 268, in _read_status
[08:11:16 WARNING STDERR] line = str(self.fp.readline(_MAXLINE + 1), "iso-8859-1")
[08:11:16 WARNING STDERR] File "/usr/lib/python3.6/socket.py", line 586, in readinto
[08:11:16 WARNING STDERR] return self._sock.recv_into(b)
[08:11:16 WARNING STDERR] socket
[08:11:16 WARNING STDERR] .
[08:11:16 WARNING STDERR] timeout
[08:11:16 WARNING STDERR] :
[08:11:16 WARNING STDERR] timed out
[08:11:16 WARNING STDERR]
[08:11:16 WARNING STDERR] During handling of the above exception, another exception occurred:
[08:11:16 WARNING STDERR] Traceback (most recent call last):
[08:11:16 WARNING STDERR] File "Demo.py", line 295, in
[08:11:16 WARNING STDERR] Main()
[08:11:16 WARNING STDERR] File "Demo.py", line 291, in Main
[08:11:16 WARNING STDERR] local_main(config)
[08:11:16 WARNING STDERR] File "Demo.py", line 121, in local_main
[08:11:16 WARNING STDERR] response = uri_client._postmsg(input_json_str1)
[08:11:16 WARNING STDERR] File "/usr/local/lib/python3.6/dist-packages/avalon_sdk/http_client/http_jrpc_client.py", line 75, in _postmsg
[08:11:16 WARNING STDERR] raise MessageException('no response from server: {0}'.format(err))
[08:11:16 WARNING STDERR] avalon_sdk.http_client.http_jrpc_client
[08:11:16 WARNING STDERR] .
[08:11:16 WARNING STDERR] MessageException
[08:11:16 WARNING STDERR] :
[08:11:16 WARNING STDERR] no response from server: timed out
The text was updated successfully, but these errors were encountered: