Payload emitted on the image:fallback event when a provider in the chain fails and the proxy advances to the next candidate.
image:fallback
emitter.on('image:fallback', (evt: ImageFallbackEvent) => { console.warn(`${evt.from} -> ${evt.to}: ${evt.reason}`);}); Copy
emitter.on('image:fallback', (evt: ImageFallbackEvent) => { console.warn(`${evt.from} -> ${evt.to}: ${evt.reason}`);});
The event discriminator. Always 'image:fallback'.
'image:fallback'
Identifier of the provider that failed.
Identifier of the provider that will be tried next.
Human-readable reason for the fallback (error message or "not supported").
Payload emitted on the
image:fallbackevent when a provider in the chain fails and the proxy advances to the next candidate.Example