bot-ssttkkl / nonebot-plugin-pixivbot

NoneBot插件,发送随机Pixiv插画、画师更新推送、定时订阅推送……
MIT License
111 stars 3 forks source link

内部错误:<class 'pixivpy_async.error.NoTokenError'>No access_token Found! #97

Closed ghost closed 1 year ago

ghost commented 1 year ago

内部错误:<class 'pixivpy_async.error.NoTokenError'>No access_token Found! Y21R~I$ 8DR6J1R3K{ O`W

mikko-mikust commented 1 year ago

看看配置文件是什么样的?

ghost commented 1 year ago

最小配置

ghost commented 1 year ago

G D{%D01AV %P J07OP2LT

ghost commented 1 year ago

看看配置文件是什么样的?

最小配置,只填了token

ssttkkl commented 1 year ago

看看.env文件,里面是不是environment=dev 顺便把nonebot启动输出贴上来,看看配置项成功读取了没有

ghost commented 1 year ago

$E~XEZ06}IVC }B`9E(292F

ghost commented 1 year ago

SOX~CIT(NG)S`5O2GG}U923

ghost commented 1 year ago

看看.env文件,里面是不是environment=dev 顺便把nonebot启动输出贴上来,看看配置项成功读取了没有

是没添加代理吗?

ghost commented 1 year ago

KKC)KKMR4D(890P$FC@KR(8

ghost commented 1 year ago

UWL~0AE2~2{181GVMUWW$JY

ssttkkl commented 1 year ago

是,国内没代理就没法访问p站获取access_token


From: yangdffdzvzvr @.> Sent: Wednesday, November 23, 2022 11:53:50 PM To: ssttkkl/nonebot-plugin-pixivbot @.> Cc: ssttkkl @.>; Comment @.> Subject: Re: [ssttkkl/nonebot-plugin-pixivbot] 内部错误:<class 'pixivpy_async.error.NoTokenError'>No access_token Found! (Issue #97)

看看.env文件,里面是不是environment=dev 顺便把nonebot启动输出贴上来,看看配置项成功读取了没有

是没添加代理吗?

― Reply to this email directly, view it on GitHubhttps://github.com/ssttkkl/nonebot-plugin-pixivbot/issues/97#issuecomment-1325294179, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AEEHL4V4M5MIPOV3ARDZF4TWJY4Y5ANCNFSM6AAAAAASI5PK2I. You are receiving this because you commented.Message ID: @.***>

Cutlars commented 1 year ago

我昨天晚上配置的时候也遇到同样问题,我想问下pixiv_proxy的格式是什么。proxy格式当时填的是:127.0.0.1:xxxxx,我尝试将获取fresh_token和access_token的接口直接接入bapi.py这个文件从而拿到数据,然后运行的时候报错,后来换成socks5:127.0.0.1:xxxxx,报错host为空,现在上班没法提供log

mikko-mikust commented 1 year ago

我是用http://的

ssttkkl commented 1 year ago

我昨天晚上配置的时候也遇到同样问题,我想问下pixiv_proxy的格式是什么。proxy格式当时填的是:127.0.0.1:xxxxx,我尝试将获取fresh_token和access_token的接口直接接入bapi.py这个文件从而拿到数据,然后运行的时候报错,后来换成socks5:127.0.0.1:xxxxx,报错host为空,现在上班没法提供log

协议://地址:端口号

比如socks5就是socks5://127.0.0.1:xxxx

ghost commented 1 year ago

我已经搞好了,就是使用中R18不能有效过滤,暂时不太敢用

ssttkkl commented 1 year ago

过滤R18最好的方式是把你账号的R18开关关掉() 插件过滤实现的方式是过滤tag,遇到不好好标tag的画师就没辙了