由于身份验证,Spotipy 无法在远程服务器上运行
当我在我的个人计算机上运行时,我的程序运行良好,但是当我尝试在 PebbleHost 上的远程服务器上运行完全相同的代码时,我收到以下错误:
Couldn´t read cache at: .cache
Couldn´t write token to cache at: .cache
根据我收集的信息,这是因为我需要验证我的Spotify 的服务器,但是当我无法访问应该弹出的浏览器时,我不知道如何做到这一点。我唯一可以访问的是控制台,其中显示了我需要访问以进行身份验证的网址。然而,在我的个人机器上打开这个网址没有任何作用。
我没有网站,是否应该将重定向 uri 设置为 IP 地址而不是使用 localhost
?如果是这样,我如何确定要使用的 IP 地址以及采取哪些步骤?
My program works fine when I run it on my personal machine, however when I try to run the exact same code on a remote server on PebbleHost, I get the following errors:
Couldn´t read cache at: .cache
Couldn´t write token to cache at: .cache
From what I've gathered this is because I need to authenticate my server for spotify, however I don't know how I can do that when I don't have access to the browser that is supposed to pop up. The only thing I have access to is the console, where does show the url I need to visit to do the authentication. However opening this url on my personal machine does nothing.
I don't have a website, should I set the redirect uri to an ip address instead of using localhost
? If so how do I determine what ip address to use and what steps do I take?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论