David.. Posted December 14, 2023 Posted December 14, 2023 Hello! It seems that on my community & a friend's community the Reddit.com links are no longer working but they work on invision community. Can someone from the team look into this? My community: IC:
Randy Calvert Posted December 14, 2023 Posted December 14, 2023 The link appears to embed correctly when I paste the URL into my own site. It's possible Reddit is blocking your server's IP for some reason or there is some sort of firewall preventing your server from reaching Reddit's oembed endpoint. I would start by making sure you don't have any sort firewall rules blocking you. If nothing is blocking you, try disabling all 3rd party resources and try again. It could also just be something on Reddit's side. For example: They might be blocking your server or something similar.
teraßyte Posted December 14, 2023 Posted December 14, 2023 (edited) Reddit recently banned a huge batch of IP ranges. If you try to view that link in your screenshot directly from your server's IP you'll probably get a message like this: Quote whoa there, pardner! reddit's awesome and all, but you may have a bit of a problem. Make sure your User-Agent is not empty, is something unique and descriptive and try again. if you're supplying an alternate User-Agent string, try changing back to default as that can sometimes result in a block. If you're attemping to access Reddit via a hosting provider or private VPN, please either login at reddit.com/login/ or register/sign in with your developer credentials here. You can read Reddit's Terms of Service here. if you think that we've incorrectly blocked you or you would like to discuss easier ways to get the data you want, please contact us at this email address. when contacting us, please include your ip address which is: XXX.XXX.XXX.XXX and reddit account This is actually the message I'm getting right now with my current IP. The funny thing is that if I try to view the link using the old version (old.reddit.com) instead of the new one (www.reddit.com) there is no such error message. They're blocking the IPs only on the new UI. 😅 Edited December 14, 2023 by teraßyte
Marc Posted December 14, 2023 Posted December 14, 2023 It would indeed appear to be an issue on reddits end there, rather than our own
Nathan Explosion Posted December 14, 2023 Posted December 14, 2023 This post was recognized by Marc! Nathan Explosion was awarded the badge 'Superstar' and 10 points. Just as a bit of information to add to the mix here... A few weeks ago I assisted someone on a problem with Reddit embeds on their own site (non-Invision) which had the same problem - Reddit unblocked their IP address, but a few days later it was blocked again. Contacted Reddit again, they unblocked it but advised us to review the embed code being used. It was then that I spotted that the URL being used for the oembed endpoint was http://www.reddit.com/oembed - updated it to https://, and we've not seen any further blocks. The endpoint for reddit in \IPS\Text\Parser is http://www.reddit.com/oembed
Marc Posted December 14, 2023 Posted December 14, 2023 6 minutes ago, Nathan Explosion said: Just as a bit of information to add to the mix here... A few weeks ago I assisted someone on a problem with Reddit embeds on their own site (non-Invision) which had the same problem - Reddit unblocked their IP address, but a few days later it was blocked again. Contacted Reddit again, they unblocked it but advised us to review the embed code being used. It was then that I spotted that the URL being used for the oembed endpoint was http://www.reddit.com/oembed - updated it to https://, and we've not seen any further blocks. The endpoint for reddit in \IPS\Text\Parser is http://www.reddit.com/oembed Thanks Nathan. Thats very helpful, and I have reported that as a bug internally. If its causing people to be blocked, we can certainly sort that
Nathan Explosion Posted December 14, 2023 Posted December 14, 2023 Just to add for anyone reading the above - if you go to http://www.reddit.com/oembed?format=json&url=https://www.reddit.com/r/reactjs/comments/14s3r1j/adding_the_new_threadsnet_social_share_button_to/?rdt=53260&scheme=https (this is the URL produced by Invision to connect to Reddit to get the oembed code) it will redirect to the https equivalent: https://www.reddit.com/oembed?format=json&url=https://www.reddit.com/r/reactjs/comments/14s3r1j/adding_the_new_threadsnet_social_share_button_to/?rdt=53260&scheme=https ...and produce the expected response. I am not indicating here that it's going to fix things for those currently blocked (you will need to contact Reddit to get your server IP unblocked) nor am I indicating here that the change by Invision will stop people being blocked going forward - I am only indicating that in my case above, we have not seen any further blocks since making the change after the second unblock being done.
David.. Posted December 14, 2023 Author Posted December 14, 2023 5 hours ago, Nathan Explosion said: Just as a bit of information to add to the mix here... A few weeks ago I assisted someone on a problem with Reddit embeds on their own site (non-Invision) which had the same problem - Reddit unblocked their IP address, but a few days later it was blocked again. Contacted Reddit again, they unblocked it but advised us to review the embed code being used. How did you contact Reddit to unblock your IP?
Nathan Explosion Posted December 14, 2023 Posted December 14, 2023 (edited) 1 minute ago, David.. said: How did you contact Reddit to unblock your IP? I followed the instructions in the blurb they provide as a response to the request - and that is in this post, with links (obviously, you'll need to provide your server's IP instead): Edited December 14, 2023 by Nathan Explosion
Recommended Posts