Project

General

Profile

機能 #14

Updated by 寛正 鴨川 about 7 years ago

問題のある記事の内容をメール通知を行う

- URL
- 問題になった箇所
- 成果数

Scrapy自体にメール配信を想定した機能があるようなのでまずはその調査を行う。

Scrapyのメール送信モジュールの利用で下記エラーが発生した。
以下のURLの通りScrapyの既知のバグと思われる。
https://github.com/scrapy/scrapy/issues/3478

{{collapse(スタックトレース)
~~~

Unhandled Error
Traceback (most recent call last):
File "/Users/kamogawa_hiromasa/dev/precision/venv/lib/python3.7/site-packages/twisted/python/log.py", line 103, in callWithLogger
return callWithContext({"system": lp}, func, *args, **kw)
File "/Users/kamogawa_hiromasa/dev/precision/venv/lib/python3.7/site-packages/twisted/python/log.py", line 86, in callWithContext
return context.call({ILogContext: newCtx}, func, *args, **kw)
File "/Users/kamogawa_hiromasa/dev/precision/venv/lib/python3.7/site-packages/twisted/python/context.py", line 122, in callWithContext
return self.currentContext().callWithContext(ctx, func, *args, **kw)
File "/Users/kamogawa_hiromasa/dev/precision/venv/lib/python3.7/site-packages/twisted/python/context.py", line 85, in callWithContext
return func(*args,**kw)
--- <exception caught here> ---
File "/Users/kamogawa_hiromasa/dev/precision/venv/lib/python3.7/site-packages/twisted/internet/selectreactor.py", line 149, in _doReadOrWrite
why = getattr(selectable, method)()
File "/Users/kamogawa_hiromasa/dev/precision/venv/lib/python3.7/site-packages/twisted/internet/tcp.py", line 243, in doRead
return self._dataReceived(data)
File "/Users/kamogawa_hiromasa/dev/precision/venv/lib/python3.7/site-packages/twisted/internet/tcp.py", line 249, in _dataReceived
rval = self.protocol.dataReceived(data)
File "/Users/kamogawa_hiromasa/dev/precision/venv/lib/python3.7/site-packages/twisted/protocols/tls.py", line 330, in dataReceived
self._flushReceiveBIO()
File "/Users/kamogawa_hiromasa/dev/precision/venv/lib/python3.7/site-packages/twisted/protocols/tls.py", line 300, in _flushReceiveBIO
self._flushSendBIO()
File "/Users/kamogawa_hiromasa/dev/precision/venv/lib/python3.7/site-packages/twisted/protocols/tls.py", line 252, in _flushSendBIO
bytes = self._tlsConnection.bio_read(2 ** 15)
builtins.AttributeError: 'NoneType' object has no attribute 'bio_read'
~~~
}}

Back