Skip to content

Crazy error message shown when two widgets have the same key #1941

@tvst

Description

@tvst

Steps to reproduce

  1. Run this code
    import streamlit as st
    
    st.button("OK")
    st.button("OK")
    
  2. Observe!

Expected behavior:

You should get one button plus an error message explaining you can't have to st.button calls with the same key.

Actual behavior:

The error message complains about st.-3952690150221448179 🙀

See screenshot:
image

Is this a regression?

yes

Debug info

  • Streamlit version: 0.65.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    type:bugSomething isn't working as expected

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions