| View previous topic :: View next topic |
| Author |
Message |
SignZ Voice
Joined: 17 Jun 2010 Posts: 18
|
Posted: Mon Nov 22, 2010 10:41 am Post subject: |
|
|
Yo, speechles. I might need your help with something.
I'm getting the following messages on partyline (quite often):
| Code: | [15:35:56] [FlameHaze] [15:33] [Twitter]: connect failed
[15:35:57] [FlameHaze] [15:33] [Twitter]: connect failed
[15:35:59] [FlameHaze] [15:33] [Twitter]: OAuth failed: ()
[15:35:59] [FlameHaze] [15:33] [Twitter]: OAuth failed: () |
Therefore FlameHaze doesn't post tweets anymore.
Also:
| Code: | [15:38:42] [FlameHaze] [15:35] #SignZ# set errorInfo
[15:38:42] [FlameHaze] Currently: OAuth failed: ()
[15:38:42] [FlameHaze] Currently: while executing
[15:38:42] [FlameHaze] Currently: "error $error "
[15:38:42] [FlameHaze] Currently: (procedure "proc:twitter:oauth" line 11)
[15:38:42] [FlameHaze] Currently: invoked from within
[15:38:43] [FlameHaze] Currently: "proc:twitter:oauth $twitter(mention) GET $chan $q" |
|
|
| Back to top |
|
 |
spithash Master

Joined: 12 Jul 2007 Posts: 248 Location: Libera
|
Posted: Tue Nov 23, 2010 6:10 pm Post subject: |
|
|
| SignZ wrote: | Yo, speechles. I might need your help with something.
I'm getting the following messages on partyline (quite often):
| Code: | [15:35:56] [FlameHaze] [15:33] [Twitter]: connect failed
[15:35:57] [FlameHaze] [15:33] [Twitter]: connect failed
[15:35:59] [FlameHaze] [15:33] [Twitter]: OAuth failed: ()
[15:35:59] [FlameHaze] [15:33] [Twitter]: OAuth failed: () |
Therefore FlameHaze doesn't post tweets anymore.
Also:
| Code: | [15:38:42] [FlameHaze] [15:35] #SignZ# set errorInfo
[15:38:42] [FlameHaze] Currently: OAuth failed: ()
[15:38:42] [FlameHaze] Currently: while executing
[15:38:42] [FlameHaze] Currently: "error $error "
[15:38:42] [FlameHaze] Currently: (procedure "proc:twitter:oauth" line 11)
[15:38:42] [FlameHaze] Currently: invoked from within
[15:38:43] [FlameHaze] Currently: "proc:twitter:oauth $twitter(mention) GET $chan $q" |
|
SignZ: you should read this: http://forum.egghelp.org/viewtopic.php?p=95190#95190
when the box is overflowing and theres not much memory for the bot to run free, it malfunctions like that and it THINKS there are no http headers. you should check your box/server/shell or whatever it is and see if you have multiple proccesses that EAT all the RAM or CPU speed and once you free up some resources, you will get it back to working, it has NOTHING to do with the eggdrop version nor the tcls. _________________ Libera ##rtlsdr & ##re - Nick: spithash
Click here for troll.tcl |
|
| Back to top |
|
 |
