@ptman:kapsi.fi
any good examples?
@ptman:kapsi.fi
and also, notification support for matrix could be nice, and quite easy, a single HTTP(S) call
@ptman:kapsi.fi
(with JSON)
2020-08-09 19:56:30,241 [DEBUG] telegram.vendor.ptb_urllib3.urllib3.connectionpool: https://api.telegram.org:443 "POST /botXXXXX:YYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYY/sendMessage HTTP/1.1" 401 58
2020-08-09 19:56:30,241 [ERROR] kibitzr.notifier.factory: Exception occurred during sending notification
Traceback (most recent call last):
File "c:\python38\lib\site-packages\kibitzr\notifier\factory.py", line 69, in notify
notifier(report=report)
File "c:\python38\lib\site-packages\kibitzr\notifier\telegram.py", line 44, in post
self.send_message(m)
File "c:\python38\lib\site-packages\kibitzr\notifier\telegram.py", line 47, in send_message
message = self.bot.send_message(
File "<decorator-gen-2>", line 2, in send_message
File "c:\python38\lib\site-packages\telegram\bot.py", line 67, in decorator
result = func(*args, **kwargs)
File "c:\python38\lib\site-packages\telegram\bot.py", line 346, in send_message
return self._message(url, data, disable_notification=disable_notification,
File "c:\python38\lib\site-packages\telegram\bot.py", line 175, in _message
result = self._request.post(url, data, timeout=timeout)
File "c:\python38\lib\site-packages\telegram\utils\request.py", line 330, in post
result = self._request_wrapper('POST', url,
File "c:\python38\lib\site-packages\telegram\utils\request.py", line 242, in _request_wrapper
raise Unauthorized(message)
telegram.error.Unauthorized: Unauthorized
notify
via smtp
: I set up just like in docs (https://kibitzr.readthedocs.io/en/latest/smtp.html), set port to the one from gmail settings page and authorized blocked attempt to login. And still I'm getting the same error: smtplib.SMTPServerDisconnected: Connection unexpectedly closed
. How can I fix this?
host: smtp.gmail.com
port: 465
user: bla-bla-bla@gmail.com
password: something
2020-08-19 16:23:13,176 [ERROR] kibitzr.notifier.smtp: Failed to send the e-mail
Traceback (most recent call last):
File "M:\bin\kibitzr\.venv\lib\site-packages\kibitzr\notifier\smtp.py", line 77, in send_email
server.sendmail(user, recipients, message.encode("utf-8"))
File "c:\Python37\lib\smtplib.py", line 881, in sendmail
raise SMTPRecipientsRefused(senderrs)
smtplib.SMTPRecipientsRefused: {'subject': (553, b'5.1.3 The recipient address <subject> is not a valid RFC-5321 address. s4sm7297552lfc.56 - gsmtp'), 'recepients': (553, b'5.1.3 The recipient address <recepients> is not a valid RFC-5321 address. s4sm7297552lfc.56 - gsmtp')}
changes
transform tool, but only output the new content
variable (not the Old & New way using changes: verbose
) ?
delay: 0.1
I've also got a question regarding the selenium driver:
If I understood it correctly: using kibitzr run
, on second, third etc. executions of jobs that use selenium, the driver is never closed, it uses the previous open one. I see how ideally this should be the preferred way, as far as resource usage is concerned, but when "planning" detailed scenarios using python selenium code, I have to add if-else clauses I didn't except, that check if some buttons have "already" been clicked... Is there an option to specify kibitzr to really close drivers and re-create new ones at each job exectution when using using kibitzr run
?
kibitzr once
and schedule the job externally, say using crontab. Or you can contribute the config option to Kibitzr source.