Skip to content

App does not handle API errors gracefully #2

@npsboy

Description

@npsboy

Description:

When the app requests markdown from the OpenAI API and the API fails or returns an unexpected response (such as error or invalid format), the app does not handle these errors gracefully. This can result in broken rendering, blank content, or raw error messages being shown to the user.

Steps to Reproduce:

  1. Disconnect internet or simulate OpenAI API downtime.
  2. Request position paper in the app.
  3. Observe that the rendered position paper may be empty or display unexpected error content.

Expected Behavior:

Errors from the API should be caught and a user-friendly error message should be displayed. The app should not render blank or raw error output.

Suggested Solution:

  • Add error handling for failed or malformed API responses in the markdown rendering pipeline.
  • Display a friendly error message and offer retry options.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions