Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem error in time #2

Open
pablinn opened this issue Jan 6, 2017 · 8 comments
Open

Problem error in time #2

pablinn opened this issue Jan 6, 2017 · 8 comments

Comments

@pablinn
Copy link

pablinn commented Jan 6, 2017

Hi I have a little trouble with your code, but I dont know why the Date is wrong and fail to tweet is for the timestamp ?
i probe
terminal ntpdate -d 216.239.35.0 is ok but in the esp8266 show me a different date for one day
6 - 1 -17 in the esp 7-1-17 for example

I'm from argentina the time zone is 1 ? in your code is 9 I suposse you are from london
could you help me please...
regards

@pablinn
Copy link
Author

pablinn commented Jan 7, 2017

Ok was the timezone is -3 but the error is the same
[DEBUG] do_http_text_post httpCode : -1
you use this post method ?
https://dev.twitter.com/oauth/reference/post/oauth2/token

@ghost
Copy link

ghost commented Mar 2, 2018

I'm also getting

[DEBUG] do_http_text_post httpCode : -1

when attempting to use this library. I did need to set the timezone to -5 instead of 9 to get a correct time. Were you able to make this work?

@ghost
Copy link

ghost commented Mar 8, 2018

I believe part of the problem is this is still using oauth 1.0 instead of 2.0, at least according to the information I'm getting back in the code.

[TWEET] tweet : esp-01 + direct tweet / test 04
[DEBUG] do_http_text_post httpCode : -1
api.twitter.com
443
/1.1/statuses/update.json
AB 60 BB B5 F1 B9 A7 7E BE 68 1B BF 35 3F B3 C2 F9 B4 D2 44

OAuth oauth_consumer_key="xxx", oauth_nonce="2007115423", oauth_signature="xxx", oauth_signature_method="HMAC-SHA1", oauth_timestamp="1520552350", oauth_token="xxx", oauth_version="1.0"

@jimenaCabrejas
Copy link

I'm getting the same error.

[DEBUG] do_http_text_post httpCode : -1

Did you find a way to solve it?

@ghost
Copy link

ghost commented Mar 12, 2018

I don't think it's solvable as-is, as the library appears to be using Oauth 1.0. The creator or someone with more knowledge than myself will need to update it.

@ghost
Copy link

ghost commented Mar 15, 2018

I was able to get this library to properly tweet: https://github.com/debsahu/TwitterWebAPI

@jimenaCabrejas
Copy link

Thank you! That library works perfectly

@ghost
Copy link

ghost commented Mar 16, 2018

You're very welcome.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants