TypeError: this.extra_headers is undefined
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.
TypeError: this.extra_headers is undefined
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.
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.
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.
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.
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.
| Sysop: | Winzlo |
|---|---|
| Location: | Minnesota, USA |
| Users: | 11 |
| Nodes: | 16 (0 / 16) |
| Uptime: | 495939:10:07 |
| Calls: | 82 |
| Files: | 1,070 |
| D/L today: |
27 files (11,920K bytes) |
| Messages: | 286,966 |