https://dagster.io/ logo
#ask-community
Title
# ask-community
a

Alexander Whillas

08/24/2022, 4:52 AM
Error messages. I'm getting this error but none of it is very helpful. Where is this location? What does the Path refer to? What is OpsRootQuery`?
Copy code
Operation name: OpsRootQuery

Message: 'TypedPythonDict.String.String'

Path: ["repositoryOrError","usedSolids",7,"definition","outputDefinitions",0,"type"]

Locations: [{"line":31,"column":5}]
c

chris

08/24/2022, 7:46 PM
Hey Alexander - what's the context where you're getting this error? It's definitely a rough one
a

Alexander Whillas

08/24/2022, 9:25 PM
i stack trace is also not much more informative, but looks like a type error of some kind. but where in my code is a mystery
Copy code
An error occurred while resolving field OutputDefinition.type
Traceback (most recent call last):
File "/usr/local/lib/python3.9/site-packages/graphql/execution/executor.py", line 452, in resolve_or_error
return executor.execute(resolve_fn, source, info, **args)
File "/usr/local/lib/python3.9/site-packages/graphql/execution/executors/sync.py", line 16, in execute
return fn(*args, **kwargs)
File "/usr/local/lib/python3.9/site-packages/dagster_graphql/schema/solids.py", line 91, in resolve_type
return to_dagster_type(
File "/usr/local/lib/python3.9/site-packages/dagster_graphql/schema/dagster_types.py", line 36, in to_dagster_type
pipeline_snapshot.dagster_type_namespace_snapshot.get_dagster_type_snap(dagster_type_key)
File "/usr/local/lib/python3.9/site-packages/dagster/core/snap/dagster_types.py", line 55, in get_dagster_type_snap
return self.all_dagster_type_snaps_by_key[key]
KeyError: 'TypedPythonDict.String.String'
c

chris

08/24/2022, 9:27 PM
what are you actually doing when this is happening? Is this just on loading dagit?
a

Alexander Whillas

08/24/2022, 9:27 PM
actually, thats in Dagit. The error seems to be in the user code which is running as a grpc continer
still, confusing error message
thanks for the help anyway
c

chris

08/24/2022, 9:28 PM
yea that's definitely rough - what was the user code error? It looks like something slipped through the cracks in the graphql endpoint that ended up causing additional nonsense to occur
a

Alexander Whillas

08/24/2022, 9:28 PM
actual error is
AttributeError: 'SensorEvaluationContext' object has no attribute 'log'
the new code is a sensor i'm trying to write so i guess all the bugs are in there as I haven't figure out how to debug an SQS queue sensor locally
c

chris

08/24/2022, 9:30 PM
that is super weird
i almost wonder if they're unrelated
a

Alexander Whillas

08/24/2022, 9:31 PM
I guess the error could be from something unrelated but that is the only obvious thing i can see right now
c

chris

08/24/2022, 9:31 PM
I see. well, glad you got it working. Will be keeping an eye out for related stuff in the future
👍 1
a

Alexander Whillas

08/24/2022, 9:32 PM
haven't fixed it yet, but will
ummm, how does one log in a sensor?
c

chris

08/24/2022, 9:43 PM
oh wait - i totally missed what you were trying to do. That isn't supported yet 😅 😅 😅
https://github.com/dagster-io/dagster/issues/4292 one of our top upvoted issues, and something that is on the roadmap
a

Alexander Whillas

08/24/2022, 9:44 PM
aH! I just assumed the sensor context would have the same log method as the Op context. my bad
c

chris

08/24/2022, 9:46 PM
it's an understandable mistake
a

Alexander Whillas

08/24/2022, 10:02 PM
i fixed that error and the Dagit error persists :?
c

chris

08/25/2022, 7:20 PM
yea I'm wondering if there's something wrong here with snapshots / communication between user code and dagit
what's your setup look like? Are you running different versions of dagster in user code and the webserver?
11 Views