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

{"errors":[{"message":"SSL is required","code":92}]} #11

Closed
nhoizey opened this issue Apr 21, 2015 · 10 comments
Closed

{"errors":[{"message":"SSL is required","code":92}]} #11

nhoizey opened this issue Apr 21, 2015 · 10 comments
Assignees

Comments

@nhoizey
Copy link

nhoizey commented Apr 21, 2015

This is the content of the cache file, and I don't know what to do with this error.

Thanks.

@rob-murray rob-murray self-assigned this Apr 21, 2015
@rob-murray
Copy link
Owner

Hi,
I presume that is not the tweet you were expecting :)

That is a strange error though and at first glance appears to be something from the Twitter API - I have not seen this before.

Could you let me know which version of Twitter gem you have (if you look at the dependency chain for this gem in Gemfile.lock and the Tweet url please and I will see if I can replicate this problem. Also just open up the tweet url in a browser and check its not protected or anything.

@nhoizey
Copy link
Author

nhoizey commented Apr 22, 2015

I have this:

    jekyll-twitter-plugin (1.3.0)
      twitter (~> 5.11)

But also this:

    twitter (5.14.0)
      addressable (~> 2.3)
      buftok (~> 0.2.0)
      equalizer (~> 0.0.9)
      faraday (~> 0.9.0)
      http (~> 0.6.0)
      http_parser.rb (~> 0.6.0)
      json (~> 1.8)
      memoizable (~> 0.4.0)
      naught (~> 1.0)
      simple_oauth (~> 0.3.0)

This is the tweet I'm trying to use: https://twitter.com/csswg/status/571742414299246592

@rob-murray
Copy link
Owner

Thanks - I will see if I can replicate the problem.

If you delete the specific cache file for that Tweet and run Jekyll again does the same thing occur?

@nhoizey
Copy link
Author

nhoizey commented Apr 22, 2015

Yes, it does.

@rob-murray
Copy link
Owner

How are you calling the plugin from your jekyll post? This error actually looks like the problem with the original plugin, see issue scottwb/jekyll-tweet-tag#9.

This plugin needs the tag in the format below:

{% twitter oembed status_url *options %}

Rather than the original plugin:

{% tweet https://twitter.com/DEVOPS_BORAT/statuses/159849628819402752 %}

I used a different tag name to differentiate between this one and the other in case that was ever resurrected.

So your tweet would be:

{% twitter oembed https://twitter.com/csswg/status/571742414299246592 %}

Apologies if you have already checked this, with the same gem versions I cannot replicate the problem.

@nhoizey
Copy link
Author

nhoizey commented Apr 22, 2015

OMG, sorry, I was still using tweet instead of twitter! :-/

@nhoizey nhoizey closed this as completed Apr 22, 2015
@rob-murray
Copy link
Owner

No problem; sorry I didnt remember the error!

@nhoizey
Copy link
Author

nhoizey commented Apr 22, 2015

No problem… ;-)

While we're here, do you plan to add other API types? Maybe oembed could be the default, so that we don't have to write it for every tweet… ;-)

@rob-murray
Copy link
Owner

I thought I might add more types of Twitter content which is why this uses the Twitter gem and the type is an argument - but so far the need has not occurred so I could remove it and make the oembed function the default. Will add it as an issue!

@nhoizey
Copy link
Author

nhoizey commented Apr 23, 2015

Great, thanks!

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