• Hello!

    I added this external block to my WP, gave URL to repo in settings bar and this happend: Error: API rate limit exceeded for <My IP address>. (But here’s the good news: Authenticated requests get a higher rate limit. Check out the documentation for more details.)

    That’s all. I would like to know how to repair it.

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hello

    I have the exact same problem. For a specific repo, I have the following error message:

    Error: API rate limit exceeded for IP (But here’s the good news: Authenticated requests get a higher rate limit. Check out the documentation for more details.)

    However, the IP address that is shown is not the one obtained from the “ping domain” command.

    For the record, it was fully working on my local machine, but I used Duplicator to move site to production. It then failed.

    Same problem, any solution?

    Hi everyone.

    I may have found a solution (dirty, since I am no web developer). Editing the embed-block-for-github.php file, replace

    #if ( get_transient( '_ebg_repository_' . sanitize_title_with_dashes( $github_url ) ) )

    by

    if(false)

    The insures that the transient will not be used (and thus that data will be updated).

    Then to insure that API rate limit is not reached:

    
    $token = '...'  
    $args = array(
      'headers'     => array(
        'Authorization' => 'Bearer ' . $token,                                                        ),
    );
    
     $request = wp_remote_get( 'https://api.github.com/repos/' . $slug, $args);
    
    

    with $token the value of your personal token (see https://github.com/settings/tokens).

    Worked for me.

    Cheers

    Nicolas

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Error: API rate limit exceeded’ is closed to new replies.