• Resolved asterbird

    (@asterbird)


    Hello,

    I’m using the beta test on a development site because some of the icons we need are not available on the latest stable version. We are planning to launch December 6th, 2018. Do you know if you think this version will be out by then?

    Everything was working great until I got this error in the WP Admin

    API Error
    The attempt to reach the jsDelivr API server failed with the following error: 503: Service Unavailable (URL: https://data.jsdelivr.com/v1/package/gh/FortAwesome/Font-Awesome)

    I’m using Divi theme and builder, and my site is really slow when the plugin is enabled. It speeds up as soon as I deactivate it.

    thanks,

Viewing 2 replies - 1 through 2 (of 2 total)
  • soitora

    (@soitora)

    Hello, this is an issue with JSDelivr, if you want a quick fix (at least for the horrendous loading times) I suggest you change the timeout (It’s at 10 seconds..) in the files.

    The file is in the path PLUGINS\better-font-awesome\vendor\mickey-kay\better-font-awesome-library and the file itself is better-font-awesome-library.php

    Edit using a program called Notepad++ if you FTP (and not default Notepad) or using the command line editor like Nano in Bash.

    The Timeout function is located at row 115, the string will look like:

    	private $wp_remote_get_args = array(
    		'timeout'   => 10,
    		'sslverify' => false,
    	);

    Change 'timeout' => 10, to whatever you desire, I personally changed this to 'timeout' => 1, and saw the site go way faster. This should be a fine intermeditary fix and everything should function as they used to when JSDelivr is back up and running.

    Sincerely,
    Simon

    Thread Starter asterbird

    (@asterbird)

    Looks like it got fixed, per other thread. Thanks!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Beta Test] API Error, Slows Site Down’ is closed to new replies.