Skip to content

Instantly share code, notes, and snippets.

@zopyx
Created November 6, 2018 04:52
Show Gist options
  • Save zopyx/7d138f9928c1ae4d5aef393b238ef45e to your computer and use it in GitHub Desktop.
Save zopyx/7d138f9928c1ae4d5aef393b238ef45e to your computer and use it in GitHub Desktop.
Unhandled exception occurred
Traceback (most recent call last):
File "/Users/ajung/src/kataster/lib/python3.7/site-packages/guillotina/traversal.py", line 393, in real_resolve
resource, tail = await self.traverse(request)
File "/Users/ajung/src/kataster/lib/python3.7/site-packages/guillotina/traversal.py", line 519, in traverse
return await traverse(request, root, path)
File "/Users/ajung/src/kataster/lib/python3.7/site-packages/guillotina/traversal.py", line 114, in traverse
return await traverse(request, context, path[1:])
File "/Users/ajung/src/kataster/lib/python3.7/site-packages/guillotina/traversal.py", line 106, in traverse
request.container_settings = await annotations_container.async_get(REGISTRY_DATA_KEY)
File "/Users/ajung/src/kataster/lib/python3.7/site-packages/guillotina/annotations.py", line 53, in async_get
obj = await self.obj._p_jar.get_annotation(self.obj, key)
File "/Users/ajung/src/kataster/lib/python3.7/site-packages/guillotina/db/transaction.py", line 503, in get_annotation
result = await self._get_annotation(base_obj, id)
File "/Users/ajung/src/kataster/lib/python3.7/site-packages/guillotina/db/transaction.py", line 56, in _wrapper
result = await func(self, *args, **kwargs)
File "/Users/ajung/src/kataster/lib/python3.7/site-packages/guillotina/db/transaction.py", line 496, in _get_annotation
result = await self._manager._storage.get_annotation(self, base_obj._p_oid, id)
File "/Users/ajung/src/kataster/lib/python3.7/site-packages/guillotina/db/storages/pg.py", line 815, in get_annotation
result = await self.get_one_row(txn, GET_ANNOTATION, oid, id, prepare=True)
File "/Users/ajung/src/kataster/lib/python3.7/site-packages/guillotina/db/storages/pg.py", line 679, in get_one_row
return await smt.fetchrow(*args)
File "/Users/ajung/src/kataster/lib/python3.7/site-packages/asyncpg/prepared_stmt.py", line 194, in fetchrow
data = await self.__bind_execute(args, 1, timeout)
File "/Users/ajung/src/kataster/lib/python3.7/site-packages/asyncpg/prepared_stmt.py", line 203, in __bind_execute
self._state, args, '', limit, True, timeout)
File "asyncpg/protocol/protocol.pyx", line 175, in bind_execute
File "asyncpg/protocol/prepared_stmt.pyx", line 120, in asyncpg.protocol.protocol.PreparedStatementState._encode_bind_msg
asyncpg.exceptions._base.InterfaceError: the server expects 0 arguments for this query, 2 were passed
HINT: Check the query against the passed list of arguments. Note that parameters are supported only in SELECT, INSERT, UPDATE, DELETE, and VALUES statements, and will *not* work in statements like CREATE VIEW or DECLARE CURSOR.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment