[GH-ISSUE #277] Weird error messages (session and cURL 28) #202

Closed
opened 2026-02-27 19:26:35 +03:00 by kerem · 3 comments
Owner

Originally created by @wbertolo on GitHub (Aug 27, 2024).
Original GitHub issue: https://github.com/jwilsson/spotify-web-api-php/issues/277

Hi JWilson,

first of all, thanks for this API. I used it for a long time.

  1. However, recently, without having made any changes that could break anything, I am seeing errors like:
PHP Fatal error:  Uncaught TypeError: SpotifyWebAPI\\Session::__construct(): Argument #3 ($redirectUri) must be of type string, null given, called in /var/www/html/wp-content/themes/this-light/includes/class-helpers.php on line 31 and defined in /var/www/html/vendor/jwilsson/spotify-web-api-php/src/Session.php:27

when I print the $redirectUri variable above, I see the expected content, which is my local env callback page.

  1. aside from the one above, I am getting several occurrences of cURL error 28, saying it was unable to connect to the spotify API.

I am just using code that has been there and working for a long time. Any insight is helpful. Thanks.

Originally created by @wbertolo on GitHub (Aug 27, 2024). Original GitHub issue: https://github.com/jwilsson/spotify-web-api-php/issues/277 Hi JWilson, first of all, thanks for this API. I used it for a long time. 1. However, recently, without having made any changes that could break anything, I am seeing errors like: ``` PHP Fatal error: Uncaught TypeError: SpotifyWebAPI\\Session::__construct(): Argument #3 ($redirectUri) must be of type string, null given, called in /var/www/html/wp-content/themes/this-light/includes/class-helpers.php on line 31 and defined in /var/www/html/vendor/jwilsson/spotify-web-api-php/src/Session.php:27 ``` when I print the $redirectUri variable above, I see the expected content, which is my local env callback page. 2. aside from the one above, I am getting several occurrences of cURL error 28, saying it was unable to connect to the spotify API. I am just using code that has been there and working for a long time. Any insight is helpful. Thanks.
kerem closed this issue 2026-02-27 19:26:35 +03:00
Author
Owner

@wbertolo commented on GitHub (Aug 28, 2024):

somehow it's working again today.

<!-- gh-comment-id:2316286533 --> @wbertolo commented on GitHub (Aug 28, 2024): somehow it's working again today.
Author
Owner

@wbertolo commented on GitHub (Aug 28, 2024):

it's working again.

<!-- gh-comment-id:2316287100 --> @wbertolo commented on GitHub (Aug 28, 2024): it's working again.
Author
Owner

@wbertolo commented on GitHub (Aug 28, 2024):

happened again, but it's very inconsistent.

<!-- gh-comment-id:2316303827 --> @wbertolo commented on GitHub (Aug 28, 2024): happened again, but it's very inconsistent.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/spotify-web-api-php#202
No description provided.