Page 1 of 1

issue with NZB-Notify and Twitter

Posted: October 8th, 2017, 6:31 pm
by drizzt09
Developer for NZB-Notify performed a request of adding Twitter DM as an option for notifying . He was awesome in getting it made in like 2 days, and very helpful.
Does exactly what I was looking for and it completes the task yet for some reason there seems to be an error in SabNZBd only... even though the process was successful.

Here is the message presented:
2017-10-08 19:23:06,456 - sabnzbd-notify - 7764 - ERROR - Invalid <Type> specified (argument 1)
Syntax: sabnzbd-notify.py <Type> <Title> <Message> url1[,url2[,urlN]]
* The <Type> can be one of the following:
complete: Job Finished
startup: Startup/Shutdown
warning: Warning
download: Added NZB
queue_done: Queue Finished
disk_full: Disk Full
pp: Post-Processing Started
new_login: User Logged In
failed: Job Failed
other: Other Messages
error: Error
* The <Title> and <Message> are self explanitory. If the <Title> is however left
blank, then the description of the <Type> is used instead.
* All remaining arguments are treated as URLs. You can also delimit multiple
URLs in a single string/argument with the use of a comma (,).

Re: issue with NZB-Notify and Twitter

Posted: October 9th, 2017, 2:30 am
by safihre
What happens if you send a test message through the Config page?
Enable Debug logging in the Status window before doing a test, then after doing the test you can in the Status window click Show Logging to see what command was called for the script.
Can you post that here?

Re: issue with NZB-Notify and Twitter

Posted: October 10th, 2017, 6:37 pm
by l2g
I think what might be happening is notifications are going through except one... I'm not sure what that is though (because it's not going through). :)

Just a thought though: Maybe if we saw the log entries before and after that were successful? Maybe there would be some clue as to where this notification is sourced from?

Re: issue with NZB-Notify and Twitter

Posted: October 11th, 2017, 6:05 pm
by drizzt09
ok i turned on debug logging. Test notification does not error:

Code: Select all

2017-10-11 18:52:56,742::INFO::[api:797] Executing notification script
2017-10-11 18:52:56,742::INFO::[newsunpack:204] Running user script C:\Program Files\SABnzbd\scripts\sabnzbd-notify.py(other, SABnzbd: Other Messages)
2017-10-11 18:52:59,351::INFO::[notifier:534] Successfully executed notification script C:\Program Files\SABnzbd\scripts\sabnzbd-notify.py
On Download I have JOB FINISHED and JOB FAILED check marked only. (looks like its sending the script twice. Running external and running User)

Code: Select all

