Undefined variable: body in Drupal\sendinblue\Tools\Http\SendinblueHttpClient->doRequest()

Created on 24 February 2022, over 2 years ago
Updated 21 April 2023, about 1 year ago

Problem/Motivation

In the doRequest method, if an exception is caught, the $body is not set and then a noticed is displayed.

Undefined variable: body in Drupal\sendinblue\Tools\Http\SendinblueHttpClient->doRequest()

Steps to reproduce

  1. Create a form and place it on a page
  2. Override the settings through settings.php to put a wrong key.
  3. Go to the page that contains the form.

Proposed resolution

Return NULL after exception is caught.
Handle the missing data in getAttributes.

Have a good day.

Seb

🐛 Bug report
Status

Active

Version

2.0

Component

Code

Created by

🇫🇷France Seb_R

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.69.0 2024