Unable to reach or parse the data provided by the jsDelivr API

Created on 24 June 2020, almost 5 years ago
Updated 13 September 2024, 7 months ago

I get the following error in my theme configuration after I clear all cache:

ERROR: Unable to reach or parse the data provided by the jsDelivr API. Ensure the server this website is hosted on is able to initiate HTTP requests. If the request consistently fails, it is likely that there are certain PHP functions that have been disabled by the hosting provider for security reasons. It is possible to manually copy and paste the contents of the following URL into the "Imported jsDelivr data" section below.

http://api.jsdelivr.com/v1/bootstrap/libraries.

Note: this just started happening and I've been at the same Drupal version (8.5.15) and Bootstrap 3 theme version (8.x-3.50) for a long time with no issues until now.

As was described in a previous issue, I lose my configuration for the advanced CDN Provider settings through the bootstrap theme UI configuration settings. After I clear all cache, the "Version" and "Theme" drop down settings are no longer available. Of course this corrupts my entire site (please see attached screenshots). Everything was working fine until recently. I don't know what changed. However, I can now reproduce this issue on all my Drupal landscapes (SB, DEV, QA, PROD). I did review the previous issue comments, but it's not clear to me whether there was a fix and/or workaround. Is this a known issue?
Mark mentioned that you can still set the jsDelivr version and theme via a theme's .info file. Are you referring to the bootstrap.info.yml file? If so, can you please provide an example of the setting and location I need to add in the file?
This issue is critical because I absolutely need to clear all cache after I refresh the Drupal database as a part of our deployment process from DEV/QA/PROD.

Thanks for your help.

🐛 Bug report
Status

Closed: won't fix

Version

3.5

Component

Code

Created by

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024