Before the fix

RUM is a website monitoring tool. This test makes its request for AWS access fail on purpose.

RUM leaves the failure unhandled. The browser reports it as an error, which other monitoring tools can mistake for a problem in your website.

Loading the test...

Simulated access attempts
0
Errors left unhandled
0
Warnings from RUM
0

Run this test again

No sign-in needed. Both pages run the same test. No data is sent to AWS, and no cookies are used.

Technical details

This page uses the original aws-rum-web 3.2.1 release. View source.

A credential provider returns a rejected promise. The page counts its calls, matching browser unhandledrejection events, and the fix's warning. It does not catch the provider's error or hide browser errors.

cwr('setAwsCredentials', () =>
    Promise.reject(new Error('Example credential failure'))
);

The result is checked one second after the script loads. The after page only reports success if the provider ran once, the warning appeared once, and no matching error was left unhandled.

Debug logging is on so the warning is visible. Automatic monitoring and sending are off. Scripts load from this site; outgoing data connections are blocked.

Build details and file checksums