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.
Hello,
When parsing a JSON body result, a 'Unserialization of response body failed.' exception is thrown incorrectly on NULL-encoded JSON values. (e.g. returning "null" or "").
Please find attached a patch that will check that json_last_error() tells that there is an error before throwing the exception.
Nicolas
Comment | File | Size | Author |
---|---|---|---|
httpclient-json-unserialization.patch | 561 bytes | ndeschildre |
Comments
Comment #1
dashohoxha CreditAttribution: dashohoxha commented