AlaskaAirlines / auro-avatar

Custom element for the purpose of displaying an avatar image.
https://auro.alaskaair.com/components/auro/avatar
Apache License 2.0
1 stars 0 forks source link

auro-avatar: fallback image sometimes does not work (intermittent) #28

Closed MattSidor closed 1 year ago

MattSidor commented 1 year ago

Describe the bug

The fallback image sometimes does not work.

To Reproduce

Steps to reproduce the behavior:

  1. Use an invalid code attribute, such as <auro-avatar code="INVALID"></auro-avatar>
  2. Note broken image sometimes loads instead of fallback

Expected behavior

A fallback image of clouds (https://resource.alaskaair.net/-/media/Images/common-assets/destinations/800x800/partner)

Screenshots

From the docs page (http://auro.alaskaair.com/components/auro/avatar):

Screen Shot 2022-11-28 at 9 06 37 PM

Additional context

This problem appears to be intermittent -- sometimes it loads, sometimes it does not.

When it is not working, it is because the CDN (resource.alaskaair.net) returns a 403 error status code for the invalid URL, but the component only checks for 404.