discourse/lib/onebox
jbrw 461a2c334b
FIX: return an empty result if response from Amazon is missing expected attributes (#13173)
* FIX: return an empty result if response from Amazon is missing attributes

Check we have the basic attributes requires to construct a Onebox for Amazon.

This is an attempt to handle scenarios where we receive a valid 200-status response from an Amazon request that does not include the data we’re expecting.

* Update lib/onebox/engine/amazon_onebox.rb

Co-authored-by: Régis Hanol <regis@hanol.fr>

Co-authored-by: Régis Hanol <regis@hanol.fr>
2021-06-01 16:23:18 -04:00
..
engine FIX: return an empty result if response from Amazon is missing expected attributes (#13173) 2021-06-01 16:23:18 -04:00
mixins Various GitHub Onebox improvements (#13163) 2021-05-27 12:38:42 +03:00
templates Various GitHub Onebox improvements (#13163) 2021-05-27 12:38:42 +03:00
discourse_onebox_sanitize_config.rb FEATURE: Add disable_onebox_media_download_controls hidden site setting (#12208) 2021-02-25 12:39:15 +10:00
engine.rb FIX: Support pausing GIFs for giphy/tenor oneboxes (#13194) 2021-05-28 08:40:30 -04:00
file_type_finder.rb DEV: Absorb onebox gem into core (#12979) 2021-05-26 15:11:35 +05:30
helpers.rb DEV: Absorb onebox gem into core (#12979) 2021-05-26 15:11:35 +05:30
layout_support.rb DEV: Absorb onebox gem into core (#12979) 2021-05-26 15:11:35 +05:30
layout.rb DEV: Absorb onebox gem into core (#12979) 2021-05-26 15:11:35 +05:30
matcher.rb DEV: Absorb onebox gem into core (#12979) 2021-05-26 15:11:35 +05:30
oembed.rb DEV: Absorb onebox gem into core (#12979) 2021-05-26 15:11:35 +05:30
open_graph.rb DEV: Absorb onebox gem into core (#12979) 2021-05-26 15:11:35 +05:30
preview.rb FIX: return an empty result if response from Amazon is missing expected attributes (#13173) 2021-06-01 16:23:18 -04:00
sanitize_config.rb DEV: Absorb onebox gem into core (#12979) 2021-05-26 15:11:35 +05:30
status_check.rb DEV: Absorb onebox gem into core (#12979) 2021-05-26 15:11:35 +05:30
template_support.rb DEV: Absorb onebox gem into core (#12979) 2021-05-26 15:11:35 +05:30
view.rb DEV: Absorb onebox gem into core (#12979) 2021-05-26 15:11:35 +05:30