For some reason the Cloudinary SDK module is standalone and not part of the Cloudinary module itself. It also only configures itself when a web request is made. This means it breaks on CLI and adds overhead for pages not displaying images from Cloudinary.

See cloudinary_sdk.init_subscriber

  /**
   * {@inheritdoc}
   */
  public static function getSubscribedEvents() {
    return [KernelEvents::REQUEST => ['onEvent', 0]];
  }

  /**
   * Handles event on subscriber.
   */
  public function onEvent($cloudinaryConfig = []) {
    if (!is_array($cloudinaryConfig)) {
      $cloudinaryConfig = cloudinary_sdk_config_load();
    }

    if (!empty($cloudinaryConfig)) {
      \Cloudinary::config($cloudinaryConfig);
      return TRUE;
    }

    return FALSE;
  }

Comments

mglaman created an issue.