Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
when saving a node that has a tweet that does not exist
Sorry, that page doesn’t exist!
than the node is not saved and WSOD appears
on the database log this message appears
GuzzleHttp\Exception\ClientException: Client error: `GET https://twitter.com/USERNAME/status/XXXXXXXXXXXXXXXXXXXXX` resulted in a `404 Not Found` response: <!DOCTYPE html> <html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en"> <head> <meta http-equiv="Conte (truncated...) in GuzzleHttp\Exception\RequestException::create() (line 113 from /var/www/vhosts/domain.com/httpdocs/vendor/guzzlehttp/guzzle/src/Exception/RequestException.php).
I think its a bug because what a user would expect is some warning that the tweet does not exist and go back to the edit form
EDIT: some parts of the error code were translated directly from greek
Comment | File | Size | Author |
---|---|---|---|
#11 | 2923073-11.patch | 3.09 KB | chr.fritsch |
| |||
#9 | 2923073-9.patch | 1.84 KB | chr.fritsch |
#6 | Screenshot 2019-04-10 at 14.35.15.png | 120.12 KB | maosmurf |
#5 | 2923073_Catch_404_from_validation.patch | 2.55 KB | maosmurf |
Comments
Comment #2
GiorgosKComment #3
GiorgosKComment #4
chr.fritschLet's move this issue to media_entity_twitter
Comment #5
maosmurf CreditAttribution: maosmurf commentedSame here. We solved this by try/catching
Comment #6
maosmurf CreditAttribution: maosmurf commentedAs a result, the constraint message is displayed
Comment #7
chr.fritschPatch does not apply anymore
Comment #8
chr.fritschLets move to 2.x
Comment #9
chr.fritschHere is a new patch. I don't think we have to put that message in the watchdog.
Comment #11
chr.fritschFix tests. Tweet didn't exist anymore.
Comment #12
volkerk CreditAttribution: volkerk at Thunder commentedWSOD is not reproducible with 2.x, anyway validation error is now triggered when using a private twitter url.
LGTM
Comment #14
chr.fritschDone