Skip to content

Instantly share code, notes, and snippets.

@vivekteega
Last active January 15, 2024 05:16
Show Gist options
  • Select an option

  • Save vivekteega/3bd44117d35bd865395528a86cbfc693 to your computer and use it in GitHub Desktop.

Select an option

Save vivekteega/3bd44117d35bd865395528a86cbfc693 to your computer and use it in GitHub Desktop.
Token Tracker error log
2024-01-14 12:09:33,983:__main__:Before tx loop
Processing stateF
2024-01-14 12:09:33,984:__main__:Completed tx loop
2024-01-14 12:09:34,275:__main__:Received: {"id":"0","data":{"height":6523402,"hash":"9f0a41b77c58f9ce01a19ce10290976fbf16b6b1331ef624b3982676b55328c1"}}
/home/production/deployed/ftt-blockbook-migration-rescan/py3/lib/python3.8/site-packages/urllib3/connectionpool.py:1013: InsecureRequestWarning: Unverified HTTPS request is being made to host '0.0.0.0'. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings
warnings.warn(
2024-01-14 12:10:00,422:__main__:Before tx loop
2024-01-14 12:10:00,422:__main__:Completed tx loop
2024-01-14 12:10:00,688:__main__:Connection error: sent 1011 (internal error) keepalive ping timeout; no close frame received
/home/production/deployed/ftt-blockbook-migration-rescan/py3/lib/python3.8/site-packages/urllib3/connectionpool.py:1013: InsecureRequestWarning: Unverified HTTPS request is being made to host '0.0.0.0'. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings
warnings.warn(
2024-01-14 12:10:26,191:__main__:Current block height is 6523405
2024-01-14 12:10:26,192:__main__:Processing block 6523403
/home/production/deployed/ftt-blockbook-migration-rescan/py3/lib/python3.8/site-packages/urllib3/connectionpool.py:1013: InsecureRequestWarning: Unverified HTTPS request is being made to host '0.0.0.0'. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings
warnings.warn(
/home/production/deployed/ftt-blockbook-migration-rescan/py3/lib/python3.8/site-packages/urllib3/connectionpool.py:1013: InsecureRequestWarning: Unverified HTTPS request is being made to host '0.0.0.0'. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings
warnings.warn(
> /home/production/deployed/ftt-blockbook-migration-rescan/tracktokens_smartcontracts.py(34)newMultiRequest()
-> raise Exception("Non-200 status code")
(Pdb) response.status-code
*** AttributeError: 'Response' object has no attribute 'status'
(Pdb) response.status_code
400
(Pdb) response.status_code
400
(Pdb) response.status_code
400
(Pdb) f"{current_server}api/v1/{apicall}"
'https://0.0.0.0:9166/api/v1/block/'
(Pdb) response['data']
*** TypeError: 'Response' object is not subscriptable
(Pdb) response
<Response [400]>
(Pdb) response
2024-01-14 20:10:35,674:__main__:Before tx loop
Processing stateF
Processing stateF
2024-01-14 20:10:35,675:__main__:Completed tx loop
2024-01-14 20:10:35,706:__main__:Received: {"id":"0","data":{"height":6523685,"hash":"3fd82ceb39f7fc77ce7ed6f255390c31e9c48fc24dc0c7f3efe0c7b74d09496f"}}
/home/production/deployed/ftt-blockbook-migration-rescan/py3/lib/python3.8/site-packages/urllib3/connectionpool.py:1013: InsecureRequestWarning: Unverified HTTPS request is being made to host '0.0.0.0'. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings
warnings.warn(
2024-01-14 20:11:00,659:__main__:Before tx loop
Processing stateF
2024-01-14 20:11:00,665:__main__:Completed tx loop
2024-01-14 20:11:00,762:__main__:Connection error: sent 1011 (internal error) keepalive ping timeout; no close frame received
/home/production/deployed/ftt-blockbook-migration-rescan/py3/lib/python3.8/site-packages/urllib3/connectionpool.py:1013: InsecureRequestWarning: Unverified HTTPS request is being made to host '0.0.0.0'. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings
warnings.warn(
2024-01-14 20:11:15,217:__main__:Current block height is 6523687
2024-01-14 20:11:15,217:__main__:Processing block 6523686
/home/production/deployed/ftt-blockbook-migration-rescan/py3/lib/python3.8/site-packages/urllib3/connectionpool.py:1013: InsecureRequestWarning: Unverified HTTPS request is being made to host '0.0.0.0'. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings
warnings.warn(
> /home/production/deployed/ftt-blockbook-migration-rescan/tracktokens_smartcontracts.py(453)processBlock()
-> blockinfo = newMultiRequest(f"block/{blockhash}")
(Pdb) blockindex
6523686
(Pdb) response
{'blockHash': ''}
(Pdb)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment