Giter VIP home page Giter VIP logo

Comments (5)

monsterxcn avatar monsterxcn commented on June 1, 2024

from nonebot-plugin-gachalogs.

A7424 avatar A7424 commented on June 1, 2024


不知道为什么图片发不过去

from nonebot-plugin-gachalogs.

A7424 avatar A7424 commented on June 1, 2024
[04-08 01:02:22 [ERROR] nonebot | Running Matcher(type='notice', module=nonebot_plugin_gachalogs) failed.
Traceback (most recent call last):
  File "bot.py", line 17, in <module>
    nonebot.run()
  File "D:\jqr\nonebot2\nb2\.venv\lib\site-packages\nonebot\__init__.py", line 273, in run
    get_driver().run(*args, **kwargs)
  File "D:\jqr\nonebot2\nb2\.venv\lib\site-packages\nonebot\drivers\fastapi.py", line 187, in run
    uvicorn.run(
  File "D:\jqr\nonebot2\nb2\.venv\lib\site-packages\uvicorn\main.py", line 568, in run
    server.run()
  File "D:\jqr\nonebot2\nb2\.venv\lib\site-packages\uvicorn\server.py", line 59, in run
    return asyncio.run(self.serve(sockets=sockets))
  File "C:\Users\QC\AppData\Local\Programs\Python\Python38\lib\asyncio\runners.py", line 44, in run
    return loop.run_until_complete(main)
  File "C:\Users\QC\AppData\Local\Programs\Python\Python38\lib\asyncio\base_events.py", line 603, in run_until_complete
    self.run_forever()
  File "C:\Users\QC\AppData\Local\Programs\Python\Python38\lib\asyncio\windows_events.py", line 316, in run_forever
    super().run_forever()
  File "C:\Users\QC\AppData\Local\Programs\Python\Python38\lib\asyncio\base_events.py", line 570, in run_forever
    self._run_once()
  File "C:\Users\QC\AppData\Local\Programs\Python\Python38\lib\asyncio\base_events.py", line 1859, in _run_once
    handle._run()
  File "C:\Users\QC\AppData\Local\Programs\Python\Python38\lib\asyncio\events.py", line 81, in _run
    self._context.run(self._callback, *self._args)
  File "D:\jqr\nonebot2\nb2\.venv\lib\site-packages\nonebot\message.py", line 141, in _check_matcher
    await _run_matcher(Matcher, bot, event, state, stack, dependency_cache)
> File "D:\jqr\nonebot2\nb2\.venv\lib\site-packages\nonebot\message.py", line 187, in _run_matcher
    await matcher.run(bot, event, state, stack, dependency_cache)
  File "D:\jqr\nonebot2\nb2\.venv\lib\site-packages\nonebot\internal\matcher\matcher.py", line 732, in run
    await self.simple_run(bot, event, state, stack, dependency_cache)
  File "D:\jqr\nonebot2\nb2\.venv\lib\site-packages\nonebot\internal\matcher\matcher.py", line 707, in simple_run
    await handler(
  File "D:\jqr\nonebot2\nb2\.venv\lib\site-packages\nonebot\dependencies\__init__.py", line 108, in __call__
    return await cast(Callable[..., Awaitable[R]], self.call)(**values)
  File "D:\jqr\nonebot2\nb2\.venv\lib\site-packages\nonebot_plugin_gachalogs\__init__.py", line 312, in gotFile
    importRes = await importGachaFile(sender, fileData, bot.config.superusers)
  File "D:\jqr\nonebot2\nb2\.venv\lib\site-packages\nonebot_plugin_gachalogs\data_import.py", line 354, in importGachaFile
    data = await getFileData(file["url"])
  File "D:\jqr\nonebot2\nb2\.venv\lib\site-packages\nonebot_plugin_gachalogs\data_import.py", line 125, in getFileData
    return res.json()
  File "D:\jqr\nonebot2\nb2\.venv\lib\site-packages\httpx\_models.py", line 755, in json
    return jsonlib.loads(self.content.decode(encoding), **kwargs)
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xb5 in position 321: invalid start byte](url)

from nonebot-plugin-gachalogs.

A7424 avatar A7424 commented on June 1, 2024

FQIYFM6N6X2R5PD1 OXUUO0

from nonebot-plugin-gachalogs.

monsterxcn avatar monsterxcn commented on June 1, 2024

文件编码格式不对,允许的导入文件必须为 UTF-8 编码格式。

from nonebot-plugin-gachalogs.

Related Issues (7)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.