[b]2017-10-11 18:36:47,217::INFO::[newsunpack:163] Running external script C:\Program Files\SABnzbd\scripts\sabnzbd-notify.py(D:\Beck_-_Colors_(2017)_MP3, Beck_-_Colors_(2017)_MP3.nzb, Beck_-_Colors_(2017)_MP3, , *, alt.binaries.x, 0, )[/b]
2017-10-11 18:36:53,812::DEBUG::[misc:1059] Removing dir \\?\D:\Beck_-_Colors_(2017)_MP3
2017-10-11 18:36:53,812::INFO::[postproc:519] Cleaning up Beck_-_Colors_(2017)_MP3 (keep_basic=False)
2017-10-11 18:36:53,812::INFO::[directunpacker:344] Aborting DirectUnpack for None
2017-10-11 18:36:53,812::INFO::[__init__:941] \\?\D:\-= incomplete =-\Beck_-_Colors_(2017)_MP3\__ADMIN__\SABnzbd_nzf_g6tdzy removed
2017-10-11 18:36:53,812::INFO::[__init__:941] \\?\D:\-= incomplete =-\Beck_-_Colors_(2017)_MP3\__ADMIN__\SABnzbd_nzf_ysoumk removed
2017-10-11 18:36:53,812::INFO::[__init__:941] \\?\D:\-= incomplete =-\Beck_-_Colors_(2017)_MP3\__ADMIN__\SABnzbd_nzf_jxwbem removed
2017-10-11 18:36:53,812::INFO::[__init__:941] \\?\D:\-= incomplete =-\Beck_-_Colors_(2017)_MP3\__ADMIN__\SABnzbd_nzf_pzcxif removed
2017-10-11 18:36:53,812::INFO::[__init__:941] \\?\D:\-= incomplete =-\Beck_-_Colors_(2017)_MP3\__ADMIN__\SABnzbd_nzf_iw1mgr removed
2017-10-11 18:36:53,812::INFO::[__init__:941] \\?\D:\-= incomplete =-\Beck_-_Colors_(2017)_MP3\__ADMIN__\SABnzbd_nzf_yclhw2 removed
2017-10-11 18:36:53,812::INFO::[__init__:941] \\?\D:\-= incomplete =-\Beck_-_Colors_(2017)_MP3\__ADMIN__\SABnzbd_nzf_9txefe removed
2017-10-11 18:36:53,812::INFO::[__init__:941] \\?\D:\-= incomplete =-\Beck_-_Colors_(2017)_MP3\__ADMIN__\SABnzbd_nzf_bkdil2 removed
2017-10-11 18:36:53,812::INFO::[__init__:941] \\?\D:\-= incomplete =-\Beck_-_Colors_(2017)_MP3\__ADMIN__\SABnzbd_nzf_2l5nmt removed
2017-10-11 18:36:53,812::INFO::[__init__:941] \\?\D:\-= incomplete =-\Beck_-_Colors_(2017)_MP3\__ADMIN__\SABnzbd_nzf_lesktq removed
2017-10-11 18:36:53,812::INFO::[__init__:941] \\?\D:\-= incomplete =-\Beck_-_Colors_(2017)_MP3\__ADMIN__\SABnzbd_nzf_0dhv5o removed
2017-10-11 18:36:53,812::DEBUG::[misc:1089] Removing file \\?\D:\-= incomplete =-\Beck_-_Colors_(2017)_MP3\__ADMIN__\Beck_-_Colors_(2017)_MP3.nzb.gz
2017-10-11 18:36:53,812::DEBUG::[misc:1089] Removing file \\?\D:\-= incomplete =-\Beck_-_Colors_(2017)_MP3\__ADMIN__\SABnzbd_attrib
2017-10-11 18:36:53,812::DEBUG::[misc:1089] Removing file \\?\D:\-= incomplete =-\Beck_-_Colors_(2017)_MP3\__ADMIN__\__verified__
2017-10-11 18:36:53,826::DEBUG::[misc:1097] Removing dir \\?\D:\-= incomplete =-\Beck_-_Colors_(2017)_MP3\__ADMIN__
[b]2017-10-11 18:36:53,826::INFO::[newsunpack:204] Running user script C:\Program Files\SABnzbd\scripts\sabnzbd-notify.py(complete, SABnzbd: Job finished)[/b]
2017-10-11 18:36:54,499::INFO::[database:272] Added job Beck_-_Colors_(2017)_MP3 to history
But in the GUI it still has the error:
2017-10-11 18:36:53,780 - sabnzbd-notify - 6812 - ERROR - Invalid <Type> specified (argument 1)
Syntax: sabnzbd-notify.py <Type> <Title> <Message> url1[,url2[,urlN]]
* The <Type> can be one of the following:
complete: Job Finished
startup: Startup/Shutdown
warning: Warning
download: Added NZB
queue_done: Queue Finished
disk_full: Disk Full
pp: Post-Processing Started
new_login: User Logged In
failed: Job Failed
other: Other Messages
error: Error
* The <Title> and <Message> are self explanitory. If the <Title> is however left
blank, then the description of the <Type> is used instead.
* All remaining arguments are treated as URLs. You can also delimit multiple
URLs in a single string/argument with the use of a comma (,).

Tweet says:
SABnzbd: Job finished
Beck_-_Colors_(2017)_MP3

Re: issue with NZB-Notify and Twitter

Posted: October 12th, 2017, 2:03 am
by safihre
Aaah, I think you have set NZB-notify both as a post processing script and as a notification script.
It's the
Check your category settings if you have selected it there for some reason.

Re: issue with NZB-Notify and Twitter

Posted: October 12th, 2017, 6:26 pm
by drizzt09
Yep set there. Should it be none or default?

Re: issue with NZB-Notify and Twitter

Posted: October 13th, 2017, 1:38 am
by safihre
None.

Re: issue with NZB-Notify and Twitter

Posted: October 13th, 2017, 6:21 pm
by drizzt09
that seems to have done the trick
thanks for your help