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

[verbose] ofxOAuth::post: HTTP post request failed. #15

Open
SSXCode opened this issue Jun 3, 2014 · 7 comments
Open

[verbose] ofxOAuth::post: HTTP post request failed. #15

SSXCode opened this issue Jun 3, 2014 · 7 comments

Comments

@SSXCode
Copy link

SSXCode commented Jun 3, 2014

I'm trying to make a post to twitter with the addon ofxtwitter and validation of keys and tokens is successful but when I post it generates the following error: [verbose] ofxOAuth::post: HTTP post request failed.

anyone can guide me? thanks

@wasawi
Copy link

wasawi commented Jun 3, 2014

hey
I'm currently using ofxTwitter to post with no problems.
I'm using Pelayo's repo:
https://github.com/pelayomendez/ofxTwitter

I'm not sure what is the problem you experience, but all I can say is that it works well there, and it is using this addon for the authentication.

@pelayomendez
Copy link

Could this be a Windows related problem?

@antocreo
Copy link

I am having the same error. Any hints?

@bakercp
Copy link
Member

bakercp commented Jan 22, 2015

Hmm ... sorry. ARe you getting any errors that you could post?

@antocreo
Copy link

Hi! thanks for the quick reply!
here is what I get into the terminal.
I suspect it is something that has to deal with the callback URL. I looked it up on some thread but I am not sure I've got the sense of it.
Maybe you come up with some hint.

Cheers!

[verbose] ofxOAuth::post: -------------------
[verbose] ofxOAuth::post: consumerKey >MkbwZ5Uu0Sil1eJwlfAXqu2cB<
[verbose] ofxOAuth::post: consumerSecret >7WPt3Afx3D4O5N4adPwWpYzTkTCOcgkOygJ1Sz8mBFR35y7esd<
[verbose] ofxOAuth::post: requestToken ><
[verbose] ofxOAuth::post: requestTokenVerifier ><
[verbose] ofxOAuth::post: requestTokenSecret ><
[verbose] ofxOAuth::post: accessToken >50583696-zAZXUAunGx6wdu8jUNDjHh2i9oOG8mgBfTWSaMTZo<
[verbose] ofxOAuth::post: accessTokenSecret >U0OtDP41FdFNJQiE8vliPPtoDsw9YUnQK5CNqaS4x5DFy<
[verbose] ofxOAuth::post: -------------------
[verbose] ofxOAuth::post: : 0:https://api.twitter.com/1.1/statuses/update.json
[verbose] ofxOAuth::post: : 1:oauth_consumer_key=MkbwZ5Uu0Sil1eJwlfAXqu2cB
[verbose] ofxOAuth::post: : 2:oauth_nonce=9zMsGkcnV3iUIg8e0GNoOw
[verbose] ofxOAuth::post: : 3:oauth_signature_method=HMAC-SHA1
[verbose] ofxOAuth::post: : 4:oauth_timestamp=1421958260
[verbose] ofxOAuth::post: : 5:oauth_token=50583696-zAZXUAunGx6wdu8jUNDjHh2i9oOG8mgBfTWSaMTZo
[verbose] ofxOAuth::post: : 6:oauth_version=1.0
[verbose] ofxOAuth::post: : 7:status=Hi from OF!
[verbose] ofxOAuth::post: : 8:oauth_signature=exbLR8EgRJhBZFEI13BwZQ4R9lM=
[verbose] ofxOAuth::post: request URL >https://api.twitter.com/1.1/statuses/update.json<
[verbose] ofxOAuth::post: request HEADER >oauth_consumer_key=MkbwZ5Uu0Sil1eJwlfAXqu2cB, oauth_nonce=9zMsGkcnV3iUIg8e0GNoOw, oauth_signature_method=HMAC-SHA1, oauth_timestamp=1421958260, oauth_token=50583696-zAZXUAunGx6wdu8jUNDjHh2i9oOG8mgBfTWSaMTZo, oauth_version=1.0, oauth_signature=exbLR8EgRJhBZFEI13BwZQ4R9lM%3D<
[verbose] ofxOAuth::post: http HEADER >Authorization: OAuth oauth_consumer_key=MkbwZ5Uu0Sil1eJwlfAXqu2cB, oauth_nonce=9zMsGkcnV3iUIg8e0GNoOw, oauth_signature_method=HMAC-SHA1, oauth_timestamp=1421958260, oauth_token=50583696-zAZXUAunGx6wdu8jUNDjHh2i9oOG8mgBfTWSaMTZo, oauth_version=1.0, oauth_signature=exbLR8EgRJhBZFEI13BwZQ4R9lM%3D<
[verbose] ofxOAuth::post: HTTP post request failed.
[notice ] testApp::keyPressed:

@pelayomendez
Copy link

I checked with this old branch:
https://github.com/pelayomendez/ofxOAuth/tree/feature-postmultipart/formdata

And it works but ofxTwitter is not working working with latest version of ofxOauth.

@pelayomendez
Copy link

Making curl talk a bit with latest version of ofxOauth I found this. I don´t really know where to look in ofxOauth for fixing an SSL Certificate problem.

  • About to connect() to api.twitter.com port 443 (#0)
  • Trying 199.16.156.231...
  • connected
  • Connected to api.twitter.com (199.16.156.231) port 443 (#0)
  • SSL certificate problem: unable to get local issuer certificate
  • Closing connection #0
  • Peer certificate cannot be authenticated with given CA certificates
    [verbose] ofxOAuth::post: HTTP post request failed.

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

5 participants