Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

multi-outputs: invalid callback return gives bad error message #621

Closed
alexcjohnson opened this issue Mar 1, 2019 · 0 comments
Closed
Assignees

Comments

@alexcjohnson
Copy link
Collaborator

make some non-JSON-serializable (but still wrapped in a list) return to a multi-output callback:

@app.callback(
    [Output('c', 'children'), Output('d', 'children')],
    [Input('a', 'children'), Input('b', 'children')]
)
def c(a, b):
    return [Output('c', 'children'), Output('d', 'children')]

The error handler itself barfs because it's not expecting a multi-output spec:

  File "/Users/alex/plotly/dash/dash/dash.py", line 854, in _raise_invalid
    property=output.component_property,
AttributeError: 'list' object has no attribute 'component_property'
@alexcjohnson alexcjohnson self-assigned this Mar 1, 2019
HammadTheOne pushed a commit to HammadTheOne/dash that referenced this issue May 28, 2021
HammadTheOne pushed a commit to HammadTheOne/dash that referenced this issue May 28, 2021
HammadTheOne pushed a commit that referenced this issue Jul 23, 2021
fix infinite loop
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant