bot-ssttkkl / nonebot-plugin-pixivbot

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

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

Closed ILYSHL closed 1 year ago

ILYSHL commented 1 year ago

内部错误:<class 'pixivpy_async.error.NoTokenError'>No access_token Found! 我这边用的zhenxun跑的,因为没有.env.prod,我把token补到.env.dev里了,但是没用。 新建了个.env.prod,写入了,但是也读不到。希望能告诉我一下入口在哪里,我直接填进去。

------------------------------------------------详细报错--------------------------------------------------- `03-13 00:32:30 [INFO] nonebot_plugin_pixivbot | [mediator] user_bookmarks 20017078 cache_strategy=NORMAL 03-13 00:32:30 [INFO] nonebot_plugin_pixivbot | [local] user_bookmarks 20017078 03-13 00:32:30 [INFO] nonebot_plugin_pixivbot | [mediator] no cache 03-13 00:32:30 [INFO] nonebot_plugin_pixivbot | [remote] user_bookmarks 20017078 03-13 00:32:30 [INFO] nonebot_plugin_pixivbot | [remote] got 0 illusts, illust_detail of 0 are missed 03-13 00:32:30 [ERROR] nonebot_plugin_pixivbot | error <class 'pixivpy_async.error.NoTokenError'> raised by agen (USER_BOOKMARKS user_id=20017078) 03-13 00:32:31 [SUCCESS] nonebot | OneBot V11 2712395970 | [message.group.normal]: Message 1179271396 from 972127577@[群:636925153] '[image:file=5f155272ca2c3094afaf7254e276cfda.image, subType=0, url=https://gchat.qpic.cn/gchatpic_new/972127577/636925153-2565612720-5...]' 03-13 00:32:31 [INFO] nonebot | Event will be handled by Matcher(type='message', module=plugins.mute) 03-13 00:32:31 [INFO] nonebot | Event will be handled by Matcher(type='message', module=plugins.black_word) 03-13 00:32:31 [INFO] nonebot | Event will be handled by Matcher(type='message', module=plugins.parse_bilibili_json) 03-13 00:32:31 [INFO] nonebot | Event will be handled by Matcher(type='message', module=basic_plugins.chat_history.chat_message) 03-13 00:32:31 [INFO] nonebot | Matcher(type='message', module=plugins.black_word) running complete 03-13 00:32:31 [INFO] nonebot | Matcher(type='message', module=plugins.parse_bilibili_json) running complete 03-13 00:32:31 [INFO] nonebot | Matcher(type='message', module=basic_plugins.chat_history.chat_message) running complete 03-13 00:32:31 [INFO] nonebot | Matcher(type='message', module=plugins.mute) running complete 03-13 00:32:31 [INFO] nonebot | Matcher(type='message', module=nonebot_plugin_pixivbot.handler.common.random_bookmark) running complete 03-13 00:32:31 [ERROR] nonebot | Running Matcher(type='message', module=nonebot_plugin_pixivbot.handler.common.random_bookmark) failed. Traceback (most recent call last): File "C:\Users\Administrator\AppData\Local\pypoetry\Cache\virtualenvs\zhenxun-bot-wJE_wHbX-py3.10\lib\site-packages\nonebot_plugin_pixivbot\data\pixiv_repo\mediator.py", line 164, in mediate_append async for x in _load_many_from_local_and_remote_and_append(cache_factory, remote_factory, query_kwargs, File "C:\Users\Administrator\AppData\Local\pypoetry\Cache\virtualenvs\zhenxun-bot-wJE_wHbX-py3.10\lib\site-packages\nonebot_plugin_pixivbot\data\pixiv_repo\mediator.py", line 57, in _load_many_from_local_and_remote_and_append async for x in cache_factory(**query_kwargs): File "C:\Users\Administrator\AppData\Local\pypoetry\Cache\virtualenvs\zhenxun-bot-wJE_wHbX-py3.10\lib\site-packages\nonebot_plugin_pixivbot\data\pixiv_repo\local_repo\sql.py", line 473, in user_bookmarks async for x in self._get_illusts(session, "user_bookmarks", {"user_id": user_id}, File "C:\Users\Administrator\AppData\Local\pypoetry\Cache\virtualenvs\zhenxun-bot-wJE_wHbX-py3.10\lib\site-packages\nonebot_plugin_pixivbot\data\pixiv_repo\local_repo\sql.py", line 71, in _get_illusts raise NoSuchItemError() nonebot_plugin_pixivbot.data.pixiv_repo.errors.NoSuchItemError

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "C:\Users\Administrator\Desktop\zhenxun_bot-main\zhenxun_bot-main\bot.py", line 27, in nonebot.run() File "C:\Users\Administrator\AppData\Local\pypoetry\Cache\virtualenvs\zhenxun-bot-wJE_wHbX-py3.10\lib\site-packages\nonebot__init__.py", line 273, in run get_driver().run(*args, *kwargs) File "C:\Users\Administrator\AppData\Local\pypoetry\Cache\virtualenvs\zhenxun-bot-wJE_wHbX-py3.10\lib\site-packages\nonebot\drivers\fastapi.py", line 187, in run uvicorn.run( File "C:\Users\Administrator\AppData\Local\pypoetry\Cache\virtualenvs\zhenxun-bot-wJE_wHbX-py3.10\lib\site-packages\uvicorn\main.py", line 569, in run server.run() File "C:\Users\Administrator\AppData\Local\pypoetry\Cache\virtualenvs\zhenxun-bot-wJE_wHbX-py3.10\lib\site-packages\uvicorn\server.py", line 60, in run return asyncio.run(self.serve(sockets=sockets)) File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\asyncio\runners.py", line 44, in run return loop.run_until_complete(main) File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\asyncio\base_events.py", line 628, in run_until_complete self.run_forever() File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\asyncio\windows_events.py", line 316, in run_forever super().run_forever() File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\asyncio\base_events.py", line 595, in run_forever self._run_once() File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\asyncio\base_events.py", line 1881, in _run_once handle._run() File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\asyncio\events.py", line 80, in _run self._context.run(self._callback, self._args) File "C:\Users\Administrator\AppData\Local\pypoetry\Cache\virtualenvs\zhenxun-bot-wJE_wHbX-py3.10\lib\site-packages\nonebot\message.py", line 141, in _check_matcher await _run_matcher(Matcher, bot, event, state, stack, dependency_cache)

File "C:\Users\Administrator\AppData\Local\pypoetry\Cache\virtualenvs\zhenxun-bot-wJE_wHbX-py3.10\lib\site-packages\nonebot\message.py", line 187, in _run_matcher await matcher.run(bot, event, state, stack, dependency_cache) File "C:\Users\Administrator\AppData\Local\pypoetry\Cache\virtualenvs\zhenxun-bot-wJE_wHbX-py3.10\lib\site-packages\nonebot\internal\matcher\matcher.py", line 732, in run await self.simple_run(bot, event, state, stack, dependency_cache) File "C:\Users\Administrator\AppData\Local\pypoetry\Cache\virtualenvs\zhenxun-bot-wJE_wHbX-py3.10\lib\site-packages\nonebot\internal\matcher\matcher.py", line 707, in simple_run await handler( File "C:\Users\Administrator\AppData\Local\pypoetry\Cache\virtualenvs\zhenxun-bot-wJE_wHbX-py3.10\lib\site-packages\nonebot\dependencies__init.py", line 108, in call__ return await cast(Callable[..., Awaitable[R]], self.call)(values) File "C:\Users\Administrator\AppData\Local\pypoetry\Cache\virtualenvs\zhenxun-bot-wJE_wHbX-py3.10\lib\site-packages\nonebot_plugin_pixivbot\handler\common\random_bookmark.py", line 46, in on_match await self.handle(count=get_count(state), post_dest=get_post_dest(bot, event)) File "C:\Users\Administrator\AppData\Local\pypoetry\Cache\virtualenvs\zhenxun-bot-wJE_wHbX-py3.10\lib\site-packages\nonebot_plugin_pixivbot\handler\base.py", line 95, in handle await self.interceptor.intercept(self._parse_args_and_actual_handle, args, File "C:\Users\Administrator\AppData\Local\pypoetry\Cache\virtualenvs\zhenxun-bot-wJE_wHbX-py3.10\lib\site-packages\nonebot_plugin_pixivbot\handler\interceptor\combined_interceptor.py", line 56, in intercept await self.x.intercept( File "C:\Users\Administrator\AppData\Local\pypoetry\Cache\virtualenvs\zhenxun-bot-wJE_wHbX-py3.10\lib\site-packages\nonebot_plugin_pixivbot\handler\interceptor\combined_interceptor.py", line 56, in intercept await self.x.intercept( File "C:\Users\Administrator\AppData\Local\pypoetry\Cache\virtualenvs\zhenxun-bot-wJE_wHbX-py3.10\lib\site-packages\nonebot_plugin_pixivbot\handler\interceptor\combined_interceptor.py", line 56, in intercept await self.x.intercept( [Previous line repeated 2 more times] File "C:\Users\Administrator\AppData\Local\pypoetry\Cache\virtualenvs\zhenxun-bot-wJE_wHbX-py3.10\lib\site-packages\nonebot_plugin_pixivbot\handler\interceptor\default_error_interceptor.py", line 36, in intercept raise e # 重新抛出,让上层可以处理(如scheduler中需要处理Handler的异常) File "C:\Users\Administrator\AppData\Local\pypoetry\Cache\virtualenvs\zhenxun-bot-wJE_wHbX-py3.10\lib\site-packages\nonebot_plugin_pixivbot\handler\interceptor\default_error_interceptor.py", line 22, in intercept await wrapped_func(args, post_dest=post_dest, silently=silently, kwargs) File "C:\Users\Administrator\AppData\Local\pypoetry\Cache\virtualenvs\zhenxun-bot-wJE_wHbX-py3.10\lib\site-packages\nonebot_plugin_pixivbot\handler\interceptor\timeout_interceptor.py", line 21, in intercept await wait_for(wrapped_func(*args, post_dest=post_dest, silently=silently, kwargs), File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\asyncio\tasks.py", line 447, in wait_for return fut.result() File "C:\Users\Administrator\AppData\Local\pypoetry\Cache\virtualenvs\zhenxun-bot-wJE_wHbX-py3.10\lib\site-packages\nonebot_plugin_pixivbot\handler\interceptor\retry_interceptor.py", line 32, in intercept raise e File "C:\Users\Administrator\AppData\Local\pypoetry\Cache\virtualenvs\zhenxun-bot-wJE_wHbX-py3.10\lib\site-packages\nonebot_plugin_pixivbot\handler\interceptor\retry_interceptor.py", line 26, in intercept return await wrapped_func(*args, post_dest=post_dest, silently=silently, *kwargs) File "C:\Users\Administrator\AppData\Local\pypoetry\Cache\virtualenvs\zhenxun-bot-wJE_wHbX-py3.10\lib\site-packages\nonebot_plugin_pixivbot\handler\interceptor\loading_prompt_interceptor.py", line 33, in intercept await wrapped_func(args, post_dest=post_dest, silently=silently, kwargs) File "C:\Users\Administrator\AppData\Local\pypoetry\Cache\virtualenvs\zhenxun-bot-wJE_wHbX-py3.10\lib\site-packages\nonebot_plugin_pixivbot\handler\interceptor\service_interceptor.py", line 35, in intercept await wrapped_func(*args, post_dest=post_dest, silently=silently, *kwargs) File "C:\Users\Administrator\AppData\Local\pypoetry\Cache\virtualenvs\zhenxun-bot-wJE_wHbX-py3.10\lib\site-packages\nonebot_plugin_pixivbot\handler\interceptor\record_req_interceptor.py", line 20, in intercept await wrapped_func(args, post_dest=post_dest, silently=silently, kwargs) File "C:\Users\Administrator\AppData\Local\pypoetry\Cache\virtualenvs\zhenxun-bot-wJE_wHbX-py3.10\lib\site-packages\nonebot_plugin_pixivbot\handler\base.py", line 126, in _parse_args_and_actual_handle await self.actual_handle(post_dest=post_dest, silently=silently, kwargs) File "C:\Users\Administrator\AppData\Local\pypoetry\Cache\virtualenvs\zhenxun-bot-wJE_wHbX-py3.10\lib\site-packages\nonebot_plugin_pixivbot\handler\common\random_bookmark.py", line 81, in actual_handle illusts = await self.service.random_bookmark(pixiv_user_id, count=count, File "C:\Users\Administrator\AppData\Local\pypoetry\Cache\virtualenvs\zhenxun-bot-wJE_wHbX-py3.10\lib\site-packages\nonebot_plugin_pixivbot\service\pixiv_service.py", line 119, in random_bookmark illusts = [x async for x in self.repo.user_bookmarks(pixiv_user_id)] File "C:\Users\Administrator\AppData\Local\pypoetry\Cache\virtualenvs\zhenxun-bot-wJE_wHbX-py3.10\lib\site-packages\nonebot_plugin_pixivbot\service\pixiv_service.py", line 119, in illusts = [x async for x in self.repo.user_bookmarks(pixiv_user_id)] File "C:\Users\Administrator\AppData\Local\pypoetry\Cache\virtualenvs\zhenxun-bot-wJE_wHbX-py3.10\lib\site-packages\nonebot_plugin_pixivbot\data\pixiv_repo\mediator_repo.py", line 275, in user_bookmarks async for x in gen: File "C:\Users\Administrator\AppData\Local\pypoetry\Cache\virtualenvs\zhenxun-bot-wJE_wHbX-py3.10\lib\site-packages\nonebot_plugin_pixivbot\utils\shared_agen.py", line 63, in _generator raise e File "C:\Users\Administrator\AppData\Local\pypoetry\Cache\virtualenvs\zhenxun-bot-wJE_wHbX-py3.10\lib\site-packages\nonebot_plugin_pixivbot\utils\shared_agen.py", line 55, in _generator new_data = await self._origin.anext() File "C:\Users\Administrator\AppData\Local\pypoetry\Cache\virtualenvs\zhenxun-bot-wJE_wHbX-py3.10\lib\site-packages\nonebot_plugin_pixivbot\data\pixiv_repo\mediator.py", line 169, in mediate_append async for x in _load_many_from_remote_and_append(remote_factory, query_kwargs, File "C:\Users\Administrator\AppData\Local\pypoetry\Cache\virtualenvs\zhenxun-bot-wJE_wHbX-py3.10\lib\site-packages\nonebot_plugin_pixivbot\data\pixiv_repo\mediator.py", line 91, in _load_many_from_remote_and_append async for item in remote_factory(query_kwargs): File "C:\Users\Administrator\AppData\Local\pypoetry\Cache\virtualenvs\zhenxun-bot-wJE_wHbX-py3.10\lib\site-packages\nonebot_plugin_pixivbot\data\pixiv_repo\remote_repo.py", line 242, in _get_illusts async for page, metadata in self._load_many_pages(papi_search_func, "illusts", File "C:\Users\Administrator\AppData\Local\pypoetry\Cache\virtualenvs\zhenxun-bot-wJE_wHbX-py3.10\lib\site-packages\nonebot_plugin_pixivbot\data\pixiv_repo\remote_repo.py", line 190, in _load_many_pages page, metadata = await self._load_page(papi_search_func, element_list_name, mapper=mapper, File "C:\Users\Administrator\AppData\Local\pypoetry\Cache\virtualenvs\zhenxun-bot-wJE_wHbX-py3.10\lib\site-packages\nonebot_plugin_pixivbot\data\pixiv_repo\remote_repo.py", line 156, in _load_page raw_result = await self._load_raw_page(papi_search_func, kwargs) File "C:\Users\Administrator\AppData\Local\pypoetry\Cache\virtualenvs\zhenxun-bot-wJE_wHbX-py3.10\lib\site-packages\nonebot_plugin_pixivbot\data\pixiv_repo\remote_repo.py", line 138, in _load_raw_page raw_result = await papi_search_func(**kwargs) File "C:\Users\Administrator\AppData\Local\pypoetry\Cache\virtualenvs\zhenxun-bot-wJE_wHbX-py3.10\lib\site-packages\pixivpy_async\aapi.py", line 217, in user_bookmarksillust return await self.requests(method=method, url=url, params=params, auth=req_auth) File "C:\Users\Administrator\AppData\Local\pypoetry\Cache\virtualenvs\zhenxun-bot-wJE_wHbX-py3.10\lib\site-packages\pixivpyasync\bapi.py", line 48, in requests raise NoTokenError pixivpy_async.error.NoTokenError: No access_token Found!`

