question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

How to handle load errors?

See original GitHub issue

Is there a way to handle errors such as “The iframe couldn’t be loaded”. I’m thinking an onError prop on the (in my case) React component.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:8 (4 by maintainers)

github_iconTop GitHub Comments

4reactions
bluepnumecommented, May 5, 2017

(and yet another great reason I really have to get round to adding some more api docs for this…)

1reaction
emilobergcommented, May 5, 2017

Not really following how that would that work in a React environment.

I do a

const foo = xcomponent.create(...)
<foo.react .../>

(Will move that to a xcomponent.driver('react'))

If I attach an onError prop to the React component, that isn’t getting called if the iframe fails to load.

N.b. There’s no errors with xcomponent itself, this is just me wanting to log if the iframe fails to load for some reason. Always nice to have the logging service ping us if something fails for a lot of users.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Error Handling - loaders.gl
Applications typically want to provide solid error handling when loading and saving data. Ideally the applications wants to use a simple clean API...
Read more >
How to handle load errors. - MATLAB Answers - MathWorks
Learn more about error handling, try statement. ... I use the load() command to load individual files in a parfor loop statement.
Read more >
Error monitoring and exception handling in large-scale ...
The first thing you need to do is log unhandled exceptions using your well-architected standards, which will include important contextual ...
Read more >
Step 6. Resolve Data Load Errors Related to Data Issues
Prerequisites · Step 1. Create File Format Objects · Step 2. Create Stage Objects · Step 3. Stage the Data Files · Step...
Read more >
A clean way to handle loading and error state in React ...
Let's write it in the product requirement statement. Fetch users list and show the user. Meanwhile, data is being fetched, show Loader/message.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found