Giter Club home page Giter Club logo

fledgling's Introduction

Hello, world! 我是 Liutos,一名钟爱 Common Lisp 的程序员。

尽管我最钟爱的是 Common Lisp,但我是从 C 语言开始接触编程的,入行后最先使用的是 Ruby,后来是 PHP、Node.js。现在则是 Python 和 Go。

但无论如何,最有意思的当然是 Common Lisp 了——尽管从来没有在工作中正经用过。

我写字的地方,欢迎订阅或关注

我的开源项目

Readme Card

Readme Card

技术栈

Top Langs

Liutos' github stats

fledgling's People

Contributors

liutos avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

fledgling's Issues

修复网络超时导致进程异常退出的问题。

出错时的调用栈

Traceback (most recent call last):
  File "/Users/liutos/.pyenv/versions/3.9.0/lib/python3.9/site-packages/fledgling/cli/nest_client.py", line 71, in request
    response = request(
  File "/Users/liutos/.pyenv/versions/3.9.0/lib/python3.9/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/Users/liutos/.pyenv/versions/3.9.0/lib/python3.9/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/Users/liutos/.pyenv/versions/3.9.0/lib/python3.9/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/Users/liutos/.pyenv/versions/3.9.0/lib/python3.9/site-packages/requests/adapters.py", line 498, in send
    raise ConnectionError(err, request=request)
requests.exceptions.ConnectionError: ('Connection aborted.', TimeoutError(60, 'Operation timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/Users/liutos/.pyenv/versions/3.9.0/lib/python3.9/site-packages/fledgling/cli/nest_client.py", line 81, in request
    raise NetworkError()
fledgling.gateway.nest_gateway.NetworkError

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/Users/liutos/.pyenv/versions/3.9.0/bin/fledgling", line 5, in <module>
    cli()
  File "/Users/liutos/.pyenv/versions/3.9.0/lib/python3.9/site-packages/click/core.py", line 1128, in __call__
    return self.main(*args, **kwargs)
  File "/Users/liutos/.pyenv/versions/3.9.0/lib/python3.9/site-packages/click/core.py", line 1053, in main
    rv = self.invoke(ctx)
  File "/Users/liutos/.pyenv/versions/3.9.0/lib/python3.9/site-packages/click/core.py", line 1659, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/Users/liutos/.pyenv/versions/3.9.0/lib/python3.9/site-packages/click/core.py", line 1395, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/Users/liutos/.pyenv/versions/3.9.0/lib/python3.9/site-packages/click/core.py", line 754, in invoke
    return __callback(*args, **kwargs)
  File "/Users/liutos/.pyenv/versions/3.9.0/lib/python3.9/site-packages/click/decorators.py", line 26, in new_func
    return f(get_current_context(), *args, **kwargs)
  File "/Users/liutos/.pyenv/versions/3.9.0/lib/python3.9/site-packages/fledgling/cli/command/event_loop.py", line 58, in event_loop
    use_case.run()
  File "/Users/liutos/.pyenv/versions/3.9.0/lib/python3.9/site-packages/fledgling/app/use_case/event_loop.py", line 81, in run
    plan = self.plan_repository.pop(location_id=location_id)
  File "/Users/liutos/.pyenv/versions/3.9.0/lib/python3.9/site-packages/fledgling/repository/plan.py", line 95, in pop
    response = self.nest_client.request(
  File "/Users/liutos/.pyenv/versions/3.9.0/lib/python3.9/site-packages/fledgling/cli/nest_client.py", line 135, in request
    'status': response.status_code,
AttributeError: 'NoneType' object has no attribute 'status_code'

修复调用 server 酱发推送网络错误导致进程挂掉的问题。

报错如下

Traceback (most recent call last):
  File "/Users/liutos/.pyenv/versions/3.9.0/bin/fledgling", line 5, in <module>
    cli()
  File "/Users/liutos/.pyenv/versions/3.9.0/lib/python3.9/site-packages/click/core.py", line 1128, in __call__
    return self.main(*args, **kwargs)
  File "/Users/liutos/.pyenv/versions/3.9.0/lib/python3.9/site-packages/click/core.py", line 1053, in main
    rv = self.invoke(ctx)
  File "/Users/liutos/.pyenv/versions/3.9.0/lib/python3.9/site-packages/click/core.py", line 1659, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/Users/liutos/.pyenv/versions/3.9.0/lib/python3.9/site-packages/click/core.py", line 1395, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/Users/liutos/.pyenv/versions/3.9.0/lib/python3.9/site-packages/click/core.py", line 754, in invoke
    return __callback(*args, **kwargs)
  File "/Users/liutos/.pyenv/versions/3.9.0/lib/python3.9/site-packages/click/decorators.py", line 26, in new_func
    return f(get_current_context(), *args, **kwargs)
  File "/Users/liutos/.pyenv/versions/3.9.0/lib/python3.9/site-packages/fledgling/cli/command/event_loop.py", line 58, in event_loop
    use_case.run()
  File "/Users/liutos/.pyenv/versions/3.9.0/lib/python3.9/site-packages/fledgling/app/use_case/event_loop.py", line 92, in run
    child_process = self.alerter.alert(
  File "/Users/liutos/.pyenv/versions/3.9.0/lib/python3.9/site-packages/fledgling/cli/alerter.py", line 40, in alert
    self.wechat_alerter.alert(plan=plan, task=task)
  File "/Users/liutos/.pyenv/versions/3.9.0/lib/python3.9/site-packages/fledgling/cli/alerter.py", line 58, in alert
    response = requests.post(url, data=data)
  File "/Users/liutos/.pyenv/versions/3.9.0/lib/python3.9/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/Users/liutos/.pyenv/versions/3.9.0/lib/python3.9/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/Users/liutos/.pyenv/versions/3.9.0/lib/python3.9/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/Users/liutos/.pyenv/versions/3.9.0/lib/python3.9/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/Users/liutos/.pyenv/versions/3.9.0/lib/python3.9/site-packages/requests/adapters.py", line 498, in send
    raise ConnectionError(err, request=request)
requests.exceptions.ConnectionError: ('Connection aborted.', TimeoutError(60, 'Operation timed out'))

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.