polkascan / polkascan-pre-explorer-api

Polkascan PRE Explorer API
GNU General Public License v3.0
7 stars 23 forks source link

Error when trying to access transaction on westend #8

Open gituser opened 3 years ago

gituser commented 3 years ago

Hi.

Used docker to run the polkascan-os in docker for westend chain, but keep gettings this error when I try to hit any transaction via API, maybe you could look into it:

explorer-api_1       | [2021-02-20 21:28:31 +0000] [10] [ERROR] Traceback (most recent call last):
explorer-api_1       |   File "/usr/local/lib/python3.6/site-packages/falcon/api.py", line 244, in __call__
explorer-api_1       |     responder(req, resp, **params)
explorer-api_1       |   File "/usr/src/app/app/resources/base.py", line 109, in on_get
explorer-api_1       |     cache_response = self.process_get_response(req, resp, **kwargs)
explorer-api_1       |   File "/usr/src/app/app/resources/base.py", line 183, in process_get_response
explorer-api_1       |     data=self.serialize_item(item),
explorer-api_1       |   File "/usr/src/app/app/resources/polkascan.py", line 279, in serialize_item
explorer-api_1       |     data['attributes']['datetime'] = block.datetime.replace(tzinfo=pytz.UTC).isoformat()
explorer-api_1       | AttributeError: 'NoneType' object has no attribute 'replace'

@arjanz