adi2247 Voice
Joined: 30 Nov 2010 Posts: 10
|
Posted: Sat Dec 04, 2010 2:34 am Post subject: |
|
|
| speechles wrote: | | Trixar_za wrote: | | By the looks of it, I'm using http package 2.5.2 - so there must have been one hell of a change between 2.5.2 and 2.5.3 to present this issue hey? |
| Code: | # These are handled specially
array set map { " " + \n %0d%0a }
variable formMap [array get map] |
Find the above in your copy of http.tcl
it's located in either: /lib/tcl8.4/ --or-- /lib/tcl8.4/http2.5
Change it to look like it is below:
| Code: | # These are handled specially
set map(\n) %0d%0a
variable formMap [array get map] |
This is the BIG change that occured that basically broke it. Changing this will fix it all and you will be solved.  |
im having similar errors as the person you helped with this. I too had an outdated http.tcl file.
I uninstalled all of my tcl, recompiled/installed the latest version, confirmed the new http.tcl is installed in /usr/local/lib/tcl8.5/http1.0/
i recompiled eggdrop from scratch and also put http.tcl in the scripts directory. http.tcl is also loaded from egdrop.conf on start up ahead of all other scripts to be loaded.
I have the twitter related scripts listed in the order you mentioned in the previous thread.
!user works, !friends works
!follow fails with the following error:
[Twitter]: OAuth failed: (401) Error: incorrect signature; Request: \/1\/friendships\/create.json
!tweet test fails w the following error:
[Twitter]: OAuth failed: (401) Error: incorrect signature; Request: \/1\/statuses\/update.json
to confirm my http.tcl file looks like yours:
| Code: | # These are handled specially
set map(\n) %0d%0a
variable formMap [array get map] |
|
|
| Back to top |
|
 |
speechles Revered One

Joined: 26 Aug 2006 Posts: 1398 Location: emerald triangle, california (coastal redwoods)
|
Posted: Sat Dec 04, 2010 4:02 pm Post subject: |
|
|
| adi2247 wrote: | | speechles wrote: | | Trixar_za wrote: | | By the looks of it, I'm using http package 2.5.2 - so there must have been one hell of a change between 2.5.2 and 2.5.3 to present this issue hey? |
| Code: | # These are handled specially
array set map { " " + \n %0d%0a }
variable formMap [array get map] |
Find the above in your copy of http.tcl
it's located in either: /lib/tcl8.4/ --or-- /lib/tcl8.4/http2.5
Change it to look like it is below:
| Code: | # These are handled specially
set map(\n) %0d%0a
variable formMap [array get map] |
This is the BIG change that occured that basically broke it. Changing this will fix it all and you will be solved.  |
im having similar errors as the person you helped with this. I too had an outdated http.tcl file.
I uninstalled all of my tcl, recompiled/installed the latest version, confirmed the new http.tcl is installed in /usr/local/lib/tcl8.5/http1.0/
i recompiled eggdrop from scratch and also put http.tcl in the scripts directory. http.tcl is also loaded from egdrop.conf on start up ahead of all other scripts to be loaded.
I have the twitter related scripts listed in the order you mentioned in the previous thread.
!user works, !friends works
!follow fails with the following error:
[Twitter]: OAuth failed: (401) Error: incorrect signature; Request: \/1\/friendships\/create.json
!tweet test fails w the following error:
[Twitter]: OAuth failed: (401) Error: incorrect signature; Request: \/1\/statuses\/update.json
to confirm my http.tcl file looks like yours:
| Code: | # These are handled specially
set map(\n) %0d%0a
variable formMap [array get map] |
|
Why are you placing it in the http1.0 folder? The script will look for "http2.5" first, if that isn't available, will default to any http package. So you are not changing the correct folders contents.
To help debug this, use the config section of oauth.tcl... | Code: | # Incorrect signature, other errors pissing you off.
# Get the inside look at every oauth transaction via query
# set your debug nick here
set oauthdebug "" |
Put your nickname inside those "". Then .rehash your bot. Now try +follow or !tweet and paste back the base_string, and other oAuth headers your bot will PM you when you've done this. Remember once you solve the problem, to set this back to "" and .rehash. Sending all those debug messages slows down your bot. _________________ speechles' eggdrop tcl archive |
|
| Back to top |
|
 |
adi2247 Voice
Joined: 30 Nov 2010 Posts: 10
|
Posted: Sat Dec 04, 2010 4:59 pm Post subject: |
|
|
thanks for the heads up on the http1.0 folder, not sure why http2.5 wasn't created when in reinstalled tcl. I manualy created the http2.5 dir and put the new http.tcl file in there, chmod 755 http2.5 and chmod 644 http.tcl. it now resides in:
/usr/local/lib/tcl8.5/http2.5/http.tcl
.rehashed and heres the output from +follow twitter: |
|
| Back to top |
|
 |
