Skip to content

HTTPClientFactory Not being setup correctly #103

@robjenman

Description

@robjenman

Issue summary

Error thrown: Call to a member function client() on null in /var/www/vendor/shopify/shopify-api/src/Clients/Http.php on line 164

Expected behavior

$client = Context::$HTTP_CLIENT_FACTORY->client(); Should be returning a working Guzzle client however it isnt. Apologies it's late here but Context::initialize() is never called as far as I can see and so $HTTP_CLIENT_FACTORY is never populated with the Guzzle client that is relied on.

Steps to reproduce the problem

  1. Run composer for version 1.0.0
  2. Make a very basic call like new \Shopify\Clients\Rest($url, $accessToken)->get('orders');

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions