daviddesberg / PHPoAuthLib

PHP 5.3+ oAuth 1/2 Client Library
Other
1.09k stars 456 forks source link

Etsy API OAuth Issues while reload page after getting responce #557

Open bgajjar41 opened 4 years ago

bgajjar41 commented 4 years ago

PHP Fatal error: Uncaught OAuth\Common\Http\Exception\TokenResponseException: file_get_contents(https://openapi.etsy.com/v2/oauth/access_token): failed to open stream: HTTP request failed! HTTP/1.1 401 Unauthorized\r\n in /var/www/html/SAHL/ETSY/src/OAuth/Common/Http/Client/StreamClient.php:73\nStack trace:\n#0 /var/www/html/SAHL/ETSY/src/OAuth/OAuth1/Service/AbstractService.php(100): OAuth\Common\Http\Client\StreamClient->retrieveResponse(Object(OAuth\Common\Http\Uri\Uri), 'oauth_verifier=...', Array)\n#1 /var/www/html/SAHL/ETSY/etsy.php(52): OAuth\OAuth1\Service\AbstractService->requestAccessToken('d751a108d6b1eb7...', '2420edbf', 'f237e6c898')\n#2 {main}\n thrown in /var/www/html/SAHL/ETSY/src/OAuth/Common/Http/Client/StreamClient.php on line 73