Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

internal server error on example code for authorization #6

Open
omer-sds opened this issue Jan 30, 2017 · 1 comment
Open

internal server error on example code for authorization #6

omer-sds opened this issue Jan 30, 2017 · 1 comment

Comments

@omer-sds
Copy link

getting continuous internal server error on the example code after error replacing the client_id, secret and redirect_uri. i get error on creating the object for KeyValuePair Class $keyValueStore = new KeyValueStore(new NullAdapter());, even wrapping it inside the try catch statement doesnt show me the actual error that is occurring see below

use AdammBalogh\Box\Client\OAuthClient;
use AdammBalogh\KeyValueStore\KeyValueStore;
use AdammBalogh\KeyValueStore\Adapter\NullAdapter;
use AdammBalogh\Box\Exception\ExitException;
use AdammBalogh\Box\Exception\OAuthException;
use GuzzleHttp\Exception\ClientException;


$clientId = 'MY_CLIENT_ID';
$clientSecret = 'MY_SECRET';
$redirectUri = 'my_uri';

try{
    $keyValueStore = new KeyValueStore(new NullAdapter());
    $oAuthClient = new OAuthClient($keyValueStore, $clientId, $clientSecret, $redirectUri);
} catch (\Exception $ex) {
    echo $ex->getMessage();
}

my Composer.json looks like following and i have added the repos for the null adapter and the memory both,

{
    "require":{
        "adammbalogh/box-sdk": "0.5.0",
        "adammbalogh/key-value-store-null":"0.5.0",
        "adammbalogh/key-value-store-memory":"0.5.0"
    }
}

@AbdulHaye
Copy link

I've faced this too

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants