Problem/Motivation

  • Fix an Internal Server Error:Error:
    Call to a member function getBody() on null in Drupal\vmware\Service\VmwareService->request() (line 330 of /var/www/html/web/modules/contrib/cloud/modules/cloud_service_providers/vmware/src/Service/VmwareService.php)
    #0 /var/www/html/web/modules/contrib/cloud/modules/cloud_service_providers/vmware/src/Service/VmwareService.php(138): Drupal\vmware\Service\VmwareService->request('post', 'rest/com/vmware...', Array)
    #1 /var/www/html/web/modules/contrib/cloud/modules/cloud_service_providers/vmware/src/Controller/ApiController.php(193): Drupal\vmware\Service\VmwareService->login()
    #2 /var/www/html/web/modules/contrib/cloud/modules/cloud_service_providers/vmware/src/Controller/ApiController.php(127): Drupal\vmware\Controller\ApiController->updateEntityList('vm', 'vms', 'dii')
    #3 [internal function]: Drupal\vmware\Controller\ApiController->updateVmList('dii')
    #4 /var/www/html/web/core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php(123): call_user_func_array(Array, Array)
    #5 /var/www/html/web/core/lib/Drupal/Core/Render/Renderer.php(573): Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}()
  • Also found the following occurrences:
    modules/cloud_service_providers/aws_cloud/src/Service/Pricing/PricingService.php:217:          $data = (string) $response->getBody();
    modules/cloud_service_providers/vmware/src/Service/VmwareService.php:233:      $output = $response->getBody()->getContents();
    modules/cloud_service_providers/terraform/src/Service/TerraformService.php:471:      $output = $response->getBody()->getContents();
    modules/cloud_service_providers/terraform/src/Service/TerraformService.php:475:      $response_info = $response->getBody()->getContents();
    
CommentFileSizeAuthor
#2 3170566-2.patch3.08 KByas
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

yas created an issue. See original summary.

yas’s picture

Issue summary: View changes
Status: Needs work » Needs review
FileSize
3.08 KB

@xiaohua-guan

Could you please review the patch?

Xiaohua Guan’s picture

Status: Needs review » Reviewed & tested by the community

@yas

It looks good to me. So I changed the status to RTBC. Thanks.

yas’s picture

@xiaohua-guan

Thank you for your review. I'll merge the patch to 3.x and close this issue as Fixed.

  • yas committed 8d6fb91 on 3.x
    Issue #3170566 by yas, Xiaohua Guan: Fix an Internal Server Error "Call...
yas’s picture

Status: Reviewed & tested by the community » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.

yas’s picture

Issue tags: -Fix an Internal Server Error