studio icon indicating copy to clipboard operation
studio copied to clipboard

Ambiguity for user to differentiate between user side error and system internal error.

Open Yash2004Codes opened this issue 11 months ago • 1 comments

Description : The application currently swallows unexpected system errors across multiple core services (parser.service.ts,editor.service.tsx, etc.). When an internal exception occurs (e.g., parser crash, storage failure, conversion error), the error is caught but not surfaced to the user. The UI shows a generic "Invalid document" state, leading to Bad user experience as Diagnostic Pannel shows no errors (means there is no error from user input) but preview pannel shows error.

How to Reproduce 1)Open apps/studio/src/services/parser.service.ts (or editor.service.tsx). 2) Modify a method having try-catch block to manually throw error : by copying throw new Error("Simulated System Crash"); on very first line in try block Image 3) Open studio website and refresh 4) Observe that no Error Toast, Modal, or specific Alert appears. The user receives no feedback that the Invalid Document Error message is from Internal System Error and not from user side. Image

Expected behavior Expected a small toast message at UI conveying user that error is from internal system.

Fix : Adding a toast message inside src/services/parser.service.ts , src/services/editor.service.tsx , src/services/converter.service.ts, src/services/format.service.ts

Once this issue is approved ,I would be happy to fix this and open a PR ! Thanks!

Yash2004Codes avatar Dec 25 '25 17:12 Yash2004Codes

This issue has been automatically marked as stale because it has not had recent activity :sleeping:

It will be closed in 120 days if no further activity occurs. To unstale this issue, add a comment with a detailed explanation.

There can be many reasons why some specific issue has no activity. The most probable cause is lack of time, not lack of interest. AsyncAPI Initiative is a Linux Foundation project not owned by a single for-profit company. It is a community-driven initiative ruled under open governance model.

Let us figure out together how to push this issue forward. Connect with us through one of many communication channels we established here.

Thank you for your patience :heart:

github-actions[bot] avatar Apr 25 '26 00:04 github-actions[bot]