Giter VIP home page Giter VIP logo

Comments (5)

mpratt avatar mpratt commented on June 2, 2024 1

No problem @johncarter- !
Thanks for the feedback, Im closing this issue. ๐Ÿ‘

from embera.

johncarter- avatar johncarter- commented on June 2, 2024

Oh, mercy!

oscarotero/Embed#518 (comment)

from embera.

mpratt avatar mpratt commented on June 2, 2024

Hi @JohnCarter
Yes, Indeed there seems to be a problem with some hosting providers. I had a report coming from German servers having the same problem adn while doing the debug we found this instances where something similar happened:

https://twittercommunity.com/t/oembed-responses-are-returns-with-code-404/136813 (April 2020)
https://twittercommunity.com/t/oembed-404/167966 (Mรคrz 2022)
https://twittercommunity.com/t/issue-with-twitter-oembed-api-when-accessed-from-digitalocean-droplets/194215 (May 2023)

Lets see if twitter responds

from embera.

mpratt avatar mpratt commented on June 2, 2024

There seems to be a solution to this problem:

Given the ip address ranges described here: https://developer.twitter.com/en/blog/product-news/2022/updated-source-ip-address-range

You need to allow all TCP connections from those IP ranges.

https://300m.com/security/twitter-oembed-broken-on-digitalocean/

Let me know if this works for you.

from embera.

johncarter- avatar johncarter- commented on June 2, 2024

I can confirm the following works:

  1. Go to Digital Ocean control panel > Networking > Firewalls (tab) > Create Firewall

  2. Add the following rules:
    image

  3. Assign that rule to your Droplet.

  4. Profit ๐Ÿ’ท

Thanks again for the package and prompt response, it's highly appreciated.

from embera.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.