adi2247 Voice
Joined: 30 Nov 2010 Posts: 10
|
Posted: Mon Dec 13, 2010 2:06 pm Post subject: |
|
|
Just an update, i got this worked out and now authenticates. A few points to mention:
http2.5 folder is aparently only created w TCL 8.4.X NOT 8.5.X versions. more info on that:
http://wiki.tcl.tk/1475
| Quote: | The version of http distributed in the Tcl 8.4.18 core distribution is 2.5.3.
The Tcl 8.5.2 release provides the http version 2.7 with partial HTTP 1.1 support.
The TclSOAP project also contains a distribution of a proposed version 2.5 [1] (with some http 1.1 support), and tclvfs extends that to a proposed version 2.6 (with some webdav support) (merged into the tclsoap projects version (23jun03)). However, versions 2.5/2.6 seem to have introduced at least one bug (reported against tclsoap on sourceforge).
Tcl 8.6 will include full HTTP/1.1 support in its http package. |
so i wound up uninstalling 8.5.x and downgraded to 8.4.x inorder to get the proper directory structure/libraries associates with http 2.5.3 etc. this may or may not apply for people struggling to get http to use the correct version etc.
**I do not believe this why i couldnt auth, but after learnign of the directory structure, made sense to start anew here.
I then reapplied for NEW twitter api keys. ** the new keys solved the problem! |
|
| Back to top |
|
 |
adi2247 Voice
Joined: 30 Nov 2010 Posts: 10
|
Posted: Mon Dec 20, 2010 3:44 pm Post subject: |
|
|
bit of an error recently but doesn't seem to effect posting to twitter, just posting the confirm to chat:
[14:35:01] Tcl error [proc:tweet]: can't read "id": no such variable
this is intermitent and even when the error does occur, posts are still being made to twitter, but the confirmation of the post is not sent to the chatroom. |
|
| Back to top |
|
 |
speechles Revered One

Joined: 26 Aug 2006 Posts: 1398 Location: emerald triangle, california (coastal redwoods)
|
Posted: Tue Dec 21, 2010 9:56 pm Post subject: |
|
|
| adi2247 wrote: | bit of an error recently but doesn't seem to effect posting to twitter, just posting the confirm to chat:
[14:35:01] Tcl error [proc:tweet]: can't read "id": no such variable
this is intermitent and even when the error does occur, posts are still being made to twitter, but the confirmation of the post is not sent to the chatroom. |
This was caused by twitter's move to Snowflake "string" ID's rather than purely "integer based" ID's. Re-getting the script will solve this, it now uses Snowflake ID's for all message-ID's. Also corrected a few bugs here and there, and finalized the display. Comments and criticism, both welcome.
http://ereader.kiczek.com/twitter.zip
Enjoy, and have a fun.  _________________ speechles' eggdrop tcl archive |
|
| Back to top |
|
 |
adi2247 Voice
Joined: 30 Nov 2010 Posts: 10
|
Posted: Thu Dec 23, 2010 6:22 pm Post subject: |
|
|
| works perfect, ty for the update! |
|
| Back to top |
|
 |
mat Voice
Joined: 27 Dec 2010 Posts: 2
|
Posted: Mon Dec 27, 2010 9:18 am Post subject: |
|
|
hey,
is it possible with that script - to repost messages from a hashtag?
so i use the rss reader for a twitter hashtag (atom.feed) to post the messages into a channel - but - i would like to fix the output for it like
[$user] $text - $url
at the moment its only
$text - $url and thats stupid
greetings
mat |
|
| Back to top |
|
 |
bfoos Voice
Joined: 30 Sep 2010 Posts: 6
|
Posted: Sat Jan 08, 2011 10:50 pm Post subject: |
|
|
Hey, speechles... Tried to query you on IRC about this. I'm getting the following error using this script...
| Code: | [15:27:00] Tcl error [proc:twitter:megahal:privatereply]: invalid command name "getreply"
[15:27:01] (Megahal) eggfoos replied to (tehcollective) accounts. |
Using MegaHAL v3.5 |
|
| Back to top |
|
 |
