Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TypeError: 'bool' object is not iterable #24

Open
ch-sander opened this issue Oct 9, 2024 · 0 comments
Open

TypeError: 'bool' object is not iterable #24

ch-sander opened this issue Oct 9, 2024 · 0 comments

Comments

@ch-sander
Copy link
Contributor

Error Message when defining the shmarql sparql endpoint for https://yasgui.org/

log

dataria-shmarql   | INFO:     172.18.0.1:33050 - "GET /sparql?query=ASK%20%7B%3Fx%20%3Fy%20%3Fz%7D HTTP/1.0" 500 Internal Server Error
dataria-shmarql   | ERROR:    Exception in ASGI application
dataria-shmarql   | Traceback (most recent call last):
dataria-shmarql   |   File "/usr/local/lib/python3.9/site-packages/uvicorn/protocols/http/h11_impl.py", line 407, in run_asgi
dataria-shmarql   |     result = await app(  # type: ignore[func-returns-value]
dataria-shmarql   |   File "/usr/local/lib/python3.9/site-packages/uvicorn/middleware/proxy_headers.py", line 69, in __call__
dataria-shmarql   |     return await self.app(scope, receive, send)
dataria-shmarql   |   File "/usr/local/lib/python3.9/site-packages/fastapi/applications.py", line 199, in __call__
dataria-shmarql   |     await super().__call__(scope, receive, send)
dataria-shmarql   |   File "/usr/local/lib/python3.9/site-packages/starlette/applications.py", line 112, in __call__
dataria-shmarql   |     await self.middleware_stack(scope, receive, send)
dataria-shmarql   |   File "/usr/local/lib/python3.9/site-packages/starlette/middleware/errors.py", line 181, in __call__
dataria-shmarql   |     raise exc from None
dataria-shmarql   |   File "/usr/local/lib/python3.9/site-packages/starlette/middleware/errors.py", line 159, in __call__
dataria-shmarql   |     await self.app(scope, receive, _send)
dataria-shmarql   |   File "/usr/local/lib/python3.9/site-packages/starlette/middleware/cors.py", line 86, in __call__
dataria-shmarql   |     await self.simple_response(scope, receive, send, request_headers=headers)
dataria-shmarql   |   File "/usr/local/lib/python3.9/site-packages/starlette/middleware/cors.py", line 142, in simple_response
dataria-shmarql   |     await self.app(scope, receive, send)
dataria-shmarql   |   File "/usr/local/lib/python3.9/site-packages/starlette/exceptions.py", line 82, in __call__
dataria-shmarql   |     raise exc from None
dataria-shmarql   |   File "/usr/local/lib/python3.9/site-packages/starlette/exceptions.py", line 71, in __call__
dataria-shmarql   |     await self.app(scope, receive, sender)
dataria-shmarql   |   File "/usr/local/lib/python3.9/site-packages/starlette/routing.py", line 580, in __call__
dataria-shmarql   |     await route.handle(scope, receive, send)
dataria-shmarql   |   File "/usr/local/lib/python3.9/site-packages/starlette/routing.py", line 241, in handle
dataria-shmarql   |     await self.app(scope, receive, send)
dataria-shmarql   |   File "/usr/local/lib/python3.9/site-packages/starlette/routing.py", line 52, in app
dataria-shmarql   |     response = await func(request)
dataria-shmarql   |   File "/usr/local/lib/python3.9/site-packages/fastapi/routing.py", line 214, in app
dataria-shmarql   |     raw_response = await run_endpoint_function(
dataria-shmarql   |   File "/usr/local/lib/python3.9/site-packages/fastapi/routing.py", line 149, in run_endpoint_function
dataria-shmarql   |     return await dependant.call(**values)
dataria-shmarql   |   File "/src/app/main.py", line 313, in sparql_get
dataria-shmarql   |     new_result.qt_turtle(),
dataria-shmarql   |   File "/src/app/px_util.py", line 61, in qt_turtle
dataria-shmarql   |     tmp_store = self.to_store()
dataria-shmarql   |   File "/src/app/px_util.py", line 54, in to_store
dataria-shmarql   |     tmp_store.extend([Quad(s, p, o) for s, p, o in self.result])
dataria-shmarql   | TypeError: 'bool' object is not iterable
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant