Hi, we're seeing this "undefined" is not valid JSON error for some spans, and I'm not sure how to debug it.
It seems likely that the error you're encountering is related to the handling of JSON data within the Phoenix platform. My understanding is that this could be due to improper serialization or deserialization of data, as seen in issues like this one where span_kind was not serializable by pyarrow. Additionally, there might be issues with parsing invocation parameters, as noted in this issue, where errors are not properly surfaced, leading to lossy information.Would you like more details on how to address this issue or any specific aspect of Phoenix? Sources:
- GitHub Issue 2437
- this issue
💡 Hint: Mention RunLLM in the thread for followups.
We are using llama-index, and this error seems to occur only for Anthropic achat calls with function calling.
I'm trying to debug a bunch of spans where an anthropic model failed to properly call a function, and this error seems to correlate with that as well.
if you click the “Attributes” tab, what does it look like? do you see “undefined” anywhere?
I don't see "undefined" on that tab, no. It's a lot of content there. I prefer not to share the whole of it here, but if it's helpful I could DM it to you.
