【发布时间】:2016-10-09 15:42:43
【问题描述】:
我的脚本出错了 - 有人可以帮我解决这个问题吗?对我来说,用户名似乎有问题?
PHP Fatal error: Uncaught exception 'SpotifyWebAPI\\SpotifyWebAPIException' with message 'An unknown error occurred.' in /mnt/webp/b3/44/5462244/htdocs/SpotifyTest/src/Request.php:38
Stack trace:
#0 /mnt/webp/b3/44/5462244/htdocs/SpotifyTest/src/Request.php(188): SpotifyWebAPI\\Request->parseBody('<html><body><h1...', 400)
#3 /mnt/webp/b3/44/5462244/htdocs/SpotifyTest/testfile.php(68): SpotifyWebAPI\\SpotifyWebAPI->getUserPlaylist('lillabj\\xC3\\xB6rn', '0WXsElmPC8aEGzr...')
#4 {main}
thrown in /mnt/webp/b3/44/5462244/htdocs/SpotifyTest/src/Request.php on line 38
我认为是这条线->
SpotifyWebAPI->getUserPlaylist('**llabj\\xC3\\xB6rn**',.....
我从这样的 mysql 表中获取用户名
$USERPL = $pl['user_name'];
如果有人能给我一些帮助,那就太好了。
【问题讨论】:
-
坏消息:你在 mysql 中存储垃圾。
lillabjörn应该按原样存储,而不是作为llabj\\xC3\\xB6rn奇怪编码的东西