Skip to content

Conversation

@Light2Dark
Copy link
Contributor

@Light2Dark Light2Dark commented Jul 24, 2025

📝 Summary

anywidgets were logging a lot of errors when I tested with Quak & mosaic. Although nothing was broken with quak.

Failed to parse message ZodError: [
  {
    "code": "invalid_union_discriminator",
    "options": [
      "open",
      "update",
      "custom",
      "echo_update",
      "close"
    ],
    "path": [
      "method"
    ],
    "message": "Invalid discriminator value. Expected 'open' | 'update' | 'custom' | 'echo_update' | 'close'"
  }
]

It's because we are trying to parse the message's content rather than the entire message. The following is the content, which does not have the 'method' field.

Message
{
    "type": "arrow",
    "uuid": "160ab694-ef1f-475a-b108-adc3fee81267"
}

🔍 Description of Changes

📋 Checklist

  • I have read the contributor guidelines.
  • For large changes, or changes that affect the public API: this change was discussed or approved through an issue, on Discord, or the community discussions (Please provide a link if applicable).
  • I have added tests for the changes made.
  • I have run the code and verified that it works as expected.

@Light2Dark Light2Dark requested a review from manzt as a code owner July 24, 2025 12:21
@vercel
Copy link

vercel bot commented Jul 24, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
marimo-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 24, 2025 0:21am

@mscolnick mscolnick merged commit 7b76d17 into main Jul 24, 2025
24 of 25 checks passed
@mscolnick mscolnick deleted the sham/anywidget-error-log branch July 24, 2025 17:27
@mscolnick mscolnick added the bug Something isn't working label Jul 26, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants