Hi everyone.. is there a way to get the full stack...
# ask-the-community
e
Hi everyone.. is there a way to get the full stacktrace of an error? I’m using pyflyte run locally and just getting this as the error:`Failed with Unknown Exception <class 'elasticsearch.exceptions.SerializationError'> Reason: ({'query': {'term': {'entity_id': Promise(node:.entity_id)}}}, TypeError("Unable to serialize Promise(node:.entity_id) (type: <class 'flytekit.core.promise.Promise'>)"))`
k
ElasticSearch?
e
one of my task connect to ES… but have many connections in the workflow
k
It seems it got some serialization error
s
Have you been able to resolve this error, @Eduardo Matus?
e
Hi @Samhita Alla. Had to downgrade the flyte installed version and worked again… as example, I have this line
print(f"running workflow with entity_id: {entity_id}")
and running the workflow in the console I have this:
running workflow with entity_id: Promise(node:.entity_id)
and once the execution reach that line
Copy code
running workflow with entity_id: Resolved(entity_id=scalar {
  primitive {
    integer: 200
  }
}
)
s
Which flyte version have you downgraded from?
e
from flytekit 1.4.1 to flytekit==1.3.0
s
Can you share the code?
e
let me prepare an example… the code is have many moving parts…
d
Also @Eduardo Matus once your issue is fixed, you could contribute to making this error message more informational in the future Just comment this issue, it would be really helpful: https://github.com/flyteorg/flyte/issues/3404 Let us know if you need any help
154 Views