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

[Electron] Allow users to submit error reports #1633

Merged
merged 3 commits into from
Nov 22, 2024
Merged

Conversation

pythongosssss
Copy link
Member

Adds a Send Report button to the execution error dialog to allow users to report errors.
image

This submits the error message, stacktrace and node type.
We can extend this in future to allow opting in to include more details if they are found to be useful for diagnosing issues (e.g. logs, installed nodes, version, etc)

src/components/dialog/content/error/ReportIssueButton.vue Outdated Show resolved Hide resolved
src/components/dialog/content/error/ReportIssueButton.vue Outdated Show resolved Hide resolved
if (submitting.value) return
submitting.value = true
try {
await electronAPI().sendErrorToSentry(error.exception_message, {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@robinjhuang PTAL. I am not very sure if this is the correct format we are expecting in the Sentry setup.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Slack chat from @robinjhuang

Can we send the logs and system info in the report as well? Everything except the workflow for now would be good i think

@huchenlei huchenlei added the Electron ComfyUI Desktop related label Nov 21, 2024
Copy link
Member

@robinjhuang robinjhuang left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we send the entire report except workflow? Having the logs and system info would be helpful.

@huchenlei
Copy link
Member

Offline discussion: we go with basic stacktrace now, and potentially strip out the user base directory that might potentially contain user name. (Happen in electron side)

@huchenlei huchenlei merged commit 0f22600 into main Nov 22, 2024
9 checks passed
@huchenlei huchenlei deleted the let-users-report-errors branch November 22, 2024 22:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Electron ComfyUI Desktop related
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants