• twitter

    From Bill McGarrity@1:103/705 to echicken on Wed Mar 14 18:51:14 2018
    Hiya echicken...

    Trying to setup twitter on the system here. rollowed the readme file and
    have everything setup with twitter, updated entry into the modops.ini file
    and ran a test... Here's what I got.

    C:\sbbs\exec>jsexec c:\sbbs\xtrn\twitter\tweet.js This is a test tweet

    JSexec v3.17a-Win32 (rev 1.198) - Execute Synchronet JavaScript Module
    Compiled Mar 14 2018 05:03:18 with MSC 1800

    Loading configuration files from C:\SBBS\CTRL
    JavaScript-C 1.8.5 2011-03-31
    JavaScript: Creating runtime: 8388608 bytes
    JavaScript: Initializing context (stack: 16384 bytes)

    Reading script from c:\sbbs\xtrn\twitter\tweet.js
    c:\sbbs\xtrn\twitter\tweet.js compiled in 0.00 seconds
    TypeError: this.extra_headers is undefined
    c:\sbbs\xtrn\twitter\tweet.js executed in 0.05 seconds

    JavaScript: Destroying context
    JavaScript: Destroying runtime


    Any ideas?

    Thanks..

    --

    Bill

    Telnet: tequilamockingbirdonline.net
    Web: bbs.tequilamockingbirdonline.net
    FTP: ftp.tequilamockingbirdonline.net:2121
    IRC: irc.tequilamockingbirdonline.net Ports: 6661-6670 SSL: 6697
    Radio: radio.tequilamockingbirdonline.net:8010/live

    ---
    * Synchronet * TequilaMockingbird Online - Toms River, NJ
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From echicken@1:103/705 to Bill McGarrity on Wed Mar 14 19:12:51 2018
    Re: twitter
    By: Bill McGarrity to echicken on Wed Mar 14 2018 18:51:14

    TypeError: this.extra_headers is undefined

    How recent is your copy of 'exec/load/http.js', and do you happen to have another copy of it in your 'mods' directory? I suspect that updating this file will resolve the problem, which sounds familiar.

    ---
    echicken
    electronic chicken bbs - bbs.electronicchicken.com - 416-273-7230
    * Synchronet * electronic chicken bbs - bbs.electronicchicken.com
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Bill McGarrity@1:266/404 to echicken on Thu Mar 15 13:03:00 2018
    echicken wrote to Bill McGarrity on 03-14-18 19:12 <=-

    Re: twitter
    By: Bill McGarrity to echicken on Wed Mar 14 2018 18:51:14

    TypeError: this.extra_headers is undefined

    How recent is your copy of 'exec/load/http.js', and do you happen to
    have another copy of it in your 'mods' directory? I suspect that
    updating this file will resolve the problem, which sounds familiar.

    I have the latest version... v1.39 dated 2/27/18 and nothing in my mods directory.

    I went to the cvs and downloaded it again, ran jsexec update.js and still get the same error....

    C:\sbbs\exec>jsexec c:\sbbs\xtrn\twitter\tweet.js This is a test tweet

    JSexec v3.17a-Win32 (rev 1.198) - Execute Synchronet JavaScript Module
    Compiled Mar 14 2018 05:03:18 with MSC 1800

    Loading configuration files from C:\SBBS\CTRL
    JavaScript-C 1.8.5 2011-03-31
    JavaScript: Creating runtime: 8388608 bytes
    JavaScript: Initializing context (stack: 16384 bytes)

    Reading script from c:\sbbs\xtrn\twitter\tweet.js
    c:\sbbs\xtrn\twitter\tweet.js compiled in 0.00 seconds
    TypeError: this.extra_headers is undefined
    c:\sbbs\xtrn\twitter\tweet.js executed in 0.06 seconds

    JavaScript: Destroying context
    JavaScript: Destroying runtime

    ????


    --

    Bill

    Telnet: tequilamockingbirdonline.net
    Web: bbs.tequilamockingbirdonline.net
    FTP: ftp.tequilamockingbirdonline.net:2121
    IRC: irc.tequilamockingbirdonline.net Ports: 6661-6670 SSL: +6697
    Radio: radio.tequilamockingbirdonline.net:8010/live


    ... Look Twice... Save a Life!!! Motorcycles are Everywhere!!!
    --- MultiMail/Win32 v0.50
    * Origin: TequilaMockingbird Online - Toms River, NJ (1:266/404)
  • From echicken@1:103/705 to Bill McGarrity on Thu Mar 15 14:51:08 2018
    Re: twitter
    By: Bill McGarrity to echicken on Thu Mar 15 2018 13:03:00

    TypeError: this.extra_headers is undefined

    I just committed a change to exec/load/http.js that should fix this.

    You may run into another, unrelated problem when attempting to tweet, with an error message like "Unable to send request". I had to update my build of Synchronet to get past that one, which I believe was HTTPS-related.

    ---
    echicken
    electronic chicken bbs - bbs.electronicchicken.com - 416-273-7230
    * Synchronet * electronic chicken bbs - bbs.electronicchicken.com
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Bill McGarrity@1:266/404 to echicken on Thu Mar 15 20:39:00 2018
    echicken wrote to Bill McGarrity on 03-15-18 14:51 <=-

    Re: twitter
    By: Bill McGarrity to echicken on Thu Mar 15 2018 13:03:00

    TypeError: this.extra_headers is undefined

    I just committed a change to exec/load/http.js that should fix this.

    You may run into another, unrelated problem when attempting to tweet,
    with an error message like "Unable to send request". I had to update
    my build of Synchronet to get past that one, which I believe was HTTPS-related.

    OK... thanks. No more error but it seems not to be posting to the account. I've re-entered all the key information but why they use either I or l is beyond me. It's tough to tell what they want. I've used both and neither works. :(

    I'll keep plugging along.

    BTW, will this still if v3web is installed? I haven't gotten around to v4 yet.

    Thanks...


    --

    Bill

    Telnet: tequilamockingbirdonline.net
    Web: bbs.tequilamockingbirdonline.net
    FTP: ftp.tequilamockingbirdonline.net:2121
    IRC: irc.tequilamockingbirdonline.net Ports: 6661-6670 SSL: +6697
    Radio: radio.tequilamockingbirdonline.net:8010/live


    ... Look Twice... Save a Life!!! Motorcycles are Everywhere!!!
    --- MultiMail/Win32 v0.50
    * Origin: TequilaMockingbird Online - Toms River, NJ (1:266/404)
  • From echicken@1:103/705 to Bill McGarrity on Thu Mar 15 21:25:59 2018
    Re: twitter
    By: Bill McGarrity to echicken on Thu Mar 15 2018 20:39:00

    OK... thanks. No more error but it seems not to be posting to the account. I've re-entered all the key information but why they use either I or l is beyond me. It's tough to tell what they want. I've used both and neither works. :(

    Are you transcribing your keys and secrets? I just copied and pasted mine from the app's 'Keys and Access Tokens' section at https://apps.twitter.com/ so there was no ambiguity about I and l, etc.

    While you're on that site, you may want to double-check the permissions that you've granted the app. Mine has 'Read, write, and direct messages', though I assume only 'write' is needed if all you want to do is post public tweets.

    I'll keep plugging along.

    I can confirm that it's working here with a build of Synchronet from this afternoon and the latest http.js. If you're on an older build, updating might help ... then again, you'll have to decide if tweeting is worth updating for.

    ---
    echicken
    electronic chicken bbs - bbs.electronicchicken.com - 416-273-7230
    * Synchronet * electronic chicken bbs - bbs.electronicchicken.com
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Bill McGarrity@1:266/404 to echicken on Fri Mar 16 12:17:00 2018
    echicken wrote to Bill McGarrity on 03-15-18 21:25 <=-

    Re: twitter
    By: Bill McGarrity to echicken on Thu Mar 15 2018 20:39:00

    OK... thanks. No more error but it seems not to be posting to the account. I've re-entered all the key information but why they use either I or l is beyond me. It's tough to tell what they want. I've used both and neither works. :(

    Are you transcribing your keys and secrets? I just copied and pasted
    mine from the app's 'Keys and Access Tokens' section at https://apps.twitter.com/ so there was no ambiguity about I and l, etc.

    I was transcribbing.... guess my eyes aren't what they used to be. I did c&p and it worked as advertised.

    Thank you..

    While you're on that site, you may want to double-check the permissions that you've granted the app. Mine has 'Read, write, and direct
    messages', though I assume only 'write' is needed if all you want to do
    is post public tweets.

    I have all three allowed... :)


    I'll keep plugging along.

    I can confirm that it's working here with a build of Synchronet from
    this afternoon and the latest http.js. If you're on an older build, updating might help ... then again, you'll have to decide if tweeting
    is worth updating for.

    I normally stay up-to-date on all builds.... :)

    Thanks so much for your help and time.


    --

    Bill

    Telnet: tequilamockingbirdonline.net
    Web: bbs.tequilamockingbirdonline.net
    FTP: ftp.tequilamockingbirdonline.net:2121
    IRC: irc.tequilamockingbirdonline.net Ports: 6661-6670 SSL: +6697
    Radio: radio.tequilamockingbirdonline.net:8010/live


    ... Look Twice... Save a Life!!! Motorcycles are Everywhere!!!
    --- MultiMail/Win32 v0.50
    * Origin: TequilaMockingbird Online - Toms River, NJ (1:266/404)
  • From Bill McGarrity@1:266/404 to echicken on Fri Mar 16 13:58:15 2018
    Re: twitter
    By: echicken to Bill McGarrity on Thu Mar 15 2018 14:51:08

    Hiya echicken...

    In the readme file you have a section "system.stats.total_logons"

    Where is the list of codes I can use in place of that. I've looked at the @-codes but nothing seems to be similar to what you have above.

    Thanks.,.

    --

    Bill

    Telnet: tequilamockingbirdonline.net
    Web: bbs.tequilamockingbirdonline.net
    FTP: ftp.tequilamockingbirdonline.net:2121
    IRC: irc.tequilamockingbirdonline.net Ports: 6661-6670 SSL: 6697
    Radio: radio.tequilamockingbirdonline.net:8010/live
    --- SBBSecho 3.03-Win32
    * Origin: TequilaMockingbird Online - Toms River, NJ (1:266/404)
  • From echicken@1:103/705 to Bill McGarrity on Mon Mar 19 12:47:36 2018
    Re: twitter
    By: Bill McGarrity to echicken on Fri Mar 16 2018 13:58:15

    In the readme file you have a section "system.stats.total_logons"

    Where is the list of codes I can use in place of that. I've looked at the @-codes but nothing seems to be similar to what you have above.

    http://synchro.net/docs/jsobjs.html

    There are various objects there, each with 'methods' and 'properties'. The 'properties' can be printed out as in the example in that readme file.

    ---
    echicken
    electronic chicken bbs - bbs.electronicchicken.com - 416-273-7230
    * Synchronet * electronic chicken bbs - bbs.electronicchicken.com
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Bill McGarrity@1:266/404 to echicken on Mon Mar 19 17:20:00 2018
    echicken wrote to Bill McGarrity on 03-19-18 12:47 <=-

    Re: twitter
    By: Bill McGarrity to echicken on Fri Mar 16 2018 13:58:15

    In the readme file you have a section "system.stats.total_logons"

    Where is the list of codes I can use in place of that. I've looked at the @-codes but nothing seems to be similar to what you have above.

    http://synchro.net/docs/jsobjs.html

    There are various objects there, each with 'methods' and 'properties'.
    The 'properties' can be printed out as in the example in that readme
    file.

    Thank you sir!! This should be fun!! ;)


    --

    Bill

    Telnet: tequilamockingbirdonline.net
    Web: bbs.tequilamockingbirdonline.net
    FTP: ftp.tequilamockingbirdonline.net:2121
    IRC: irc.tequilamockingbirdonline.net Ports: 6661-6670 SSL: +6697
    Radio: radio.tequilamockingbirdonline.net:8010/live


    ... Look Twice... Save a Life!!! Motorcycles are Everywhere!!!
    --- MultiMail/Win32 v0.50
    * Origin: TequilaMockingbird Online - Toms River, NJ (1:266/404)