iamcal / oembed

The oEmbed Spec
http://oembed.com
MIT License
1.32k stars 651 forks source link

Loading providers.json from Python urllib fails #500

Closed shon closed 3 years ago

shon commented 3 years ago
from urllib.request import urlopen
schema_url = 'https://oembed.com/providers.json'
print(urlopen(schema_url).read())

Fails with error showing strack trace and paths

b'<br />\n<b>Fatal error</b>:  Uncaught Error: Call to undefined function yaml_parse_file() in /var/www/html/oembed.com/www/json.php:14\nStack trace:\n#0 {main}\n  thrown in <b>/var/www/html/oembed.com/www/json.php</b> on line <b>14</b><br />\n'
shon commented 3 years ago

Even simple curl https://oembed.com/providers.json fails

iamcal commented 3 years ago

this should now be fixed