[GH-ISSUE #53] Suddenly getting PHP errors #33

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

Originally created by @emilstahl on GitHub (Sep 19, 2016).
Original GitHub issue: https://github.com/jwilsson/spotify-web-api-php/issues/53

Hi

I haven't changed anything. Suddenly I'm getting 500 Internal Server Error and these PHP errors:

2016/09/19 19:56:13 [error] 15765#15765: *218387 FastCGI sent in stderr: "PHP message: PHP Notice:  Undefined index: id in /var/www/spotify.srv1.dk/index.php on line 5" while reading response header from upstream, client: 86.52.xx.xxx, server: spotify.srv1.dk, request: "GET / HTTP/1.1", upstream: "fastcgi://unix:/var/run/php/php7.0-fpm.sock:", host: "spotify.srv1.dk"
2016/09/19 19:56:16 [error] 15765#15765: *218387 FastCGI sent in stderr: "PHP message: PHP Fatal error:  Uncaught SpotifyWebAPI\SpotifyWebAPIException: An unknown error occurred. in /var/www/spotify.srv1.dk/vendor/jwilsson/spotify-web-api-php/src/Request.php:38
Stack trace:
#0 /var/www/spotify.srv1.dk/vendor/jwilsson/spotify-web-api-php/src/Request.php(188): SpotifyWebAPI\Request->parseBody(Object(stdClass), 404)
#1 /var/www/spotify.srv1.dk/vendor/jwilsson/spotify-web-api-php/src/Request.php(101): SpotifyWebAPI\Request->send('GET', 'https://api.spo...', '', Array)
#2 /var/www/spotify.srv1.dk/vendor/jwilsson/spotify-web-api-php/src/SpotifyWebAPI.php(851): SpotifyWebAPI\Request->api('GET', '/v1/tracks/5NDa…', Array, Array)
#3 /var/www/spotify.srv1.dk/index.php(13): SpotifyWebAPI\SpotifyWebAPI->getTrack('5NDaKOiioQHfDOb…')
#4 {main}
  thrown in /var/www/spotify.srv1.dk/vendor/jwilsson/spotify-web-api-php/src/Request.php on line 38" while reading response header from upstream, client: 86.52.xx.xxx, server: spotify.srv1.dk, request: "GET /?id=5NDaKOiioQHfDObHIl4dOP HTTP/1.1", upstream: "fastcgi://unix:/var/run/php/php7.0-fpm.sock:", host: "spotify.srv1.dk", referrer: "http://spotify.srv1.dk/"
2016/09/19 19:56:17 [error] 15765#15765: *218387 FastCGI sent in stderr: "PHP message: PHP Fatal error:  Uncaught SpotifyWebAPI\SpotifyWebAPIException: An unknown error occurred. in /var/www/spotify.srv1.dk/vendor/jwilsson/spotify-web-api-php/src/Request.php:38
Stack trace:
#0 /var/www/spotify.srv1.dk/vendor/jwilsson/spotify-web-api-php/src/Request.php(188): SpotifyWebAPI\Request->parseBody(Object(stdClass), 404)
#1 /var/www/spotify.srv1.dk/vendor/jwilsson/spotify-web-api-php/src/Request.php(101): SpotifyWebAPI\Request->send('GET', 'https://api.spo...', '', Array)
#2 /var/www/spotify.srv1.dk/vendor/jwilsson/spotify-web-api-php/src/SpotifyWebAPI.php(851): SpotifyWebAPI\Request->api('GET', '/v1/tracks/5NDa…', Array, Array)
#3 /var/www/spotify.srv1.dk/index.php(13): SpotifyWebAPI\SpotifyWebAPI->getTrack('5NDaKOiioQHfDOb…')
#4 {main}
  thrown in /var/www/spotify.srv1.dk/vendor/jwilsson/spotify-web-api-php/src/Request.php on line 38" while reading response header from upstream, client: 86.52.xx.xxx, server: spotify.srv1.dk, request: "GET /?id=5NDaKOiioQHfDObHIl4dOP HTTP/1.1", upstream: "fastcgi://unix:/var/run/php/php7.0-fpm.sock:", host: "spotify.srv1.dk"
2016/09/19 19:56:17 [error] 15765#15765: *218387 FastCGI sent in stderr: "PHP message: PHP Fatal error:  Uncaught SpotifyWebAPI\SpotifyWebAPIException: An unknown error occurred. in /var/www/spotify.srv1.dk/vendor/jwilsson/spotify-web-api-php/src/Request.php:38
Stack trace:
#0 /var/www/spotify.srv1.dk/vendor/jwilsson/spotify-web-api-php/src/Request.php(188): SpotifyWebAPI\Request->parseBody(Object(stdClass), 404)
#1 /var/www/spotify.srv1.dk/vendor/jwilsson/spotify-web-api-php/src/Request.php(101): SpotifyWebAPI\Request->send('GET', 'https://api.spo...', '', Array)
#2 /var/www/spotify.srv1.dk/vendor/jwilsson/spotify-web-api-php/src/SpotifyWebAPI.php(851): SpotifyWebAPI\Request->api('GET', '/v1/tracks/5NDa…', Array, Array)
#3 /var/www/spotify.srv1.dk/index.php(13): SpotifyWebAPI\SpotifyWebAPI->getTrack('5NDaKOiioQHfDOb…')
#4 {main}
  thrown in /var/www/spotify.srv1.dk/vendor/jwilsson/spotify-web-api-php/src/Request.php on line 38" while reading response header from upstream, client: 86.52.xx.xxx, server: spotify.srv1.dk, request: "GET /?id=5NDaKOiioQHfDObHIl4dOP HTTP/1.1", upstream: "fastcgi://unix:/var/run/php/php7.0-fpm.sock:", host: "spotify.srv1.dk"
2016/09/19 19:56:18 [error] 15765#15765: *218387 FastCGI sent in stderr: "PHP message: PHP Fatal error:  Uncaught SpotifyWebAPI\SpotifyWebAPIException: An unknown error occurred. in /var/www/spotify.srv1.dk/vendor/jwilsson/spotify-web-api-php/src/Request.php:38
Stack trace:
#0 /var/www/spotify.srv1.dk/vendor/jwilsson/spotify-web-api-php/src/Request.php(188): SpotifyWebAPI\Request->parseBody(Object(stdClass), 404)
#1 /var/www/spotify.srv1.dk/vendor/jwilsson/spotify-web-api-php/src/Request.php(101): SpotifyWebAPI\Request->send('GET', 'https://api.spo...', '', Array)
#2 /var/www/spotify.srv1.dk/vendor/jwilsson/spotify-web-api-php/src/SpotifyWebAPI.php(851): SpotifyWebAPI\Request->api('GET', '/v1/tracks/5NDa…', Array, Array)
#3 /var/www/spotify.srv1.dk/index.php(13): SpotifyWebAPI\SpotifyWebAPI->getTrack('5NDaKOiioQHfDOb…')
#4 {main}
  thrown in /var/www/spotify.srv1.dk/vendor/jwilsson/spotify-web-api-php/src/Request.php on line 38" while reading response header from upstream, client: 86.52.xx.xxx, server: spotify.srv1.dk, request: "GET /?id=5NDaKOiioQHfDObHIl4dOP HTTP/1.1", upstream: "fastcgi://unix:/var/run/php/php7.0-fpm.sock:", host: "spotify.srv1.dk"

PHP Version 7.0.8

Originally created by @emilstahl on GitHub (Sep 19, 2016). Original GitHub issue: https://github.com/jwilsson/spotify-web-api-php/issues/53 Hi I haven't changed anything. Suddenly I'm getting `500 Internal Server Error` and these PHP errors: ``` 2016/09/19 19:56:13 [error] 15765#15765: *218387 FastCGI sent in stderr: "PHP message: PHP Notice: Undefined index: id in /var/www/spotify.srv1.dk/index.php on line 5" while reading response header from upstream, client: 86.52.xx.xxx, server: spotify.srv1.dk, request: "GET / HTTP/1.1", upstream: "fastcgi://unix:/var/run/php/php7.0-fpm.sock:", host: "spotify.srv1.dk" 2016/09/19 19:56:16 [error] 15765#15765: *218387 FastCGI sent in stderr: "PHP message: PHP Fatal error: Uncaught SpotifyWebAPI\SpotifyWebAPIException: An unknown error occurred. in /var/www/spotify.srv1.dk/vendor/jwilsson/spotify-web-api-php/src/Request.php:38 Stack trace: #0 /var/www/spotify.srv1.dk/vendor/jwilsson/spotify-web-api-php/src/Request.php(188): SpotifyWebAPI\Request->parseBody(Object(stdClass), 404) #1 /var/www/spotify.srv1.dk/vendor/jwilsson/spotify-web-api-php/src/Request.php(101): SpotifyWebAPI\Request->send('GET', 'https://api.spo...', '', Array) #2 /var/www/spotify.srv1.dk/vendor/jwilsson/spotify-web-api-php/src/SpotifyWebAPI.php(851): SpotifyWebAPI\Request->api('GET', '/v1/tracks/5NDa…', Array, Array) #3 /var/www/spotify.srv1.dk/index.php(13): SpotifyWebAPI\SpotifyWebAPI->getTrack('5NDaKOiioQHfDOb…') #4 {main} thrown in /var/www/spotify.srv1.dk/vendor/jwilsson/spotify-web-api-php/src/Request.php on line 38" while reading response header from upstream, client: 86.52.xx.xxx, server: spotify.srv1.dk, request: "GET /?id=5NDaKOiioQHfDObHIl4dOP HTTP/1.1", upstream: "fastcgi://unix:/var/run/php/php7.0-fpm.sock:", host: "spotify.srv1.dk", referrer: "http://spotify.srv1.dk/" 2016/09/19 19:56:17 [error] 15765#15765: *218387 FastCGI sent in stderr: "PHP message: PHP Fatal error: Uncaught SpotifyWebAPI\SpotifyWebAPIException: An unknown error occurred. in /var/www/spotify.srv1.dk/vendor/jwilsson/spotify-web-api-php/src/Request.php:38 Stack trace: #0 /var/www/spotify.srv1.dk/vendor/jwilsson/spotify-web-api-php/src/Request.php(188): SpotifyWebAPI\Request->parseBody(Object(stdClass), 404) #1 /var/www/spotify.srv1.dk/vendor/jwilsson/spotify-web-api-php/src/Request.php(101): SpotifyWebAPI\Request->send('GET', 'https://api.spo...', '', Array) #2 /var/www/spotify.srv1.dk/vendor/jwilsson/spotify-web-api-php/src/SpotifyWebAPI.php(851): SpotifyWebAPI\Request->api('GET', '/v1/tracks/5NDa…', Array, Array) #3 /var/www/spotify.srv1.dk/index.php(13): SpotifyWebAPI\SpotifyWebAPI->getTrack('5NDaKOiioQHfDOb…') #4 {main} thrown in /var/www/spotify.srv1.dk/vendor/jwilsson/spotify-web-api-php/src/Request.php on line 38" while reading response header from upstream, client: 86.52.xx.xxx, server: spotify.srv1.dk, request: "GET /?id=5NDaKOiioQHfDObHIl4dOP HTTP/1.1", upstream: "fastcgi://unix:/var/run/php/php7.0-fpm.sock:", host: "spotify.srv1.dk" 2016/09/19 19:56:17 [error] 15765#15765: *218387 FastCGI sent in stderr: "PHP message: PHP Fatal error: Uncaught SpotifyWebAPI\SpotifyWebAPIException: An unknown error occurred. in /var/www/spotify.srv1.dk/vendor/jwilsson/spotify-web-api-php/src/Request.php:38 Stack trace: #0 /var/www/spotify.srv1.dk/vendor/jwilsson/spotify-web-api-php/src/Request.php(188): SpotifyWebAPI\Request->parseBody(Object(stdClass), 404) #1 /var/www/spotify.srv1.dk/vendor/jwilsson/spotify-web-api-php/src/Request.php(101): SpotifyWebAPI\Request->send('GET', 'https://api.spo...', '', Array) #2 /var/www/spotify.srv1.dk/vendor/jwilsson/spotify-web-api-php/src/SpotifyWebAPI.php(851): SpotifyWebAPI\Request->api('GET', '/v1/tracks/5NDa…', Array, Array) #3 /var/www/spotify.srv1.dk/index.php(13): SpotifyWebAPI\SpotifyWebAPI->getTrack('5NDaKOiioQHfDOb…') #4 {main} thrown in /var/www/spotify.srv1.dk/vendor/jwilsson/spotify-web-api-php/src/Request.php on line 38" while reading response header from upstream, client: 86.52.xx.xxx, server: spotify.srv1.dk, request: "GET /?id=5NDaKOiioQHfDObHIl4dOP HTTP/1.1", upstream: "fastcgi://unix:/var/run/php/php7.0-fpm.sock:", host: "spotify.srv1.dk" 2016/09/19 19:56:18 [error] 15765#15765: *218387 FastCGI sent in stderr: "PHP message: PHP Fatal error: Uncaught SpotifyWebAPI\SpotifyWebAPIException: An unknown error occurred. in /var/www/spotify.srv1.dk/vendor/jwilsson/spotify-web-api-php/src/Request.php:38 Stack trace: #0 /var/www/spotify.srv1.dk/vendor/jwilsson/spotify-web-api-php/src/Request.php(188): SpotifyWebAPI\Request->parseBody(Object(stdClass), 404) #1 /var/www/spotify.srv1.dk/vendor/jwilsson/spotify-web-api-php/src/Request.php(101): SpotifyWebAPI\Request->send('GET', 'https://api.spo...', '', Array) #2 /var/www/spotify.srv1.dk/vendor/jwilsson/spotify-web-api-php/src/SpotifyWebAPI.php(851): SpotifyWebAPI\Request->api('GET', '/v1/tracks/5NDa…', Array, Array) #3 /var/www/spotify.srv1.dk/index.php(13): SpotifyWebAPI\SpotifyWebAPI->getTrack('5NDaKOiioQHfDOb…') #4 {main} thrown in /var/www/spotify.srv1.dk/vendor/jwilsson/spotify-web-api-php/src/Request.php on line 38" while reading response header from upstream, client: 86.52.xx.xxx, server: spotify.srv1.dk, request: "GET /?id=5NDaKOiioQHfDObHIl4dOP HTTP/1.1", upstream: "fastcgi://unix:/var/run/php/php7.0-fpm.sock:", host: "spotify.srv1.dk" ``` `PHP Version 7.0.8`
kerem 2026-02-27 19:25:42 +03:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@jwilsson commented on GitHub (Sep 23, 2016):

This should be fixed by 13d3b9417f and just released as 1.3.4. Sorry about that!

<!-- gh-comment-id:249114876 --> @jwilsson commented on GitHub (Sep 23, 2016): This should be fixed by 13d3b9417f0dc6de959867281ae0e4c9392f9c8d and just released as `1.3.4`. Sorry about that!
Author
Owner

@emilstahl commented on GitHub (Sep 23, 2016):

Thanks @jwilsson – it works! 👍

<!-- gh-comment-id:249115422 --> @emilstahl commented on GitHub (Sep 23, 2016): Thanks @jwilsson – it works! 👍
Author
Owner

@moop6535 commented on GitHub (Apr 20, 2017):

This is happening to me now. Same 500 errors as OP. I am on latest version 1.10.0

Php 7.0.17

Update: Maybe it is on Spotify's end. If so I will update and apologize for wasting your time to read this

LAST UPDATE: All working now... not sure what the deal was! Sorry for any time wasted!

<!-- gh-comment-id:295921764 --> @moop6535 commented on GitHub (Apr 20, 2017): This is happening to me now. Same 500 errors as OP. I am on latest version 1.10.0 Php 7.0.17 Update: Maybe it is on Spotify's end. If so I will update and apologize for wasting your time to read this LAST UPDATE: All working now... not sure what the deal was! Sorry for any time wasted!
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#33
No description provided.