Code: Select all
Socket Error accessing 'http://www.google.com/search?q=foo&safe=off&btnG=Search&lr=lang_all&num=10' .. Does it exist?
Nah, that just happens when your bot cannot create a socket to the internet (bot is lagged, low bandwidth, etc). It's one of the few error messages that will always be in english because it's script created (all script created errors will only display in english, as I am an american) not dynamically read from the page like the others.transacid wrote:hey there.
I'm using v1.9.6 but get this error:did i do something wrong?Code: Select all
Socket Error accessing 'http://www.google.com/search?q=foo&safe=off&btnG=Search&lr=lang_all&num=10' .. Does it exist?
It's an easy fix, guess you didnt read the top comments.mabus wrote:Tcl error [incith::google::public_message]: invalid command name "stripcodes"
In the status window of the bot, i get this message whenever i try to use the wikipedia. It's not a problem with what i'm imputting because i've tried to copy paste the exact lines displayed in here on this thread {apparently working}, but all i get is the error message. Anyone else?
Code: Select all
# tested on: #
# eggdrop v1.6.17 GNU/LINUX with Tcl 8.4 #
# windrop v1.6.17 CYGWIN_NT with Tcl 8.4 (http.tcl v2.4) #
Installed tcl8.4-dev?mabus wrote:Well that didn't work. Brand new Eggdrop V1.6.18 installation, same exact error message. Even installed the latest TCL V8.4.5 and Http TCL V2.5.001.
Any ideas?
Oh no!danzigrules wrote:whats the trick for translate to work?
[danzigrules] !translate en @ it testing
[danzigrules] !translate en@it testing
2] Tcl error [incith::google::public_message]: Illegal characters in URL path
Thanks
Now the reason your getting illegal characters in url path, is the silly question mark and pipe (see them in bold above?). Not sure if I can \escape them and get a working url or not, but I'm pretty sure simply enclosing the url in quotes during the ::http::geturl solves it. Find the 'Proc Trans' section and within it do like I have below.set url "http://www.google.com/translate_t[b][i]?[/i][/b]langpair=${link}|${desc}"
Change from: wrote: set url "http://www.google.com/translate_t?langp ... nk}|${desc}
set query [::http::formatQuery text $titem langpair "${link}\|${desc}" ]
set http [::http::geturl $url -query $query -timeout [expr 1000 * 10]]
I see my rookie mistake now as clear as rain on a Tuesday morning. I was redundant in my querying. I have ::http::formatQuery build the query correctly, but I left the 'langpair=' hardcoded into the url as well. This creates redundancy and perhaps url errors...ugh. Hopefully this fix solves the problem for the time being.Change to: wrote: set url "http://www.google.com/translate_t?"
set query [::http::formatQuery text $titem langpair "${link}\|${desc}" ]
set http [::http::geturl "$url" -query $query -timeout [expr 1000 * 10]]
Google translations leave alot to be desired, but the bot can only be as smart as the source site it parses, unfortunately.<speechles> !tr en@it hello everyone at egghelp
<sp33chy> Google says: (en->it) ciao tutto a egghelp
<speechles> !tr it@en ciao tutto a egghelp
<sp33chy> Google says: (it->en) hello all to egghelp