speechles Revered One

Joined: 26 Aug 2006 Posts: 1398 Location: emerald triangle, california (coastal redwoods)
|
Posted: Sun Jan 09, 2011 11:59 pm Post subject: |
|
|
| Quote: | <speechles> !tweet @emily_d_k HI :)\n░╔══╗░░░░╔╦╗░░░╔═════╗░☺\n░║╚═╬════╬╣╠═╗░║░▀░▀░║░\n░╠═╗║╔╗╔╗║║║╩╣░║╚═══╝║░\n░╚══╩╝╚╝╚╩╩╩═╝░╚═════╝░
<sp33chy> Tweet created: http://twitter.com/suqmuhnutz ( 24289599496912896@suqmuhnutz - 0s ago via bittersweet )
<speechles> !user 1-1
<sp33chy> ( 1-1 ) User timelines ( #roms-isos@suqmuhnutz ) http://twitter.com/suqmuhnutz :
<sp33chy> #roms-isos@efnet: @emily_d_k <speechles> HI :) ( 24289599496912896@suqmuhnutz - 6m, 3s ago via bittersweet )
<sp33chy> #roms-isos@efnet: ░╔══╗░░░░╔╦╗░░░╔═════╗░☺
<sp33chy> #roms-isos@efnet: ░║╚═╬════╬╣╠═╗░║░▀░▀░║░
<sp33chy> #roms-isos@efnet: ░╠═╗║╔╗╔╗║║║╩╣░║╚═══╝║░
<sp33chy> #roms-isos@efnet: ░╚══╩╝╚╝╚╩╩╩═╝░╚═════╝░
<speechles> !tsearch #140art 3-3
<sp33chy> ( 3-3 ) Search timelines ( #roms-isos@suqmuhnutz ):
<sp33chy> angelahnicole: RT @TW1TT3Rart: #TWITTERART RT @140ARTIST ( 24262516209094656@angelahnicole - 1h, 16m, 20s ago via web )
<sp33chy> angelahnicole: ─▒▒▒▒▒▌──▓▓▓▓▓▌──░░░░░▌
<sp33chy> angelahnicole: ▒▌▄▒▌▄▒▌▓▌▄▓▌▄▓▌░▌▄░▌▄▒▌
<sp33chy> angelahnicole: ▒▒▒▒▒▒▒▌▓▓▓▓▓▓▓▌░░░░░░░▌
<sp33chy> angelahnicole: ▒▌▒▌▒▌▒▌▓▌▓▌▓▌▓▌░▌░▌░▌░▌ ⋕Եժ #140art
<speechles> !tweet \n█▄▐▌▐▌──▐▀▄─▐▌───▐▌█▀─█▄▐▌█─▀▐█▀▀\n█──██▐▀▄─▐█─▐▌─█▐▐█▌──█─▐██▐▌─▀▀▄⋕Եժ\n██─▐▌▐▄▀▐▄▀─▐█▌▐▐▐▌█▄─██▐▌█▐▌▀██▀\n─────▐▌───────▄▄▀
<sp33chy> Tweet created: http://twitter.com/suqmuhnutz ( 24165464024285184@suqmuhnutz - 0s ago via bittersweet )
<speechles> !user 1-1
<sp33chy> ( 1-1 ) User timelines ( #roms-isos@suqmuhnutz ) http://twitter.com/suqmuhnutz :
<sp33chy> #roms-isos@efnet: <speechles> ( 24165464024285184@suqmuhnutz - 48m, 34s ago via bittersweet )
<sp33chy> #roms-isos@efnet: █▄▐▌▐▌──▐▀▄─▐▌───▐▌█▀─█▄▐▌█─▀▐█▀▀
<sp33chy> #roms-isos@efnet: █──██▐▀▄─▐█─▐▌─█▐▐█▌──█─▐██▐▌─▀▀▄⋕Եժ
<sp33chy> #roms-isos@efnet: ██─▐▌▐▄▀▐▄▀─▐█▌▐▐▐▌█▄─██▐▌█▐▌▀██▀
<sp33chy> #roms-isos@efnet: ─────▐▌───────▄▄▀ |
Full ascii-art support now included. You can create these, as well as easily view them from the comfort of IRC. Two options below control this feature: | Code: | # Split tweets with newlines into multi-line tweets?
# Without this set to 1, ascii art tweets will not
# show correctly.
# (0 no/1 yes)
set twitter(newline) 1
# Allow newlines in tweets? With this, you can create
# multi-line tweets on IRC by using \n to seperate
# each line.
# (0 no/1 yes)
set twitter(allow_newlines) 1 |
Also included, is !apps +app and -app commands. These allow you to ignore specific applications from automatically relaying to your channel. This helps if people attach iPhone applications to their twitter accounts and these applications keep tweeting achievement updates. To block these iPhone app updates, yet keep the rest of what that @username has to say automatically relaying. +app that_iPhone_app it's that easy.
Get the new version here:Twitter, Tweets with Megahal v5.02 (Egghelp version)
Enjoy and have a fun.
If you experience any issues, please post about them in this thread.
NOTE: If your eggdrop is properly utf-8 patched and you are experiencing issues with proper encoding output. | Code: | | if {![string equal $char [encoding system]]} { set text [encoding convertto $char $text] } | Find the above line, and comment it out. This will solve that issue.
____
| bfoos wrote: | | Hey, speechles... Tried to query you on IRC about this. I'm getting the following error using this script... |
The problem is megahal version 3.5 does not give scripts any ability to interact with it. Making it unfortunate, but you cannot get interactiveness with this script using that version of megahal. Sorry  _________________ speechles' eggdrop tcl archive |
|
| Back to top |
|
 |
bfoos Voice
Joined: 30 Sep 2010 Posts: 6
|
Posted: Mon Jan 10, 2011 4:29 am Post subject: |
|
|
| speechles wrote: | | bfoos wrote: | | Hey, speechles... Tried to query you on IRC about this. I'm getting the following error using this script... |
The problem is megahal version 3.5 does not give scripts any ability to interact with it. Making it unfortunate, but you cannot get interactiveness with this script using that version of megahal. Sorry  |
Yup, gleaned that from your rather lengthy explanation on IRC.
Will likely switch over to BarkerJr's version at some point.
At any rate, stellar work on this script. I'm loving the ACII art. |
|
| Back to top |
|
 |
SignZ Voice
Joined: 17 Jun 2010 Posts: 18
|
Posted: Mon Jan 24, 2011 12:46 pm Post subject: |
|
|
Yo speechles. I think I just found another flaw.
If a twitter-user got/posts/tweets location information in a tweet, your script fetches the location as $name instead of the name. |
|
| Back to top |
|
 |
Karunamon Voice
Joined: 01 Aug 2010 Posts: 5
|
Posted: Fri Feb 04, 2011 6:14 pm Post subject: |
|
|
I'm having a slightly annoying issue with twitter's region detection. The physical server and internet connection that my bot is running on is in Canada, but for some reason a couple of weeks ago, I started getting french responses to the requests instead of english ones.
| Code: |
[3:02pm] <+Misato> [Twitter]: Nom: Misato Katsuragi; Localisation: The Internets; Following: 3; Followers: 5; Listed: 0; Total Tweets: 39.
[3:02pm] <+Misato> [Twitter]: I am an eggdrop bot for Lost Signal Networks #main IRC channel. Various people may show up in my stream. Follow for randomness. Owner/Operator: @tkware
[3:02pm] <+Misato> [Twitter]: Last Tweet: [33646312754778112] (Il y a moins de 10 secondes via Misato the Eggdrop Bot): <Odin> Marisa had to go to the bathroom
[3:02pm] <+Misato> [Twitter]: http://twitter.com/lsnmain [Region: fr]
|
I think I understand what's happening, but I'm not proficient enough at TCL to know how to fix it. Any ideas how I force it to stay in region: en-us? |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|