Skip to content

UnresolvedApiException in ApiProvider.php line 82: #645

Closed

Description

@EwanValentine

Apologies, me again!

I'm using CloudFront and I'm getting errors regarding the API version? I have the following code:

        $expires = time() + $expires;
        $host = 'http://cdn.myurl.com';

        return CloudFrontClient::factory(array(
            'private_key' => '../pk-[REDACTED].pem',
            'key_pair_id' => '[REDACTED]',
            'url'         => $host . '/' . $key,
            'expires'     => $expires,
            'region'      => 'eu-west-1',
            'version'     => '2015-06-17', 
        ));

I've removed sensitive data from that code, but you get the idea. I've tried several different combinations, but I keep getting the following exception:

UnresolvedApiException in ApiProvider.php line 82:
The cloudfront service does not have version: 2015-06-17.

Cheers in advance!

Activity

  1. jeskew commented on Jun 23, 2015

    @jeskew
    Contributor

    The latest version of CloudFront available to the SDK looks like 2014-11-06. Are you trying to use features released on the 17th?

  2. EwanValentine commented on Jun 23, 2015

    @EwanValentine
    Author

    No I don't believe so. I upgraded the aws php sdk and the instantiation of the signed CloudFront url factory changed and I wasn't sure where to find the CloudFront API version. I'll try the version you just suggested and report back, cheers!

  3. EwanValentine commented on Jun 23, 2015

    @EwanValentine
    Author

    That's kind of worked, but now I'm getting

    \nFatal error: syntax error, unexpected T_YIELD in /home/forge/default/vendor/aws/aws-sdk-php/src/Credentials/InstanceProfileProvider.php on line 50
    
  4. EwanValentine commented on Jun 23, 2015

    @EwanValentine
    Author

    Sorry, I think that's HHVM related. Thanks for the help!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions