hyperledger-archives / education-sawtooth-simple-supply

https://wiki.hyperledger.org/display/LMDWG
Apache License 2.0
51 stars 61 forks source link

{simple-supply-rest-api},{ simple-supply-subscriber} ,{simple-supply-postgres} Traceback (most recent call last): #53

Open elyssa12 opened 2 years ago

elyssa12 commented 2 years ago

2021-12-08 07:33:06.631 UTC [59] ERROR: column "none" does not exist at character 67 simple-supply-postgres | 2021-12-08 07:33:06.631 UTC [59] STATEMENT: simple-supply-postgres | SELECT block_num, block_id FROM blocks WHERE block_num = None simple-supply-postgres | simple-supply-subscriber | Unable to handle event: column "none" does not exist simple-supply-subscriber | LINE 2: ...ELECT block_num, block_id FROM blocks WHERE block_num = None simple-supply-subscriber | ^ simple-supply-subscriber | Traceback (most recent call last): simple-supply-subscriber | File "/project/sawtooth-simple-supply/subscriber/simple_supply_subscriber/event_handling.py", line 43, in _handle_events simple-supply-subscriber | is_duplicate = _resolve_if_forked(database, block_num, block_id) simple-supply-subscriber | File "/project/sawtooth-simple-supply/subscriber/simple_supply_subscriber/event_handling.py", line 66, in _resolve_if_forked simple-supply-subscriber | existing_block = database.fetch_block(block_num) simple-supply-subscriber | File "/project/sawtooth-simple-supply/subscriber/simple_supply_subscriber/database.py", line 222, in fetch_block simple-supply-subscriber | cursor.execute(fetch) simple-supply-subscriber | File "/usr/local/lib/python3.6/dist-packages/psycopg2/extras.py", line 236, in execute simple-supply-subscriber | return super().execute(query, vars) simple-supply-subscriber | psycopg2.errors.UndefinedColumn: column "none" does not exist simple-supply-subscriber | LINE 2: ...ELECT block_num, block_id FROM blocks WHERE block_num = None

simple-supply-rest-api | Traceback (most recent call last): simple-supply-rest-api | File "/project/sawtooth-simple-supply/bin/simple-supply-rest-api", line 27, in simple-supply-rest-api | from simple_supply_rest_api.main import main simple-supply-rest-api | File "/project/sawtooth-simple-supply/rest_api/simple_supply_rest_api/main.py", line 25, in simple-supply-rest-api | from aiohttp import web simple-supply-rest-api | File "/usr/lib/python3/dist-packages/aiohttp/init.py", line 6, in simple-supply-rest-api | from .client import * # noqa simple-supply-rest-api | File "/usr/lib/python3/dist-packages/aiohttp/client.py", line 16, in simple-supply-rest-api | from . import client_exceptions, client_reqrep simple-supply-rest-api | File "/usr/lib/python3/dist-packages/aiohttp/client_reqrep.py", line 17, in simple-supply-rest-api | from . import hdrs, helpers, http, multipart, payload simple-supply-rest-api | File "/usr/lib/python3/dist-packages/aiohttp/helpers.py", line 666, in simple-supply-rest-api | class CeilTimeout(async_timeout.timeout): simple-supply-rest-api | TypeError: function() argument 1 must be code, not str

Abilash-K commented 2 years ago

Did you get a fix?

elyssa12 commented 2 years ago

已收到,谢谢。

查阅后,将尽快给您回复。

Received, thank you.

After reviewing, we will reply to you as soon as possible.