This is the new home of the egghelp.org community forum.
All data has been migrated (including user logins/passwords) to a new phpBB version.


For more information, see this announcement post. Click the X in the top right-corner of this box to dismiss this message.

Eggdrop RSS Syndication (rss-synd) v0.5b1

Support & discussion of released scripts, and announcements of new releases.
Post Reply
m
mcfly
Voice
Posts: 5
Joined: Tue Jan 10, 2017 11:27 am

https not working

Post by mcfly »

For the past 3 years i have been fighting with this script. Patch, changes, fixes, etc.

Finally I am stuck.

I followed this topic and did what is recommended but i still have one problem.

- Can't read/parse https://

Code: Select all

(State: {error reading "sock6012b01550": software caused connection abort} {error reading "sock6012b01550": software caused connection abort
    while executing
"gets $sock state(http)"} {POSIX ECONNABORTED {software caused connection abort}})
SSL channel "sock6012b01550": error: tlsv1 alert internal error
RSS Error: Unable to decompress "https://url.something.rss.rss.php": Trf package not found.

Eggdrop is 1.8

Compiled:

Code: Select all

./configure --with-sslinc --with-ssllib --enable-tls
Distro is gentoo and packages used are:

Code: Select all

dev-lang/tcl 8.6.6
dev-tcltk/itcl 4.0.3
dev-tcltk/tcllib 1.16
dev-tcltk/tls 1.6-r3 (also tried 1.6.7
net-libs/gnutls 3.3.24-r1
dev-libs/openssl 1.0.2j
Modules loaded and compiled:

Code: Select all

blowfish.so  channels.so  console.so  dns.so  irc.so  server.so
Scrips loaded:

Code: Select all

source scripts/action.fix.tcl
source scripts/cmd_resolve.tcl
source scripts/alltools.tcl
source scripts/sentinel.tcl
source scripts/compat.tcl
source scripts/http_2.7.13.tcl
source scripts/egghttp.tcl
source scripts/rss-synd.tcl
What is it need to get https:// to work ?
I also do not need a fancy script and if anyone knows of any other that works with ssl/tls, i will give it a try.
b
bugme
Voice
Posts: 6
Joined: Fri Jan 13, 2017 9:49 am

Post by bugme »

mcfly wrote:For the past 3 years i have been fighting with this script. Patch, changes, fixes, etc.

Code: Select all

SSL channel "sock6012b01550": error: tlsv1 alert internal error
I had the same error when deal with sites which uses SNI, like cloudflare (https://centmin.sh/ https://www.rust-lang.org/en-US/)

The solution is quite easy and described in tcl wiki https://wiki.tcl.tk/2630
m
mcfly
Voice
Posts: 5
Joined: Tue Jan 10, 2017 11:27 am

Post by mcfly »

Those are great news but not being a coder I am having a hard time getting this to work.
It would be of great help if anyone could have this script updated somewhere.
P
PR0r
Voice
Posts: 8
Joined: Wed Oct 29, 2014 7:09 am

Post by PR0r »

I've recently installed this using the latest eggdrop 1.8 and it doesn't work. Anyone able to give advice on getting this up in running? Currently running Ubuntu 16.04 server and struggling.
Thanks!
f
frybot
Voice
Posts: 1
Joined: Thu Oct 08, 2015 3:59 pm

Post by frybot »

I'd also greatly appreciate a guide on how to get this working, specifically dealing with sites behind cloudflare.
P
PR0r
Voice
Posts: 8
Joined: Wed Oct 29, 2014 7:09 am

Post by PR0r »

I'm getting the following errors using Eggdrop 1.8. I've searched around and haven't found anything useful. Anyone have any ideas?

[06:02:00] RSS Error: Unable to decompress "http://feeds.reuters.com/news/reutersmedia": invalid command name " "
[06:03:00] RSS Error: Unable to decompress "http://www.kvirc.net/rss.php": invalid command name " "
P
PR0r
Voice
Posts: 8
Joined: Wed Oct 29, 2014 7:09 am

Post by PR0r »

Does anyone have this script working? I'm thinking about using an older eggdrop/tcl combination and trying again but would first like to hear what versions are working.
m
mcfly
Voice
Posts: 5
Joined: Tue Jan 10, 2017 11:27 am

Post by mcfly »

No other version is fully working with https://
What other .tcl are you guys using for rss (https:// or http://) ?
User avatar
Get_A_Fix
Master
Posts: 206
Joined: Sat May 07, 2005 6:11 pm
Location: New Zealand

Post by Get_A_Fix »

PR0r wrote:I'm getting the following errors using Eggdrop 1.8. I've searched around and haven't found anything useful. Anyone have any ideas?

[06:02:00] RSS Error: Unable to decompress "http://feeds.reuters.com/news/reutersmedia": invalid command name " "
[06:03:00] RSS Error: Unable to decompress "http://www.kvirc.net/rss.php": invalid command name " "
Strange, I use rss-synd v0.4 and only add http feeds as it used to handle https but seems to have broken itself. It works fine, for the feeds I have added. Also, most RSS feeds use http if https doesn't work.
An example of the output is as follows:

Code: Select all

	set rss(dc) {
		"url"			"http://www.thedailychronic.net/feed"
		"channels"		"##cannabis"
		"database"		"./scripts/dc.db"
		"output"		"[\002DailyChronic\002] \002Title\002: @@item!title@@@@entry!title@@ - \002Link\002: @@item!link@@@@entry!link@@ - \002Posted\002: @@item!pubDate@@@@entry!pubDate@@"
		"trigger"		"!dc"
	}
<Get_A_Fix> !dc
<@abusive> [DailyChronic] Title: Study: Medical Marijuana Patients Reduce Their Use of Opioids - Link: http://www.thedailychronic.net/2017/696 ... f-opioids/ - Posted: Thu, 16 Feb 2017 10:40:00 +0000
<@abusive> [DailyChronic] Title: The Respect State Marijuana Laws Act Reintroduced In Congress - Link: http://www.thedailychronic.net/2017/696 ... -congress/ - Posted: Thu, 16 Feb 2017 00:26:00 +0000
<@abusive> [DailyChronic] Title: Guam Health Officials to Begin Licensing Medical Marijuana Dispensaries - Link: http://www.thedailychronic.net/2017/696 ... pensaries/ - Posted: Wed, 15 Feb 2017 22:38:00 +0000
Last edited by Get_A_Fix on Fri May 19, 2017 7:37 am, edited 1 time in total.
We explore.. and you call us criminals. We seek after knowledge.. and you call us criminals. We exist without skin color, without nationality, without religious bias.. and you call us criminals.
m
mcfly
Voice
Posts: 5
Joined: Tue Jan 10, 2017 11:27 am

Post by mcfly »

RSS Syndication (rss-synd) v0.5b1 is finished and needs a re-write and better support.

I also tried Version: v0.4 Date: 2007-02-08 and although it worked with http:// the problem will ultimately happen when sites auto redirect to https:// (port 443) automatically which most sites do these days.

Code: Select all

SSL channel "sock137dda0": error: sslv3 alert handshake failure
says it all.
And this problem affects most rss tlc scripts out there.


This tread should be closed to avoid letting people think that the script can still work.
u
unforgiving
Voice
Posts: 3
Joined: Sat Oct 27, 2012 5:20 pm

Post by unforgiving »

Hi, I have only one RSS that uses HTTPS and it works fine, "https://www.srrdb.com/feed/srrs try it and check if it works for you, if doesn't works I can show you which configuration I used here.
b
break
Voice
Posts: 1
Joined: Tue May 16, 2017 7:24 am

Post by break »

hey. i found a fix for another feed script on a website and used it to see if it works with rss synd also and it seems it does.
replace:

Code: Select all

http::register https 443 tls::socket
with:

Code: Select all

if { [info exists {my-ip}] == 1 && [string length ${my-ip}] > 0} {
  http::register https 443 [list tls::socket -myaddr ${my-ip} -tls1 1]
} elseif { [info exists {my-hostname}] == 1 && [string length ${my-hostname}] > 0} {
  http::register https 443 [list tls::socket -myaddr ${my-hostname} -tls1 1]
} else {
  http::register https 443 [list tls::socket -tls1 1]
}
i hope it works for you too :)
Z
Zeta
Voice
Posts: 16
Joined: Fri Apr 04, 2008 8:52 pm

Post by Zeta »

Can someone help me with the tinyurl expansion?

I added both "source scripts/rss-synd.tcl" and "rss-synd-shortlink.tcl" to my eggdrop.conf file, but it doesn't works.

Code: Select all

	set rss(emsc) {
		"url"			"https://www.emsc-csem.org/service/rss/rss.php?typ=emsc&magmin=2"
		"channels"		"#testtt"
		"database"		"./scripts/rssdb/emsc.db"
		"output"		"[\002EMSC\002] (@@item!emsc:time@@) @@item!title@@ @@item!emsc:depth@@ km - \[tinyurl @@item!link@@\]"
		"trigger"		"!emsc"
	}

Code: Select all

proc ::rss-synd::tinyurl {url} { 
  set tinyurl "http://tinyurl.com/api-create.php"; 
  set query [::http::formatQuery "url" $url];  
  set token [::http::geturl "$tinyurl?$query" -timeout 5000]; 
  set url [::http::data $token]; 
  ::http::cleanup $token; 
  return $url; 
}
EDIT: I'm using rss-synd v0.4
I didn't find the v0.5b1

EDIT2: I added
"evaluate-tcl" 1
and now it works
V
ViciousPiranha
Voice
Posts: 36
Joined: Mon Dec 17, 2012 5:21 am

Post by ViciousPiranha »

HTTP/1.1 406 Not Acceptable
What modification does the script require so I won't get this response back from the script for a certain site?
V
VoodooServ
Voice
Posts: 7
Joined: Sun Oct 27, 2013 12:49 pm
Location: Bulgaria / Pleven
Contact:

Post by VoodooServ »

Someone fix this script?
Post Reply