animetosho / Nyuu

Flexible usenet binary posting tool
215 stars 30 forks source link

Why "unknown error to post" in case of an 440 error on POST? #104

Closed sanderjo closed 1 year ago

sanderjo commented 1 year ago

Trying to post, nyuu says

[WARN] NNTP connection error occurred: Server returned unknown error to post (code: 440): Posting Not Allowed; will retry post request (attempt 1/5)

Why the wording unknown error to post? According to https://www.rfc-editor.org/rfc/rfc3977.html#:~:text=440%20%20%20%20Posting%20not%20permitted the 440 is a technically correct well-known response?

$ nyuu  --help 2>&1 | head -2
Nyuu v0.4.1
Flexible binary usenet poster

$ nyuu -h news.eweka.nl -S -u xxx -p xxx -n3 -f 'xxx' -g alt.binaries.test -o my_cat.nzb -t "xxxx" *rar *par2
[INFO] Uploading 13 article(s) from 9 file(s) totalling 4769.65 KiB
[INFO] Reading file postfile.rar...
[INFO] Reading file mypar2.par2...
[INFO] Reading file mypar2.vol000+02.par2...
[WARN] NNTP connection error occurred: Server returned unknown error to post (code: 440): Posting Not Allowed; will retry post request (attempt 1/5)
[WARN] NNTP connection error occurred: Server returned unknown error to post (code: 440): Posting Not Allowed; will retry post request (attempt 1/5)
[INFO] Reading file mypar2.vol002+04.par2...
[WARN] NNTP connection error occurred: Server returned unknown error to post (code: 440): Posting Not Allowed; will retry post request (attempt 1/5)
[WARN] NNTP connection error occurred: Server returned unknown error to post (code: 440): Posting Not Allowed; will retry post request (attempt 2/5)
[WARN] NNTP connection error occurred: Server returned unknown error to post (code: 440): Posting Not Allowed; will retry post request (attempt 2/5)
[WARN] NNTP connection error occurred: Server returned unknown error to post (code: 440): Posting Not Allowed; will retry post request (attempt 2/5)
[WARN] NNTP connection error occurred: Server returned unknown error to post (code: 440): Posting Not Allowed; will retry post request (attempt 3/5)
[WARN] NNTP connection error occurred: Server returned unknown error to post (code: 440): Posting Not Allowed; will retry post request (attempt 3/5)
[WARN] NNTP connection error occurred: Server returned unknown error to post (code: 440): Posting Not Allowed; will retry post request (attempt 3/5)
[WARN] NNTP connection error occurred: Server returned unknown error to post (code: 440): Posting Not Allowed; will retry post request (attempt 4/5)
[WARN] NNTP connection error occurred: Server returned unknown error to post (code: 440): Posting Not Allowed; will retry post request (attempt 4/5)
[WARN] NNTP connection error occurred: Server returned unknown error to post (code: 440): Posting Not Allowed; will retry post request (attempt 4/5)
[WARN] NNTP connection error occurred: Server returned unknown error to post (code: 440): Posting Not Allowed; will retry post request (attempt 5/5)
[WARN] NNTP connection error occurred: Server returned unknown error to post (code: 440): Posting Not Allowed; will retry post request (attempt 5/5)
[ERR ] NNTPError: Server returned unknown error to post (code: 440): Posting Not Allowed (use `skip-errors` to ignore)
[INFO] Process has been aborted. Posted 0 article(s) in 00:00:00.883 (0 B/s). Network upload rate: 0 B/s
animetosho commented 1 year ago

Nice catch, thanks!