Skip to content

Instantly share code, notes, and snippets.

@rockyburt
Created September 13, 2021 19:52
Show Gist options
  • Save rockyburt/fba805c0dbd7c9a34d9ad6a750e86cb0 to your computer and use it in GitHub Desktop.
Save rockyburt/fba805c0dbd7c9a34d9ad6a750e86cb0 to your computer and use it in GitHub Desktop.
File "/rentals/api/src/Rentals-API/./rentalsapi/web/middleware.py", line 65, in load
check, engine = await self.app_factory()
File "/rentals/api/src/Rentals-API/./rentalsapi/web/__init__.py", line 25, in init_app
quart_app = cast(types.Application, quartapp.init_app(engine).asgi_app)
File "/rentals/api/src/Rentals-API/./rentalsapi/web/quartapp.py", line 27, in init_app
schema = strawberry.Schema(query=engine.query_class, extensions=[ApolloTracingExtension])
File "/rentals/api/.venv/lib/python3.9/site-packages/strawberry/schema/schema.py", line 85, in __init__
self._schema = GraphQLSchema(
File "/rentals/api/.venv/lib/python3.9/site-packages/graphql/type/schema.py", line 208, in __init__
collect_referenced_types(query)
File "/rentals/api/.venv/lib/python3.9/site-packages/graphql/type/schema.py", line 422, in collect_referenced_types
for field in named_type.fields.values():
File "/usr/lib/python3.9/functools.py", line 969, in __get__
val = self.func(instance)
File "/rentals/api/.venv/lib/python3.9/site-packages/graphql/type/definition.py", line 730, in fields
fields = resolve_thunk(self._fields)
File "/rentals/api/.venv/lib/python3.9/site-packages/graphql/type/definition.py", line 292, in resolve_thunk
return thunk() if callable(thunk) else thunk
File "/rentals/api/.venv/lib/python3.9/site-packages/strawberry/schema/schema_converter.py", line 294, in get_graphql_fields
graphql_fields[field_name] = self.from_field(field)
File "/rentals/api/.venv/lib/python3.9/site-packages/strawberry/schema/schema_converter.py", line 152, in from_field
graphql_arguments[argument_name] = self.from_argument(argument)
File "/rentals/api/.venv/lib/python3.9/site-packages/strawberry/schema/schema_converter.py", line 83, in from_argument
argument_type = self.from_optional(argument.type)
File "/rentals/api/.venv/lib/python3.9/site-packages/strawberry/schema/schema_converter.py", line 273, in from_optional
return self.from_type(type_.of_type)
File "/rentals/api/.venv/lib/python3.9/site-packages/strawberry/schema/schema_converter.py", line 455, in from_type
return self.from_scalar(type_)
File "/rentals/api/.venv/lib/python3.9/site-packages/strawberry/schema/schema_converter.py", line 414, in from_scalar
scalar_definition = scalar._scalar_definition
AttributeError: 'function' object has no attribute '_scalar_definition'
[2021-09-13 15:51:36] uvicorn.error: I: ASGI 'lifespan' protocol appears unsupported.
[2021-09-13 15:51:36] uvicorn.error: I: Application startup complete.
^C[2021-09-13 15:51:38] uvicorn.error: I: Shutting down
[2021-09-13 15:51:38] uvicorn.error: I: Finished server process [1670]
[2021-09-13 15:51:38,424] uvicorn.error: I: Stopping reloader process [1668]
gander@rentalsapi_devshell:/rentals/api/src/Rentals-API$ python -c "import pkg_resources; print(pkg_resources.get_distribution('strawberry-graphql'))"
strawberry-graphql 0.77.6
gander@rentalsapi_devshell:/rentals/api/src/Rentals-API$
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment