Giter VIP home page Giter VIP logo

nonebot_plugin_kfcrazy's Introduction

Hi~I'm Kaguya~

  • I’m currently working on Nonebot2
  • I’m currently learning Python,Java,PHP,C
  • I’m looking to collaborate on nb2 plugins
  • I’m looking for help withpythonic
  • How to reach me: [email protected]
  • Fun fact: Hahahahahahahaha geh~

Profile Visits from 2023/6/13 | I love miku

visits

How is my projects?

Kaguya233qwq's GitHub stats

nonebot_plugin_kfcrazy's People

Contributors

kaguya233qwq avatar rainchain-zero avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

nonebot_plugin_kfcrazy's Issues

【报错】请输入您所在的城市或城市+空格+地区(县)

image

11-12 16:56:12 [ERROR] nonebot | Running Matcher(type='message', module=nonebot_plugin_kfcrazy) failed.
Traceback (most recent call last):
  File "/usr/local/bin/nb", line 8, in <module>
    sys.exit(main())
  File "/usr/local/lib/python3.9/dist-packages/click/core.py", line 1130, in __call__
    return self.main(*args, **kwargs)
  File "/usr/local/lib/python3.9/dist-packages/click/core.py", line 1055, in main
    rv = self.invoke(ctx)
  File "/usr/local/lib/python3.9/dist-packages/click/core.py", line 1657, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/usr/local/lib/python3.9/dist-packages/click/core.py", line 1404, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/usr/local/lib/python3.9/dist-packages/click/core.py", line 760, in invoke
    return __callback(*args, **kwargs)
  File "/usr/local/lib/python3.9/dist-packages/nb_cli/commands/main.py", line 30, in run
    run_bot(file, app)
  File "/usr/local/lib/python3.9/dist-packages/nb_cli/handlers/deploy.py", line 25, in run_bot
    nonebot.run(app=f"{module_name}:{app}")
  File "/usr/local/lib/python3.9/dist-packages/nonebot/__init__.py", line 273, in run
    get_driver().run(*args, **kwargs)
  File "/usr/local/lib/python3.9/dist-packages/nonebot/drivers/fastapi.py", line 172, in run
    uvicorn.run(
  File "/usr/local/lib/python3.9/dist-packages/uvicorn/main.py", line 575, in run
    server.run()
  File "/usr/local/lib/python3.9/dist-packages/uvicorn/server.py", line 60, in run
    return asyncio.run(self.serve(sockets=sockets))
  File "/usr/lib/python3.9/asyncio/runners.py", line 44, in run
    return loop.run_until_complete(main)
  File "/usr/local/lib/python3.9/dist-packages/nonebot/message.py", line 142, in _check_matcher
    await _run_matcher(Matcher, bot, event, state, stack, dependency_cache)
> File "/usr/local/lib/python3.9/dist-packages/nonebot/message.py", line 186, in _run_matcher
    await matcher.run(bot, event, state, stack, dependency_cache)
  File "/usr/local/lib/python3.9/dist-packages/nonebot/internal/matcher.py", line 716, in run
    await self.simple_run(bot, event, state, stack, dependency_cache)
  File "/usr/local/lib/python3.9/dist-packages/nonebot/internal/matcher.py", line 688, in simple_run
    await handler(
  File "/usr/local/lib/python3.9/dist-packages/nonebot/dependencies/__init__.py", line 108, in __call__
    return await cast(Callable[..., Awaitable[R]], self.call)(**values)
  File "/usr/local/lib/python3.9/dist-packages/nonebot_plugin_kfcrazy/__init__.py", line 222, in city_handler
    await KFC().get_city_id(city)
  File "/usr/local/lib/python3.9/dist-packages/nonebot_plugin_kfcrazy/__init__.py", line 68, in get_city_id
    district_name = city['districtName']
KeyError: 'districtName'

到菜单数据时就报错这个了

Running Matcher(type='message', module=nonebot_plugin_kfcrazy) failed.
Traceback (most recent call last):
File "", line 17, in
File "/home/qbot/.venv/lib/python3.8/site-packages/nonebot/init.py", line 273, in run
get_driver().run(*args, **kwargs)
File "/home/qbot/.venv/lib/python3.8/site-packages/nonebot/drivers/fastapi.py", line 187, in run
uvicorn.run(
File "/home/qbot/.venv/lib/python3.8/site-packages/uvicorn/main.py", line 569, in run
server.run()
File "/home/qbot/.venv/lib/python3.8/site-packages/uvicorn/server.py", line 60, in run
return asyncio.run(self.serve(sockets=sockets))
File "/usr/lib/python3.8/asyncio/runners.py", line 44, in run
return loop.run_until_complete(main)
File "/home/qbot/.venv/lib/python3.8/site-packages/nonebot/message.py", line 141, in _check_matcher
await _run_matcher(Matcher, bot, event, state, stack, dependency_cache)

File "/home/qbot/.venv/lib/python3.8/site-packages/nonebot/message.py", line 187, in _run_matcher
await matcher.run(bot, event, state, stack, dependency_cache)
File "/home/qbot/.venv/lib/python3.8/site-packages/nonebot/internal/matcher/matcher.py", line 732, in run
await self.simple_run(bot, event, state, stack, dependency_cache)
File "/home/qbot/.venv/lib/python3.8/site-packages/nonebot/internal/matcher/matcher.py", line 707, in simple_run
await handler(
File "/home/qbot/.venv/lib/python3.8/site-packages/nonebot/dependencies/init.py", line 108, in call
return await cast(Callable[..., Awaitable[R]], self.call)(**values)
File "/home/qbot/.venv/lib/python3.8/site-packages/nonebot_plugin_kfcrazy/init.py", line 254, in store_handler
menu_list, Food = await KFC().get_menu(store_id)
File "/home/qbot/.venv/lib/python3.8/site-packages/nonebot_plugin_kfcrazy/init.py", line 158, in get_menu
menu_detail = resp_json['data']['data']
KeyError: 'data'

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.