--------------------截图---------------------- image

麻烦帮忙看一下,虽然不解决也没事。

ssttkkl commented 1 year ago

没登录成功,刚启动的时候肯定还有报错的,多半是网络问题


From: 野野加奈 @.> Sent: Monday, March 13, 2023 12:39:36 AM To: ssttkkl/nonebot-plugin-pixivbot @.> Cc: Subscribed @.***> Subject: [ssttkkl/nonebot-plugin-pixivbot] 内部错误:<class 'pixivpy_async.error.NoTokenError'>No access_token Found! (Issue #150)

内部错误:<class 'pixivpy_async.error.NoTokenError'>No access_token Found! 我这边用的zhenxun跑的,因为没有.env.prod,我把token补到.env.dev里了,但是没用。 新建了个.env.prod,写入了,但是也读不到。希望能告诉我一下入口在哪里,我直接填进去。

------------------------------------------------详细报错--------------------------------------------------- `03-13 00:32:30 [INFO] nonebot_plugin_pixivbot | [mediator] user_bookmarks 20017078 cache_strategy=NORMAL 03-13 00:32:30 [INFO] nonebot_plugin_pixivbot | [local] user_bookmarks 20017078 03-13 00:32:30 [INFO] nonebot_plugin_pixivbot | [mediator] no cache 03-13 00:32:30 [INFO] nonebot_plugin_pixivbot | [remote] user_bookmarks 20017078 03-13 00:32:30 [INFO] nonebot_plugin_pixivbot | [remote] got 0 illusts, illust_detail of 0 are missed 03-13 00:32:30 [ERROR] nonebot_plugin_pixivbot | error <class 'pixivpy_async.error.NoTokenError'> raised by agen (USER_BOOKMARKS user_id=20017078) 03-13 00:32:31 [SUCCESS] nonebot | OneBot V11 2712395970 | [message.group.normal]: Message 1179271396 from 972127577@[群:636925153] '[image:file=5f155272ca2c3094afaf7254e276cfda.image, subType=0, url=https://gchat.qpic.cn/gchatpic_new/972127577/636925153-2565612720-5...]' 03-13 00:32:31 [INFO] nonebot | Event will be handled by Matcher(type='message', module=plugins.mute) 03-13 00:32:31 [INFO] nonebot | Event will be handled by Matcher(type='message', module=plugins.black_word) 03-13 00:32:31 [INFO] nonebot | Event will be handled by Matcher(type='message', module=plugins.parse_bilibili_json) 03-13 00:32:31 [INFO] nonebot | Event will be handled by Matcher(type='message', module=basic_plugins.chat_history.chat_message) 03-13 00:32:31 [INFO] nonebot | Matcher(type='message', module=plugins.black_word) running complete 03-13 00:32:31 [INFO] nonebot | Matcher(type='message', module=plugins.parse_bilibili_json) running complete 03-13 00:32:31 [INFO] nonebot | Matcher(type='message', module=basic_plugins.chat_history.chat_message) running complete 03-13 00:32:31 [INFO] nonebot | Matcher(type='message', module=plugins.mute) running complete 03-13 00:32:31 [INFO] nonebot | Matcher(type='message', module=nonebot_plugin_pixivbot.handler.common.random_bookmark) running complete 03-13 00:32:31 [ERROR] nonebot | Running Matcher(type='message', module=nonebot_plugin_pixivbot.handler.common.random_bookmark) failed. Traceback (most recent call last): File "C:\Users\Administrator\AppData\Local\pypoetry\Cache\virtualenvs\zhenxun-bot-wJE_wHbX-py3.10\lib\site-packages\nonebot_plugin_pixivbot\data\pixiv_repo\mediator.py", line 164, in mediate_append async for x in _load_many_from_local_and_remote_and_append(cache_factory, remote_factory, query_kwargs, File "C:\Users\Administrator\AppData\Local\pypoetry\Cache\virtualenvs\zhenxun-bot-wJE_wHbX-py3.10\lib\site-packages\nonebot_plugin_pixivbot\data\pixiv_repo\mediator.py", line 57, in _load_many_from_local_and_remote_and_append async for x in cache_factory(**query_kwargs): File "C:\Users\Administrator\AppData\Local\pypoetry\Cache\virtualenvs\zhenxun-bot-wJE_wHbX-py3.10\lib\site-packages\nonebot_plugin_pixivbot\data\pixiv_repo\local_repo\sql.py", line 473, in user_bookmarks async for x in self._get_illusts(session, "user_bookmarks", {"user_id": user_id}, File "C:\Users\Administrator\AppData\Local\pypoetry\Cache\virtualenvs\zhenxun-bot-wJE_wHbX-py3.10\lib\site-packages\nonebot_plugin_pixivbot\data\pixiv_repo\local_repo\sql.py", line 71, in _get_illusts raise NoSuchItemError() nonebot_plugin_pixivbot.data.pixiv_repo.errors.NoSuchItemError

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "C:\Users\Administrator\Desktop\zhenxun_bot-main\zhenxun_bot-main\bot.py", line 27, in nonebot.run() File "C:\Users\Administrator\AppData\Local\pypoetry\Cache\virtualenvs\zhenxun-bot-wJE_wHbX-py3.10\lib\site-packages\nonebotinit.py", line 273, in run get_driver().run(*args, *kwargs) File "C:\Users\Administrator\AppData\Local\pypoetry\Cache\virtualenvs\zhenxun-bot-wJE_wHbX-py3.10\lib\site-packages\nonebot\drivers\fastapi.py", line 187, in run uvicorn.run( File "C:\Users\Administrator\AppData\Local\pypoetry\Cache\virtualenvs\zhenxun-bot-wJE_wHbX-py3.10\lib\site-packages\uvicorn\main.py", line 569, in run server.run() File "C:\Users\Administrator\AppData\Local\pypoetry\Cache\virtualenvs\zhenxun-bot-wJE_wHbX-py3.10\lib\site-packages\uvicorn\server.py", line 60, in run return asyncio.run(self.serve(sockets=sockets)) File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\asyncio\runners.py", line 44, in run return loop.run_until_complete(main) File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\asyncio\base_events.py", line 628, in run_until_complete self.run_forever() File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\asyncio\windows_events.py", line 316, in run_forever super().run_forever() File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\asyncio\base_events.py", line 595, in run_forever self._run_once() File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\asyncio\base_events.py", line 1881, in _run_once handle._run() File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\asyncio\events.py", line 80, in _run self._context.run(self._callback, self._args) File "C:\Users\Administrator\AppData\Local\pypoetry\Cache\virtualenvs\zhenxun-bot-wJE_wHbX-py3.10\lib\site-packages\nonebot\message.py", line 141, in _check_matcher await _run_matcher(Matcher, bot, event, state, stack, dependency_cache)

File "C:\Users\Administrator\AppData\Local\pypoetry\Cache\virtualenvs\zhenxun-bot-wJE_wHbX-py3.10\lib\site-packages\nonebot\message.py", line 187, in run_matcher await matcher.run(bot, event, state, stack, dependency_cache) File "C:\Users\Administrator\AppData\Local\pypoetry\Cache\virtualenvs\zhenxun-bot-wJE_wHbX-py3.10\lib\site-packages\nonebot\internal\matcher\matcher.py", line 732, in run await self.simple_run(bot, event, state, stack, dependency_cache) File "C:\Users\Administrator\AppData\Local\pypoetry\Cache\virtualenvs\zhenxun-bot-wJE_wHbX-py3.10\lib\site-packages\nonebot\internal\matcher\matcher.py", line 707, in simple_run await handler( File "C:\Users\Administrator\AppData\Local\pypoetry\Cache\virtualenvs\zhenxun-bot-wJE_wHbX-py3.10\lib\site-packages\nonebot\dependencies_init.py", line 108, in call return await cast(Callable[..., Awaitable[R]], self.call)(values) File "C:\Users\Administrator\AppData\Local\pypoetry\Cache\virtualenvs\zhenxun-bot-wJE_wHbX-py3.10\lib\site-packages\nonebot_plugin_pixivbot\handler\common\random_bookmark.py", line 46, in on_match await self.handle(count=get_count(state), post_dest=get_post_dest(bot, event)) File "C:\Users\Administrator\AppData\Local\pypoetry\Cache\virtualenvs\zhenxun-bot-wJE_wHbX-py3.10\lib\site-packages\nonebot_plugin_pixivbot\handler\base.py", line 95, in handle await self.interceptor.intercept(self._parse_args_and_actual_handle, args, File "C:\Users\Administrator\AppData\Local\pypoetry\Cache\virtualenvs\zhenxun-bot-wJE_wHbX-py3.10\lib\site-packages\nonebot_plugin_pixivbot\handler\interceptor\combined_interceptor.py", line 56, in intercept await self.x.intercept( File "C:\Users\Administrator\AppData\Local\pypoetry\Cache\virtualenvs\zhenxun-bot-wJE_wHbX-py3.10\lib\site-packages\nonebot_plugin_pixivbot\handler\interceptor\combined_interceptor.py", line 56, in intercept await self.x.intercept( File "C:\Users\Administrator\AppData\Local\pypoetry\Cache\virtualenvs\zhenxun-bot-wJE_wHbX-py3.10\lib\site-packages\nonebot_plugin_pixivbot\handler\interceptor\combined_interceptor.py", line 56, in intercept await self.x.intercept( [Previous line repeated 2 more times] File "C:\Users\Administrator\AppData\Local\pypoetry\Cache\virtualenvs\zhenxun-bot-wJE_wHbX-py3.10\lib\site-packages\nonebot_plugin_pixivbot\handler\interceptor\default_error_interceptor.py", line 36, in intercept raise e # 重新抛出,让上层可以处理(如scheduler中需要处理Handler的异常) File "C:\Users\Administrator\AppData\Local\pypoetry\Cache\virtualenvs\zhenxun-bot-wJE_wHbX-py3.10\lib\site-packages\nonebot_plugin_pixivbot\handler\interceptor\default_error_interceptor.py", line 22, in intercept await wrapped_func(args, post_dest=post_dest, silently=silently, kwargs) File "C:\Users\Administrator\AppData\Local\pypoetry\Cache\virtualenvs\zhenxun-bot-wJE_wHbX-py3.10\lib\site-packages\nonebot_plugin_pixivbot\handler\interceptor\timeout_interceptor.py", line 21, in intercept await wait_for(wrapped_func(*args, post_dest=post_dest, silently=silently, kwargs), File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\asyncio\tasks.py", line 447, in wait_for return fut.result() File "C:\Users\Administrator\AppData\Local\pypoetry\Cache\virtualenvs\zhenxun-bot-wJE_wHbX-py3.10\lib\site-packages\nonebot_plugin_pixivbot\handler\interceptor\retry_interceptor.py", line 32, in intercept raise e File "C:\Users\Administrator\AppData\Local\pypoetry\Cache\virtualenvs\zhenxun-bot-wJE_wHbX-py3.10\lib\site-packages\nonebot_plugin_pixivbot\handler\interceptor\retry_interceptor.py", line 26, in intercept return await wrapped_func(*args, post_dest=post_dest, silently=silently, *kwargs) File "C:\Users\Administrator\AppData\Local\pypoetry\Cache\virtualenvs\zhenxun-bot-wJE_wHbX-py3.10\lib\site-packages\nonebot_plugin_pixivbot\handler\interceptor\loading_prompt_interceptor.py", line 33, in intercept await wrapped_func(args, post_dest=post_dest, silently=silently, kwargs) File "C:\Users\Administrator\AppData\Local\pypoetry\Cache\virtualenvs\zhenxun-bot-wJE_wHbX-py3.10\lib\site-packages\nonebot_plugin_pixivbot\handler\interceptor\service_interceptor.py", line 35, in intercept await wrapped_func(*args, post_dest=post_dest, silently=silently, *kwargs) File "C:\Users\Administrator\AppData\Local\pypoetry\Cache\virtualenvs\zhenxun-bot-wJE_wHbX-py3.10\lib\site-packages\nonebot_plugin_pixivbot\handler\interceptor\record_req_interceptor.py", line 20, in intercept await wrapped_func(args, post_dest=post_dest, silently=silently, kwargs) File "C:\Users\Administrator\AppData\Local\pypoetry\Cache\virtualenvs\zhenxun-bot-wJE_wHbX-py3.10\lib\site-packages\nonebot_plugin_pixivbot\handler\base.py", line 126, in _parse_args_and_actual_handle await self.actual_handle(post_dest=post_dest, silently=silently, kwargs) File "C:\Users\Administrator\AppData\Local\pypoetry\Cache\virtualenvs\zhenxun-bot-wJE_wHbX-py3.10\lib\site-packages\nonebot_plugin_pixivbot\handler\common\random_bookmark.py", line 81, in actual_handle illusts = await self.service.random_bookmark(pixiv_user_id, count=count, File "C:\Users\Administrator\AppData\Local\pypoetry\Cache\virtualenvs\zhenxun-bot-wJE_wHbX-py3.10\lib\site-packages\nonebot_plugin_pixivbot\service\pixiv_service.py", line 119, in random_bookmark illusts = [x async for x in self.repo.user_bookmarks(pixiv_user_id)] File "C:\Users\Administrator\AppData\Local\pypoetry\Cache\virtualenvs\zhenxun-bot-wJE_wHbX-py3.10\lib\site-packages\nonebot_plugin_pixivbot\service\pixiv_service.py", line 119, in illusts = [x async for x in self.repo.user_bookmarks(pixiv_user_id)] File "C:\Users\Administrator\AppData\Local\pypoetry\Cache\virtualenvs\zhenxun-bot-wJE_wHbX-py3.10\lib\site-packages\nonebot_plugin_pixivbot\data\pixiv_repo\mediator_repo.py", line 275, in user_bookmarks async for x in gen: File "C:\Users\Administrator\AppData\Local\pypoetry\Cache\virtualenvs\zhenxun-bot-wJE_wHbX-py3.10\lib\site-packages\nonebot_plugin_pixivbot\utils\shared_agen.py", line 63, in _generator raise e File "C:\Users\Administrator\AppData\Local\pypoetry\Cache\virtualenvs\zhenxun-bot-wJE_wHbX-py3.10\lib\site-packages\nonebot_plugin_pixivbot\utils\shared_agen.py", line 55, in _generator new_data = await self._origin.anext() File "C:\Users\Administrator\AppData\Local\pypoetry\Cache\virtualenvs\zhenxun-bot-wJE_wHbX-py3.10\lib\site-packages\nonebot_plugin_pixivbot\data\pixiv_repo\mediator.py", line 169, in mediate_append async for x in _load_many_from_remote_and_append(remote_factory, query_kwargs, File "C:\Users\Administrator\AppData\Local\pypoetry\Cache\virtualenvs\zhenxun-bot-wJE_wHbX-py3.10\lib\site-packages\nonebot_plugin_pixivbot\data\pixiv_repo\mediator.py", line 91, in _load_many_from_remote_and_append async for item in remote_factory(query_kwargs): File "C:\Users\Administrator\AppData\Local\pypoetry\Cache\virtualenvs\zhenxun-bot-wJE_wHbX-py3.10\lib\site-packages\nonebot_plugin_pixivbot\data\pixiv_repo\remote_repo.py", line 242, in _get_illusts async for page, metadata in self._load_many_pages(papi_search_func, "illusts", File "C:\Users\Administrator\AppData\Local\pypoetry\Cache\virtualenvs\zhenxun-bot-wJE_wHbX-py3.10\lib\site-packages\nonebot_plugin_pixivbot\data\pixiv_repo\remote_repo.py", line 190, in _load_many_pages page, metadata = await self._load_page(papi_search_func, element_list_name, mapper=mapper, File "C:\Users\Administrator\AppData\Local\pypoetry\Cache\virtualenvs\zhenxun-bot-wJE_wHbX-py3.10\lib\site-packages\nonebot_plugin_pixivbot\data\pixiv_repo\remote_repo.py", line 156, in _load_page raw_result = await self.load_raw_page(papi_search_func, kwargs) File "C:\Users\Administrator\AppData\Local\pypoetry\Cache\virtualenvs\zhenxun-bot-wJE_wHbX-py3.10\lib\site-packages\nonebot_plugin_pixivbot\data\pixiv_repo\remote_repo.py", line 138, in load_raw_page raw_result = await papi_search_func(**kwargs) File "C:\Users\Administrator\AppData\Local\pypoetry\Cache\virtualenvs\zhenxun-bot-wJE_wHbX-py3.10\lib\site-packages\pixivpy_async\aapi.py", line 217, in user_bookmarks_illust return await self.requests(method=method, url=url, params=params, auth=req_auth) File "C:\Users\Administrator\AppData\Local\pypoetry\Cache\virtualenvs\zhenxun-bot-wJE_wHbX-py3.10\lib\site-packages\pixivpy_async\bapi.py", line 48, in requests raise NoTokenError pixivpy_async.error.NoTokenError: No access_token Found!`

--------------------截图---------------------- [image]https://user-images.githubusercontent.com/42436917/224558746-ee274837-a00f-4068-b026-ad3f55b6bb7b.png

麻烦帮忙看一下,虽然不解决也没事。

― Reply to this email directly, view it on GitHubhttps://github.com/ssttkkl/nonebot-plugin-pixivbot/issues/150, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AEEHL4XJ7SSBGO2SI55GXRTW3X34RANCNFSM6AAAAAAVYGW2GQ. You are receiving this because you are subscribed to this thread.Message ID: @.***>

ILYSHL commented 1 year ago

刚启动没有报错的,全绿。不知道什么情况。网络应该没问题,我挂的代理只代10809端口。 下面是日志。 -------------------------LOG---------------------------- 03-13 00:06:28 [INFO] services.log | 加载配置完成,共加载 41 个配置组及对应 124 个配置项 03-13 00:06:28 [SUCCESS] nonebot | NoneBot is initializing... 03-13 00:06:28 [INFO] nonebot | Current Env: dev 03-13 00:06:29 [SUCCESS] nonebot | Succeeded to import "nonebot_plugin_apscheduler" 03-13 00:06:30 [SUCCESS] nonebot | Succeeded to import "buy" 03-13 00:06:30 [SUCCESS] nonebot | Succeeded to import "use" 03-13 00:06:31 [SUCCESS] nonebot | Succeeded to import "my_props" 03-13 00:06:31 [SUCCESS] nonebot | Succeeded to import "gold" 03-13 00:06:31 [SUCCESS] nonebot | Succeeded to import "shop_handle" 03-13 00:06:31 [SUCCESS] nonebot | Succeeded to import "shop" 03-13 00:06:31 [SUCCESS] nonebot | Succeeded to import "broadcast" 03-13 00:06:31 [SUCCESS] nonebot | Succeeded to import "nickname" 03-13 00:06:31 [SUCCESS] nonebot | Succeeded to import "help" 03-13 00:06:31 [SUCCESS] nonebot | Succeeded to import "invite_manager" 03-13 00:06:32 [SUCCESS] nonebot | Succeeded to import "bot_friend_group" 03-13 00:06:32 [SUCCESS] nonebot | Succeeded to import "reload_setting" 03-13 00:06:32 [SUCCESS] nonebot | Succeeded to import "set_admin_permissions" 03-13 00:06:32 [SUCCESS] nonebot | Succeeded to import "exec_sql" 03-13 00:06:32 [SUCCESS] nonebot | Succeeded to import "clear_data" 03-13 00:06:32 [SUCCESS] nonebot | Succeeded to import "update_friend_group_info" 03-13 00:06:32 [SUCCESS] nonebot | Succeeded to import "manager_group" 03-13 00:06:32 [SUCCESS] nonebot | Succeeded to import "super_cmd" 03-13 00:06:32 [SUCCESS] nonebot | Succeeded to import "update_info" 03-13 00:06:32 [SUCCESS] nonebot | Succeeded to import "ban" 03-13 00:06:32 [SUCCESS] nonebot | Succeeded to import "super_help" 03-13 00:06:32 [SUCCESS] nonebot | Succeeded to import "hooks" 03-13 00:06:32 [SUCCESS] nonebot | Succeeded to import "admin_help" 03-13 00:06:32 [SUCCESS] nonebot | Succeeded to import "group_handle" 03-13 00:06:32 [SUCCESS] nonebot | Succeeded to import "scripts" 03-13 00:06:32 [SUCCESS] nonebot | Succeeded to import "init_plugin_config" 03-13 00:06:32 [SUCCESS] nonebot | Succeeded to import "chat_message_handle" 03-13 00:06:32 [SUCCESS] nonebot | Succeeded to import "chat_message" 03-13 00:06:32 [SUCCESS] nonebot | Succeeded to import "chat_history" 03-13 00:06:32 [SUCCESS] nonebot | Succeeded to import "apscheduler" 03-13 00:06:32 [SUCCESS] nonebot | Succeeded to import "timing_task" 03-13 00:06:32 [SUCCESS] nonebot | Succeeded to import "rule" 03-13 00:06:33 [SUCCESS] nonebot | Succeeded to import "update_group_member_info" 03-13 00:06:33 [SUCCESS] nonebot | Succeeded to import "admin_config" 03-13 00:06:33 [SUCCESS] nonebot | Succeeded to import "custom_welcome_message" 03-13 00:06:33 [SUCCESS] nonebot | Succeeded to import "switch_rule" 03-13 00:06:33 [SUCCESS] nonebot | Succeeded to import "admin_bot_manage" 03-13 00:06:33 [SUCCESS] nonebot | Succeeded to import "plugin_shop" 03-13 00:06:33 [SUCCESS] nonebot | Succeeded to import "sign_in" 03-13 00:06:33 [SUCCESS] nonebot | Succeeded to import "wbtop" 03-13 00:06:33 [SUCCESS] nonebot | Succeeded to import "word_handle" 03-13 00:06:33 [SUCCESS] nonebot | Succeeded to import "message_handle" 03-13 00:06:33 [SUCCESS] nonebot | Succeeded to import "word_bank" 03-13 00:06:33 [SUCCESS] nonebot | Succeeded to import "nbnhhsh" 03-13 00:06:33 [SUCCESS] nonebot | Succeeded to import "move_image" 03-13 00:06:33 [SUCCESS] nonebot | Succeeded to import "send_image" 03-13 00:06:34 [SUCCESS] nonebot | Succeeded to import "upload_image" 03-13 00:06:34 [SUCCESS] nonebot | Succeeded to import "delete_image" 03-13 00:06:34 [SUCCESS] nonebot | Succeeded to import "image_management" 03-13 00:06:34 [SUCCESS] nonebot | Succeeded to import "check_zhenxun_update" 03-13 00:06:34 [SUCCESS] nonebot | Succeeded to import "aconfig" 03-13 00:06:35 [SUCCESS] nonebot | Succeeded to import "draw_card" 03-13 00:06:35 [SUCCESS] nonebot | Succeeded to import "self_message" 03-13 00:06:35 [SUCCESS] nonebot | Succeeded to import "withdraw" 03-13 00:06:35 [SUCCESS] nonebot | Succeeded to import "my_info" 03-13 00:06:36 [SUCCESS] nonebot | Succeeded to import "update_picture" 03-13 00:06:36 [SUCCESS] nonebot | Succeeded to import "one_friend" 03-13 00:06:36 [SUCCESS] nonebot | Succeeded to import "gold_redbag" 03-13 00:06:36 [SUCCESS] nonebot | Succeeded to import "dialogue" 03-13 00:06:36 [SUCCESS] nonebot | Succeeded to import "open_cases" 03-13 00:06:36 [SUCCESS] nonebot | Succeeded to import "russian" 03-13 00:06:36 [SUCCESS] nonebot | Succeeded to import "music" 03-13 00:06:36 [SUCCESS] nonebot | Succeeded to import "about" 03-13 00:06:36 [SUCCESS] nonebot | Succeeded to import "yiqing" 03-13 00:06:36 [SUCCESS] nonebot | Succeeded to import "bt" 03-13 00:06:36 [SUCCESS] nonebot | Succeeded to import "fudu" 03-13 00:06:36 [SUCCESS] nonebot | Succeeded to import "mute" 03-13 00:06:37 [SUCCESS] nonebot | Succeeded to import "check" 03-13 00:06:37 [SUCCESS] nonebot | Succeeded to import "parse_bilibili_json" 03-13 00:06:37 [SUCCESS] nonebot | Succeeded to import "update_gocqhttp" 03-13 00:06:37 [SUCCESS] nonebot | Succeeded to import "statistics_hook" 03-13 00:06:37 [SUCCESS] nonebot | Succeeded to import "statistics_handle" 03-13 00:06:37 [SUCCESS] nonebot | Succeeded to import "statistics" 03-13 00:06:37 [SUCCESS] nonebot | Succeeded to import "fake_msg" 03-13 00:06:37 [SUCCESS] nonebot | Succeeded to import "quotations" 03-13 00:06:37 [SUCCESS] nonebot | Succeeded to import "translate" 03-13 00:06:37 [SUCCESS] nonebot | Succeeded to import "web_ui" 03-13 00:06:37 [SUCCESS] nonebot | Succeeded to import "epic" 03-13 00:06:37 [SUCCESS] nonebot | Succeeded to import "comments_163" 03-13 00:06:37 [SUCCESS] nonebot | Succeeded to import "jitang" 03-13 00:06:37 [SUCCESS] nonebot | Succeeded to import "poetry" 03-13 00:06:37 [SUCCESS] nonebot | Succeeded to import "cover" 03-13 00:06:37 [SUCCESS] nonebot | Succeeded to import "alapi" 03-13 00:06:38 [SUCCESS] nonebot | Succeeded to import "word_clouds" 03-13 00:06:38 [SUCCESS] nonebot | Succeeded to import "black_word" 03-13 00:06:38 [SUCCESS] nonebot | Succeeded to import "group_welcome_msg" 03-13 00:06:38 [SUCCESS] nonebot | Succeeded to import "poke" 03-13 00:06:38 [SUCCESS] nonebot | Succeeded to import "roll" 03-13 00:06:38 [SUCCESS] nonebot | Succeeded to import "pid_search" 03-13 00:06:39 [SUCCESS] nonebot | Succeeded to import "bilibili_sub" 03-13 00:06:39 [SUCCESS] nonebot | Succeeded to import "what_anime" 03-13 00:06:39 [SUCCESS] nonebot | Succeeded to import "white2black_image" 03-13 00:06:39 [WARNING] nonebot | Duplicated prefix rule "check" 03-13 00:06:39 [SUCCESS] nonebot | Succeeded to import "nonebot_plugin_bread_shop" 03-13 00:06:39 [SUCCESS] nonebot | Succeeded to import "nonebot_plugin_htmlrender" 03-13 00:06:39 [SUCCESS] nonebot | Succeeded to import "nonebot_plugin_localstore" 03-13 00:06:39 [SUCCESS] nonebot | Succeeded to import "nonebot_plugin_ddcheck" 03-13 00:06:39 [SUCCESS] nonebot | Succeeded to import "nonebot_plugin_youthstudy" 03-13 00:06:39 [SUCCESS] nonebot | Succeeded to import "nonebot_plugin_htmlrender" 03-13 00:06:39 [INFO] nonebot_plugin_naturel_gpt | Naturel GPT 配置文件加载成功 03-13 00:06:43 [INFO] nonebot_plugin_naturel_gpt | 读取历史数据成功 03-13 00:06:43 [INFO] nonebot_plugin_naturel_gpt | 共读取到 2 个API Key 03-13 00:06:43 [WARNING] nonebot_plugin_naturel_gpt | 聊天摘要功能已关闭,将自动清理历史聊天摘要数据 03-13 00:06:43 [INFO] nonebot_plugin_naturel_gpt | 正在从加载拓展模块 "ext_forget" ... 03-13 00:06:44 [INFO] nonebot_plugin_naturel_gpt | 加载拓展模块 ext_forget 成功! 03-13 00:06:44 [INFO] nonebot_plugin_naturel_gpt | 正在从加载拓展模块 "ext_remember" ... 03-13 00:06:44 [INFO] nonebot_plugin_naturel_gpt | 加载拓展模块 ext_remember 成功! 03-13 00:06:44 [INFO] nonebot_plugin_naturel_gpt | 正在从加载拓展模块 "ext_email" ... 03-13 00:06:45 [INFO] nonebot_plugin_naturel_gpt | 加载拓展模块 ext_email 成功! 03-13 00:06:45 [INFO] nonebot_plugin_naturel_gpt | 正在从加载拓展模块 "ext_random_pic" ... 03-13 00:06:45 [INFO] nonebot_plugin_naturel_gpt | 加载拓展模块 ext_random_pic 成功! 03-13 00:06:45 [INFO] nonebot_plugin_naturel_gpt | 正在从加载拓展模块 "ext_voice" ... 03-13 00:06:46 [INFO] nonebot_plugin_naturel_gpt | 加载拓展模块 ext_voice 成功! 03-13 00:06:46 [INFO] nonebot_plugin_naturel_gpt | 正在从加载拓展模块 "ext_paint" ... 03-13 00:06:49 [INFO] nonebot_plugin_naturel_gpt | 加载拓展模块 ext_paint 成功! 03-13 00:06:49 [SUCCESS] nonebot | Succeeded to import "nonebot_plugin_naturel_gpt" 03-13 00:06:49 [SUCCESS] nonebot | Succeeded to import "nonebot_plugin_datastore" 03-13 00:06:49 [SUCCESS] nonebot | Succeeded to import "nonebot_plugin_shindan" 03-13 00:06:50 [SUCCESS] nonebot | Succeeded to import "nonebot_plugin_who_at_me" 03-13 00:06:50 [SUCCESS] nonebot | Succeeded to import "nonebot_plugin_fortune" 03-13 00:06:50 [SUCCESS] nonebot | Succeeded to import "nonebot_plugin_imageutils" 03-13 00:06:55 [SUCCESS] nonebot | Succeeded to import "nonebot_plugin_petpet" 03-13 00:06:55 [SUCCESS] nonebot | Succeeded to import "YetAnotherPicSearch" 03-13 00:06:56 [SUCCESS] nonebot | Succeeded to import "nonebot_plugin_morning" 03-13 00:06:56 [SUCCESS] nonebot | Succeeded to import "chkdsk_hook" 03-13 00:06:56 [SUCCESS] nonebot | Succeeded to import "task_hook" 03-13 00:06:56 [SUCCESS] nonebot | Succeeded to import "withdraw_message_hook" 03-13 00:06:56 [SUCCESS] nonebot | Succeeded to import "other_hook" 03-13 00:06:56 [SUCCESS] nonebot | Succeeded to import "auth_hook" 03-13 00:06:56 [SUCCESS] nonebot | Succeeded to import "ban_hook" 03-13 00:06:56 [SUCCESS] nonebot | Succeeded to import "nonebot_plugin_heweather" 03-13 00:06:56 [SUCCESS] nonebot | Succeeded to import "nonebot_plugin_setu_now" 03-13 00:06:56 [SUCCESS] nonebot_plugin_access_control | Loaded plugin for: OneBot V11 03-13 00:06:56 [SUCCESS] nonebot | Succeeded to import "nonebot_plugin_access_control" 03-13 00:06:58 [SUCCESS] nonebot_plugin_pixivbot | Loaded PixivBot for OneBot V11 03-13 00:06:58 [SUCCESS] nonebot | Succeeded to import "nonebot_plugin_pixivbot" 03-13 00:06:58 [SUCCESS] nonebot | Running NoneBot... 03-13 00:06:58 [INFO] uvicorn | Started server process [3360] 03-13 00:06:58 [INFO] uvicorn | Waiting for application startup. 03-13 00:06:59 [INFO] services | Database loaded successfully! 03-13 00:06:59 [INFO] nonebot_plugin_apscheduler | Scheduler Started 03-13 00:07:02 [INFO] services | 已成功加载 41 个非限制插件. 03-13 00:07:02 [INFO] services | 已成功加载 2 个Cd限制. 03-13 00:07:02 [INFO] services | 已成功加载 2 个Block限制. 03-13 00:07:02 [INFO] services | 已成功加载 1 个Count限制. 03-13 00:07:03 [INFO] services | 初始化数据完成... 03-13 00:07:03 [WARNING] draw_card | pretty_up_char 解析出错 03-13 00:07:05 [WARNING] draw_card | 碧蓝档案 更新数据错误:<class 'json.decoder.JSONDecodeError'>:Expecting value: line 1 column 1 (char 0) 03-13 00:07:05 [INFO] nonebot_plugin_htmlrender | 使用 chromium 启动 03-13 00:07:07 [INFO] nonebot_plugin_htmlrender | Browser Started. 03-13 00:07:09 [INFO] nonebot_plugin_htmlrender | 使用 chromium 启动 03-13 00:07:11 [INFO] nonebot_plugin_htmlrender | Browser Started. 03-13 00:07:12 [INFO] nonebot_plugin_datastore | 数据库初始化完成 03-13 00:07:23 [INFO] nonebot_plugin_fortune | Got the latest copywriting.json from repo, version: 1.2 03-13 00:07:23 [INFO] nonebot_plugin_petpet | 正在检查资源文件... 03-13 00:07:23 [INFO] nonebot_plugin_morning | 每日早晚安定时刷新任务已启动! 03-13 00:07:23 [INFO] nonebot_plugin_morning | 每周晚安定时刷新任务已启动! 03-13 00:07:23 [INFO] nonebot_plugin_morning | 每周睡眠时间定时刷新任务已启动! 03-13 00:07:23 [SUCCESS] nonebot_plugin_pixivbot | [data source] SqlDataSource Initialized (dialect: sqlite) 03-13 00:07:23 [INFO] uvicorn | Application startup complete. 03-13 00:07:23 [INFO] uvicorn | Uvicorn running on http://127.0.0.1:8080 (Press CTRL+C to quit) 03-13 00:07:26 [INFO] uvicorn | ('127.0.0.1', 62584) - "WebSocket /onebot/v11/ws/" [accepted] 03-13 00:07:26 [INFO] nonebot | OneBot V11 | Bot 2712395970 connected 03-13 00:07:26 [INFO] websockets | connection open 03-13 00:07:27 [INFO] services | 已成功加载 8 个被动技能.

ssttkkl commented 1 year ago

使用代理的话,配置文件里有没有配置pixiv_proxy

正常的启动流程会在bot初始化后有这几句: 03-13 11:19:36 [SUCCESS] nonebot_plugin_pixivbot | refresh access token successfully. new token expires in 3600 seconds. 03-13 11:19:36 [DEBUG] nonebot_plugin_pixivbot | access_token: * 03-13 11:19:36 [DEBUG] nonebot_plugin_pixivbot | refresh_token: ***

从 Windows 版邮件https://go.microsoft.com/fwlink/?LinkId=550986发送

发件人: @.> 发送时间: 2023年3月13日 11:12 收件人: @.> 抄送: @.>; @.> 主题: Re: [ssttkkl/nonebot-plugin-pixivbot] 内部错误:<class 'pixivpy_async.error.NoTokenError'>No access_token Found! (Issue #150)

刚启动没有报错的,全绿。不知道什么情况。网络应该没问题,我挂的代理只代10809端口。 下面是日志。 -------------------------LOG---------------------------- 03-13 00:06:28 [INFO] services.log | 加载配置完成,共加载 41 个配置组及对应 124 个配置项 03-13 00:06:28 [SUCCESS] nonebot | NoneBot is initializing... 03-13 00:06:28 [INFO] nonebot | Current Env: dev 03-13 00:06:29 [SUCCESS] nonebot | Succeeded to import "nonebot_plugin_apscheduler" 03-13 00:06:30 [SUCCESS] nonebot | Succeeded to import "buy" 03-13 00:06:30 [SUCCESS] nonebot | Succeeded to import "use" 03-13 00:06:31 [SUCCESS] nonebot | Succeeded to import "my_props" 03-13 00:06:31 [SUCCESS] nonebot | Succeeded to import "gold" 03-13 00:06:31 [SUCCESS] nonebot | Succeeded to import "shop_handle" 03-13 00:06:31 [SUCCESS] nonebot | Succeeded to import "shop" 03-13 00:06:31 [SUCCESS] nonebot | Succeeded to import "broadcast" 03-13 00:06:31 [SUCCESS] nonebot | Succeeded to import "nickname" 03-13 00:06:31 [SUCCESS] nonebot | Succeeded to import "help" 03-13 00:06:31 [SUCCESS] nonebot | Succeeded to import "invite_manager" 03-13 00:06:32 [SUCCESS] nonebot | Succeeded to import "bot_friend_group" 03-13 00:06:32 [SUCCESS] nonebot | Succeeded to import "reload_setting" 03-13 00:06:32 [SUCCESS] nonebot | Succeeded to import "set_admin_permissions" 03-13 00:06:32 [SUCCESS] nonebot | Succeeded to import "exec_sql" 03-13 00:06:32 [SUCCESS] nonebot | Succeeded to import "clear_data" 03-13 00:06:32 [SUCCESS] nonebot | Succeeded to import "update_friend_group_info" 03-13 00:06:32 [SUCCESS] nonebot | Succeeded to import "manager_group" 03-13 00:06:32 [SUCCESS] nonebot | Succeeded to import "super_cmd" 03-13 00:06:32 [SUCCESS] nonebot | Succeeded to import "update_info" 03-13 00:06:32 [SUCCESS] nonebot | Succeeded to import "ban" 03-13 00:06:32 [SUCCESS] nonebot | Succeeded to import "super_help" 03-13 00:06:32 [SUCCESS] nonebot | Succeeded to import "hooks" 03-13 00:06:32 [SUCCESS] nonebot | Succeeded to import "admin_help" 03-13 00:06:32 [SUCCESS] nonebot | Succeeded to import "group_handle" 03-13 00:06:32 [SUCCESS] nonebot | Succeeded to import "scripts" 03-13 00:06:32 [SUCCESS] nonebot | Succeeded to import "init_plugin_config" 03-13 00:06:32 [SUCCESS] nonebot | Succeeded to import "chat_message_handle" 03-13 00:06:32 [SUCCESS] nonebot | Succeeded to import "chat_message" 03-13 00:06:32 [SUCCESS] nonebot | Succeeded to import "chat_history" 03-13 00:06:32 [SUCCESS] nonebot | Succeeded to import "apscheduler" 03-13 00:06:32 [SUCCESS] nonebot | Succeeded to import "timing_task" 03-13 00:06:32 [SUCCESS] nonebot | Succeeded to import "rule" 03-13 00:06:33 [SUCCESS] nonebot | Succeeded to import "update_group_member_info" 03-13 00:06:33 [SUCCESS] nonebot | Succeeded to import "admin_config" 03-13 00:06:33 [SUCCESS] nonebot | Succeeded to import "custom_welcome_message" 03-13 00:06:33 [SUCCESS] nonebot | Succeeded to import "switch_rule" 03-13 00:06:33 [SUCCESS] nonebot | Succeeded to import "admin_bot_manage" 03-13 00:06:33 [SUCCESS] nonebot | Succeeded to import "plugin_shop" 03-13 00:06:33 [SUCCESS] nonebot | Succeeded to import "sign_in" 03-13 00:06:33 [SUCCESS] nonebot | Succeeded to import "wbtop" 03-13 00:06:33 [SUCCESS] nonebot | Succeeded to import "word_handle" 03-13 00:06:33 [SUCCESS] nonebot | Succeeded to import "message_handle" 03-13 00:06:33 [SUCCESS] nonebot | Succeeded to import "word_bank" 03-13 00:06:33 [SUCCESS] nonebot | Succeeded to import "nbnhhsh" 03-13 00:06:33 [SUCCESS] nonebot | Succeeded to import "move_image" 03-13 00:06:33 [SUCCESS] nonebot | Succeeded to import "send_image" 03-13 00:06:34 [SUCCESS] nonebot | Succeeded to import "upload_image" 03-13 00:06:34 [SUCCESS] nonebot | Succeeded to import "delete_image" 03-13 00:06:34 [SUCCESS] nonebot | Succeeded to import "image_management" 03-13 00:06:34 [SUCCESS] nonebot | Succeeded to import "check_zhenxun_update" 03-13 00:06:34 [SUCCESS] nonebot | Succeeded to import "aconfig" 03-13 00:06:35 [SUCCESS] nonebot | Succeeded to import "draw_card" 03-13 00:06:35 [SUCCESS] nonebot | Succeeded to import "self_message" 03-13 00:06:35 [SUCCESS] nonebot | Succeeded to import "withdraw" 03-13 00:06:35 [SUCCESS] nonebot | Succeeded to import "my_info" 03-13 00:06:36 [SUCCESS] nonebot | Succeeded to import "update_picture" 03-13 00:06:36 [SUCCESS] nonebot | Succeeded to import "one_friend" 03-13 00:06:36 [SUCCESS] nonebot | Succeeded to import "gold_redbag" 03-13 00:06:36 [SUCCESS] nonebot | Succeeded to import "dialogue" 03-13 00:06:36 [SUCCESS] nonebot | Succeeded to import "open_cases" 03-13 00:06:36 [SUCCESS] nonebot | Succeeded to import "russian" 03-13 00:06:36 [SUCCESS] nonebot | Succeeded to import "music" 03-13 00:06:36 [SUCCESS] nonebot | Succeeded to import "about" 03-13 00:06:36 [SUCCESS] nonebot | Succeeded to import "yiqing" 03-13 00:06:36 [SUCCESS] nonebot | Succeeded to import "bt" 03-13 00:06:36 [SUCCESS] nonebot | Succeeded to import "fudu" 03-13 00:06:36 [SUCCESS] nonebot | Succeeded to import "mute" 03-13 00:06:37 [SUCCESS] nonebot | Succeeded to import "check" 03-13 00:06:37 [SUCCESS] nonebot | Succeeded to import "parse_bilibili_json" 03-13 00:06:37 [SUCCESS] nonebot | Succeeded to import "update_gocqhttp" 03-13 00:06:37 [SUCCESS] nonebot | Succeeded to import "statistics_hook" 03-13 00:06:37 [SUCCESS] nonebot | Succeeded to import "statistics_handle" 03-13 00:06:37 [SUCCESS] nonebot | Succeeded to import "statistics" 03-13 00:06:37 [SUCCESS] nonebot | Succeeded to import "fake_msg" 03-13 00:06:37 [SUCCESS] nonebot | Succeeded to import "quotations" 03-13 00:06:37 [SUCCESS] nonebot | Succeeded to import "translate" 03-13 00:06:37 [SUCCESS] nonebot | Succeeded to import "web_ui" 03-13 00:06:37 [SUCCESS] nonebot | Succeeded to import "epic" 03-13 00:06:37 [SUCCESS] nonebot | Succeeded to import "comments_163" 03-13 00:06:37 [SUCCESS] nonebot | Succeeded to import "jitang" 03-13 00:06:37 [SUCCESS] nonebot | Succeeded to import "poetry" 03-13 00:06:37 [SUCCESS] nonebot | Succeeded to import "cover" 03-13 00:06:37 [SUCCESS] nonebot | Succeeded to import "alapi" 03-13 00:06:38 [SUCCESS] nonebot | Succeeded to import "word_clouds" 03-13 00:06:38 [SUCCESS] nonebot | Succeeded to import "black_word" 03-13 00:06:38 [SUCCESS] nonebot | Succeeded to import "group_welcome_msg" 03-13 00:06:38 [SUCCESS] nonebot | Succeeded to import "poke" 03-13 00:06:38 [SUCCESS] nonebot | Succeeded to import "roll" 03-13 00:06:38 [SUCCESS] nonebot | Succeeded to import "pid_search" 03-13 00:06:39 [SUCCESS] nonebot | Succeeded to import "bilibili_sub" 03-13 00:06:39 [SUCCESS] nonebot | Succeeded to import "what_anime" 03-13 00:06:39 [SUCCESS] nonebot | Succeeded to import "white2black_image" 03-13 00:06:39 [WARNING] nonebot | Duplicated prefix rule "check" 03-13 00:06:39 [SUCCESS] nonebot | Succeeded to import "nonebot_plugin_bread_shop" 03-13 00:06:39 [SUCCESS] nonebot | Succeeded to import "nonebot_plugin_htmlrender" 03-13 00:06:39 [SUCCESS] nonebot | Succeeded to import "nonebot_plugin_localstore" 03-13 00:06:39 [SUCCESS] nonebot | Succeeded to import "nonebot_plugin_ddcheck" 03-13 00:06:39 [SUCCESS] nonebot | Succeeded to import "nonebot_plugin_youthstudy" 03-13 00:06:39 [SUCCESS] nonebot | Succeeded to import "nonebot_plugin_htmlrender" 03-13 00:06:39 [INFO] nonebot_plugin_naturel_gpt | Naturel GPT 配置文件加载成功 03-13 00:06:43 [INFO] nonebot_plugin_naturel_gpt | 读取历史数据成功 03-13 00:06:43 [INFO] nonebot_plugin_naturel_gpt | 共读取到 2 个API Key 03-13 00:06:43 [WARNING] nonebot_plugin_naturel_gpt | 聊天摘要功能已关闭,将自动清理历史聊天摘要数据 03-13 00:06:43 [INFO] nonebot_plugin_naturel_gpt | 正在从加载拓展模块 "ext_forget" ... 03-13 00:06:44 [INFO] nonebot_plugin_naturel_gpt | 加载拓展模块 ext_forget 成功! 03-13 00:06:44 [INFO] nonebot_plugin_naturel_gpt | 正在从加载拓展模块 "ext_remember" ... 03-13 00:06:44 [INFO] nonebot_plugin_naturel_gpt | 加载拓展模块 ext_remember 成功! 03-13 00:06:44 [INFO] nonebot_plugin_naturel_gpt | 正在从加载拓展模块 "ext_email" ... 03-13 00:06:45 [INFO] nonebot_plugin_naturel_gpt | 加载拓展模块 ext_email 成功! 03-13 00:06:45 [INFO] nonebot_plugin_naturel_gpt | 正在从加载拓展模块 "ext_random_pic" ... 03-13 00:06:45 [INFO] nonebot_plugin_naturel_gpt | 加载拓展模块 ext_random_pic 成功! 03-13 00:06:45 [INFO] nonebot_plugin_naturel_gpt | 正在从加载拓展模块 "ext_voice" ... 03-13 00:06:46 [INFO] nonebot_plugin_naturel_gpt | 加载拓展模块 ext_voice 成功! 03-13 00:06:46 [INFO] nonebot_plugin_naturel_gpt | 正在从加载拓展模块 "ext_paint" ... 03-13 00:06:49 [INFO] nonebot_plugin_naturel_gpt | 加载拓展模块 ext_paint 成功! 03-13 00:06:49 [SUCCESS] nonebot | Succeeded to import "nonebot_plugin_naturel_gpt" 03-13 00:06:49 [SUCCESS] nonebot | Succeeded to import "nonebot_plugin_datastore" 03-13 00:06:49 [SUCCESS] nonebot | Succeeded to import "nonebot_plugin_shindan" 03-13 00:06:50 [SUCCESS] nonebot | Succeeded to import "nonebot_plugin_who_at_me" 03-13 00:06:50 [SUCCESS] nonebot | Succeeded to import "nonebot_plugin_fortune" 03-13 00:06:50 [SUCCESS] nonebot | Succeeded to import "nonebot_plugin_imageutils" 03-13 00:06:55 [SUCCESS] nonebot | Succeeded to import "nonebot_plugin_petpet" 03-13 00:06:55 [SUCCESS] nonebot | Succeeded to import "YetAnotherPicSearch" 03-13 00:06:56 [SUCCESS] nonebot | Succeeded to import "nonebot_plugin_morning" 03-13 00:06:56 [SUCCESS] nonebot | Succeeded to import "chkdsk_hook" 03-13 00:06:56 [SUCCESS] nonebot | Succeeded to import "task_hook" 03-13 00:06:56 [SUCCESS] nonebot | Succeeded to import "withdraw_message_hook" 03-13 00:06:56 [SUCCESS] nonebot | Succeeded to import "other_hook" 03-13 00:06:56 [SUCCESS] nonebot | Succeeded to import "auth_hook" 03-13 00:06:56 [SUCCESS] nonebot | Succeeded to import "ban_hook" 03-13 00:06:56 [SUCCESS] nonebot | Succeeded to import "nonebot_plugin_heweather" 03-13 00:06:56 [SUCCESS] nonebot | Succeeded to import "nonebot_plugin_setu_now" 03-13 00:06:56 [SUCCESS] nonebot_plugin_access_control | Loaded plugin for: OneBot V11 03-13 00:06:56 [SUCCESS] nonebot | Succeeded to import "nonebot_plugin_access_control" 03-13 00:06:58 [SUCCESS] nonebot_plugin_pixivbot | Loaded PixivBot for OneBot V11 03-13 00:06:58 [SUCCESS] nonebot | Succeeded to import "nonebot_plugin_pixivbot" 03-13 00:06:58 [SUCCESS] nonebot | Running NoneBot... 03-13 00:06:58 [INFO] uvicorn | Started server process [3360] 03-13 00:06:58 [INFO] uvicorn | Waiting for application startup. 03-13 00:06:59 [INFO] services | Database loaded successfully! 03-13 00:06:59 [INFO] nonebot_plugin_apscheduler | Scheduler Started 03-13 00:07:02 [INFO] services | 已成功加载 41 个非限制插件. 03-13 00:07:02 [INFO] services | 已成功加载 2 个Cd限制. 03-13 00:07:02 [INFO] services | 已成功加载 2 个Block限制. 03-13 00:07:02 [INFO] services | 已成功加载 1 个Count限制. 03-13 00:07:03 [INFO] services | 初始化数据完成... 03-13 00:07:03 [WARNING] draw_card | pretty_up_char 解析出错 03-13 00:07:05 [WARNING] draw_card | 碧蓝档案 更新数据错误:<class 'json.decoder.JSONDecodeError'>:Expecting value: line 1 column 1 (char 0) 03-13 00:07:05 [INFO] nonebot_plugin_htmlrender | 使用 chromium 启动 03-13 00:07:07 [INFO] nonebot_plugin_htmlrender | Browser Started. 03-13 00:07:09 [INFO] nonebot_plugin_htmlrender | 使用 chromium 启动 03-13 00:07:11 [INFO] nonebot_plugin_htmlrender | Browser Started. 03-13 00:07:12 [INFO] nonebot_plugin_datastore | 数据库初始化完成 03-13 00:07:23 [INFO] nonebot_plugin_fortune | Got the latest copywriting.json from repo, version: 1.2 03-13 00:07:23 [INFO] nonebot_plugin_petpet | 正在检查资源文件... 03-13 00:07:23 [INFO] nonebot_plugin_morning | 每日早晚安定时刷新任务已启动! 03-13 00:07:23 [INFO] nonebot_plugin_morning | 每周晚安定时刷新任务已启动! 03-13 00:07:23 [INFO] nonebot_plugin_morning | 每周睡眠时间定时刷新任务已启动! 03-13 00:07:23 [SUCCESS] nonebot_plugin_pixivbot | [data source] SqlDataSource Initialized (dialect: sqlite) 03-13 00:07:23 [INFO] uvicorn | Application startup complete. 03-13 00:07:23 [INFO] uvicorn | Uvicorn running on http://127.0.0.1:8080 (Press CTRL+C to quit) 03-13 00:07:26 [INFO] uvicorn | ('127.0.0.1', 62584) - "WebSocket /onebot/v11/ws/" [accepted] 03-13 00:07:26 [INFO] nonebot | OneBot V11 | Bot 2712395970 connected 03-13 00:07:26 [INFO] websockets | connection open 03-13 00:07:27 [INFO] services | 已成功加载 8 个被动技能.

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

ILYSHL commented 1 year ago

感谢,我先看看能不能载入access_token和refresh_token吧