mirror of
https://github.com/jwilsson/spotify-web-api-php.git
synced 2026-04-26 23:45:49 +03:00
[GH-ISSUE #240] cURL handle closed before calling curl_errno and curl_error #172
Labels
No labels
bug
docs
enhancement
enhancement
enhancement
feedback wanted
good first issue
help wanted
help wanted
help wanted
invalid
pull-request
question
question
upstream
upstream
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/spotify-web-api-php#172
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @sjerdo on GitHub (Nov 28, 2021).
Original GitHub issue: https://github.com/jwilsson/spotify-web-api-php/issues/240
Hi Jonathan,
First of all, thanks for creating this API wrapper.
I experience the following error for some requests to https://accounts.spotify.com/api/token
Warning: curl_error(): supplied resource is not a valid cURL handle resourceIt seems like the cURL handle is closed before getting the require curl_errno and curl_error information in Request.php lines 221 - 223
I suggest changing this to first set these values or the error message in a variable, before closing the connection.
@jwilsson commented on GitHub (Nov 30, 2021):
Hi!
Nice catch! Would you like to send a PR with those changes?