Closed MattSidor closed 1 year ago
The fallback image sometimes does not work.
Steps to reproduce the behavior:
<auro-avatar code="INVALID"></auro-avatar>
A fallback image of clouds (https://resource.alaskaair.net/-/media/Images/common-assets/destinations/800x800/partner)
From the docs page (http://auro.alaskaair.com/components/auro/avatar):
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.
403
404
Describe the bug
The fallback image sometimes does not work.
To Reproduce
Steps to reproduce the behavior:
<auro-avatar code="INVALID"></auro-avatar>
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):
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 for404
.