Skip to content

Gracefully handle when a widget URL is re-requested and fails #93

@cbarratt

Description

@cbarratt

Describe the bug

I'm attempting to figure out a nice way of using the SDK and handling a use case where a user refreshes the UI and the widget tries to load again.

When the iframe loads, I'm seeing:

Screenshot 2023-10-17 at 11 32 02 am

Due to the it loading an error page inside the frame, there doesn't appear to be any events or anything we can do to detect this problem 🤔

Steps to reproduce

[Steps to reproduce the behavior:]

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior

[A clear and concise description of what you expected to happen.]

Screenshots

[If applicable, screenshots go here.]

Sample code

[Code snippet used to reproduce the issue.]

Additional context

I'm using the web widget SDK with React/NextJS. It works great with all the message event listeners.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions