Skip to content

Uncaught exception 'RuntimeException' #2

@AryanInfotech43

Description

@AryanInfotech43

HI,
I am run the code and get the "$_GET['code']". But after that for getting access token have this error.

Fatal error: Uncaught exception 'RuntimeException' with message 'Error creating resource: [message] fopen(): Unable to find the wrapper "https" - did you forget to enable it when you configured PHP? [file] C:\xampp\htdocs\erp_apis\gplus\vendor\guzzlehttp\guzzle\src\Handler\StreamHandler.php [line] 287 [message] fopen(https://www.googleapis.com/oauth2/v4/token): failed to open stream: Invalid argument [file] C:\xampp\htdocs\erp_apis\gplus\vendor\guzzlehttp\guzzle\src\Handler\StreamHandler.php [line] 287' in C:\xampp\htdocs\erp_apis\gplus\vendor\guzzlehttp\guzzle\src\Handler\StreamHandler.php:227 Stack trace: #0 C:\xampp\htdocs\erp_apis\gplus\vendor\guzzlehttp\guzzle\src\Handler\StreamHandler.php(291): GuzzleHttp\Handler\StreamHandler->createResource(Object(Closure)) #1 C:\xampp\htdocs\erp_apis\gplus\vendor\guzzlehttp\guzzle\src\Handler\StreamHandler.php(52): GuzzleHttp\Handler\StreamHandler->createStream(Object(GuzzleHttp\Psr7\Request), Array) #2 C:\xampp\htdocs\erp_apis\gplus\vendor\guzzlehttp\guzzle\src\Pr in C:\xampp\htdocs\erp_apis\gplus\vendor\guzzlehttp\guzzle\src\Exception\RequestException.php on line 51

   Any solutions for this? Thanks in advance.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions