Continuing the discussion from Did onebox change? They're not showing for my main site any longer :
Not sure what’s going on here or if it’s related to this topic, but my site used to onebox beautifully in discourse - it no longer does as of a week or so, even here on meta. I just updated my discourse to tests passed… no dice. No changes recently on the wordpress site until we updated some plugins today.
Example URL that should onebox:
https://namati.org/resources/childhood-statelessness-in-south-africa/
Childhood statelessness in South Africa is a generally unaddressed, largely preventable, but a growing phenomenon. This short publication presents the experiences of 9 children who have been let down by the system, denied their right to acquire a...
cpradio
(cpradio)
June 9, 2017, 12:10am
2
Are you on latest?
There were these two issues prior
Continuing the discussion from Did onebox change? They're not showing for my main site any longer :
@eviltrout was totally awesome and made it work again - but it’s still not entirely back to normal. It no longer follows a 302 redirect:
should yield the same as:
The first one, results in a HEAD => 501 then GET => 302 redirect, which should finally lead to a GET => 200
You guys rock
2 Likes
Thanks @cpradio ! Yes, I am on latest… I updated after reading these posts shortly before starting this topic. Also, it doesn’t work on meta either as you can see above.
daath
(Lars)
June 9, 2017, 8:46am
5
Could be because of HTTPS? Though an analysis of the certificate shows that everything should be fine…
daath
(Lars)
June 9, 2017, 8:47am
6
Did you look at the logs in your dashboard? If onebox fails it should write something in the log…
I just pulled onebox and manually added namati.org
to https://github.com/discourse/onebox/blob/master/lib/onebox/engine/whitelisted_generic_onebox.rb#L18
So if something is broken it’s probably not directly related to the domain.
2 Likes
Given https://github.com/discourse/discourse/blob/master/lib/onebox/engine/whitelisted_generic_onebox.rb#L9
It will return true
for namati.org
so the domain should be automatically whiteslisted as far as I understand onebox at the moment.
eviltrout
(Robin Ward)
June 9, 2017, 3:27pm
9
That site seems to be returning nothing for our custom user agent Discourse Forum Onebox vXXX
If I use Ruby
like the onebox does outside of Discourse the onebox works fine.
So this must be the result of our new user agent string.
5 Likes
So maybe I need to check with my wordpress host, wpegine, about accepting this user agent string?
eviltrout
(Robin Ward)
June 12, 2017, 3:09pm
11
Yes that would be a good thing to do. It’s curious they accept Ruby
but not ours.
2 Likes
OK, looks like my problem is solved. From wpengine chat:
Yep it does look like it came and got a 200 OK! I added a rule to your server config file to outright allow the user agent.
I can confirm that it’s now working again - also in the OP above which I just edited as a test.
6 Likes