wlhtea / Suno2openai

以openai格式调用suno api,并将cookie保存为数据库,实现cookie池调用 📈已接入newapi、oneapi中转站,适配chat-next-web等前端项目 || Call suno api in openai format, and save the cookie as a database to realize the cookie pool call to access newapi, oneapi relay station, adapting chat-next-web and other front-end projects
MIT License
220 stars 44 forks source link

调用结果返回'NoneType' object has no attribute 'items' #10

Closed isinry closed 5 months ago

isinry commented 5 months ago
image image

控制台返回None

wlhtea commented 5 months ago

请问有填写cookie到数据库吗? 数据库字段参考:https://github.com/wlhtea/Suno2openai?tab=readme-ov-file#-docker%E9%83%A8%E7%BD%B2 image

如果已经填写 请查看数据库中working是否为0 这是一个bug 我下午会改好发布

isinry commented 5 months ago
image image

加上了,貌似报错更多了

wlhtea commented 5 months ago

这个在查着 跑起来就好哈哈哈 我晚些解决这个问题

isinry commented 5 months ago

😭 能不能把堆栈打印出来,目前跑起来,但是没法用

wlhtea commented 5 months ago

没法用是?没法接入中转吗?你试试直接填写部署地址到chat-next-web,用openai方式调用

banxian007 commented 5 months ago

NoneType' object has no attribute 'items 所以到底应该怎么改,去哪里改

banxian007 commented 5 months ago

image 解决了吗 大家

banxian007 commented 5 months ago

这句话啥意思,添加到数据库? image 我compose部署,已经把key放到update里面了 image 还需要去添加吗,要的话 怎么弄好,我看到数据库只能上传文件,什么格式呢,把你的内容放到文件里,然后上传吗。有详细点的教程吗

banxian007 commented 5 months ago

image

banxian007 commented 5 months ago

image

eddsi commented 5 months ago

@banxian007 working为0表示工作