Skip to content

Instantly share code, notes, and snippets.

@vodolaz
Created February 8, 2022 19:48
Show Gist options
  • Save vodolaz/bf6694c749e63c35cec79de8cf3d3aa3 to your computer and use it in GitHub Desktop.
Save vodolaz/bf6694c749e63c35cec79de8cf3d3aa3 to your computer and use it in GitHub Desktop.
proxy log
+ python3 -m proxy --hostname 0.0.0.0 --port 9090 --enable-web-server --plugins proxy.plugin.SolanaProxyPlugin --timeout 300
2022-02-08 19:46:52.760 D environment.py:53 9 Proxy:neon_cli {} Calling: neon-cli --commitment=recent --url http://10.2.0.2:8899 --evm_loader=53DfF883gyixYNXnM7s5xhdeyV8mVk9T4i2hGV9vG9io --logging_ctx={} -vvv neon-elf-params
2022-02-08 19:47:36.152 D solana_rest_api.py:68 193 Proxy:EthereumModel {} Worker id 0
2022-02-08 19:47:36.153 D solana_rest_api_tools.py:22 193 Proxy:neon_config_load {} loading the neon config dict for the first time!
2022-02-08 19:47:36.153 D environment.py:53 193 Proxy:neon_cli {} Calling: neon-cli --commitment=recent --url http://10.2.0.2:8899 --evm_loader=53DfF883gyixYNXnM7s5xhdeyV8mVk9T4i2hGV9vG9io --logging_ctx={} -vvv neon-elf-params
2022-02-08 19:47:36.190 D solana_rest_api_tools.py:37 193 Proxy:neon_config_load {} {'NEON_PAYMENT_TO_DEPOSIT': '5000', 'NEON_PERMISSION_ALLOWANCE_TOKEN': 'B2m2PGZQuZzaVMkeH8fLR8EbefiEy64ybCxVuzhx6RD1', 'NEON_PERMISSION_DENIAL_TOKEN': 'D73ziEn1qS4egcMfADTZJnnn5XCENdcrDDcwAnSEvqGX', 'NEON_PAYMENT_TO_TREASURE': '5000', 'NEON_ACCOUNT_MAX_SIZE': '256', 'NEON_POOL_BASE': '4sW3SZDJB7qXUyCYKA7pFL8eCTfm3REr8oSiKkww7MaT', 'NEON_TOKEN_MINT_DECIMALS': '9', 'NEON_SEED_VERSION': '1', 'NEON_REVISION': '96008c9277559009a7e8f4146f3ca8a500f0662a', 'NEON_MINIMAL_CONTRACT_ALLOWANCE_BALANCE': '0', 'NEON_MINIMAL_CLIENT_ALLOWANCE_BALANCE': '0', 'NEON_TOKEN_MINT': 'HPsV9Deocecw3GeZv1FkAPNCBRfuVyfw9MMwjwRe1xaU', 'NEON_CHAIN_ID': '111', 'NEON_PKG_VERSION': '0.6.0-dev', 'load_time': 1644349656.190408, 'web3_clientVersion': 'Neon/v0.6.0-dev-96008c9277559009a7e8f4146f3ca8a500f0662a'}
2022-02-08 19:47:36.192 E handler.py:413 193 proxy.http.handler:Undefined {} Exception while handling connection <socket.socket fd=61, family=AddressFamily.AF_INET, type=SocketKind.SOCK_STREAM, proto=0, laddr=('172.20.0.7', 9090), raddr=('172.20.0.1', 56298)>
Traceback (most recent call last):
File "/opt/proxy/http/handler.py", line 405, in run
teardown = self.run_once()
File "/opt/proxy/http/handler.py", line 390, in run_once
teardown = self.handle_events(readables, writables)
File "/opt/proxy/http/handler.py", line 193, in handle_events
teardown = self.handle_readables(readables)
File "/opt/proxy/http/handler.py", line 349, in handle_readables
upgraded_sock = plugin.on_request_complete()
File "/opt/proxy/http/server/web.py", line 155, in on_request_complete
self.route.handle_request(self.request)
File "/opt/proxy/plugin/solana_rest_api.py", line 515, in handle_request
self.handle_request_impl(request)
File "/opt/proxy/plugin/solana_rest_api.py", line 534, in handle_request_impl
self.info('handle_request <<< %s 0x%x %s', threading.get_ident(), id(self.model), request.body.decode('utf8'))
AttributeError: 'NoneType' object has no attribute 'decode'
2022-02-08 19:47:48.698 D solana_rest_api.py:68 184 Proxy:EthereumModel {} Worker id 1
2022-02-08 19:47:48.698 D solana_rest_api_tools.py:22 184 Proxy:neon_config_load {} loading the neon config dict for the first time!
2022-02-08 19:47:48.698 D environment.py:53 184 Proxy:neon_cli {} Calling: neon-cli --commitment=recent --url http://10.2.0.2:8899 --evm_loader=53DfF883gyixYNXnM7s5xhdeyV8mVk9T4i2hGV9vG9io --logging_ctx={} -vvv neon-elf-params
2022-02-08 19:47:48.761 D solana_rest_api_tools.py:37 184 Proxy:neon_config_load {} {'NEON_TOKEN_MINT_DECIMALS': '9', 'NEON_SEED_VERSION': '1', 'NEON_CHAIN_ID': '111', 'NEON_MINIMAL_CLIENT_ALLOWANCE_BALANCE': '0', 'NEON_ACCOUNT_MAX_SIZE': '256', 'NEON_PERMISSION_DENIAL_TOKEN': 'D73ziEn1qS4egcMfADTZJnnn5XCENdcrDDcwAnSEvqGX', 'NEON_PAYMENT_TO_DEPOSIT': '5000', 'NEON_MINIMAL_CONTRACT_ALLOWANCE_BALANCE': '0', 'NEON_TOKEN_MINT': 'HPsV9Deocecw3GeZv1FkAPNCBRfuVyfw9MMwjwRe1xaU', 'NEON_REVISION': '96008c9277559009a7e8f4146f3ca8a500f0662a', 'NEON_PAYMENT_TO_TREASURE': '5000', 'NEON_PERMISSION_ALLOWANCE_TOKEN': 'B2m2PGZQuZzaVMkeH8fLR8EbefiEy64ybCxVuzhx6RD1', 'NEON_POOL_BASE': '4sW3SZDJB7qXUyCYKA7pFL8eCTfm3REr8oSiKkww7MaT', 'NEON_PKG_VERSION': '0.6.0-dev', 'load_time': 1644349668.761134, 'web3_clientVersion': 'Neon/v0.6.0-dev-96008c9277559009a7e8f4146f3ca8a500f0662a'}
2022-02-08 19:47:48.762 I solana_rest_api.py:534 184 Proxy:SolanaProxyPlugin {"req_id": "1aa1a52"} handle_request <<< 140148274689792 0x7f76d0251190 {"method": "eth_blockNumber", "params": [], "id": 1, "jsonrpc": "2.0"}
2022-02-08 19:47:48.762 D solana_rest_api.py:539 184 Proxy:SolanaProxyPlugin {"req_id": "1aa1a52"} Request payload: {'method': 'eth_blockNumber', 'params': [], 'id': 1, 'jsonrpc': '2.0'}
2022-02-08 19:47:48.793 D solana_rest_api.py:127 184 Proxy:EthereumModel {"req_id": "1aa1a52"} eth_blockNumber 0x433e4f
2022-02-08 19:47:48.794 I solana_rest_api.py:555 184 Proxy:SolanaProxyPlugin {"req_id": "1aa1a52"} handle_request >>> 140148274689792 0x7f76d0251190 {"jsonrpc": "2.0", "id": 1, "result": "0x433e4f"} eth_blockNumber resp_time_ms= 31.488656997680664
2022-02-08 19:47:48.794 I solana_rest_api.py:516 184 Proxy:SolanaProxyPlugin {"req_id": "1aa1a52"} Request processed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment