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

parameter_absent exception #228

Open
MincDev opened this issue Nov 17, 2020 · 0 comments
Open

parameter_absent exception #228

MincDev opened this issue Nov 17, 2020 · 0 comments

Comments

@MincDev
Copy link

MincDev commented Nov 17, 2020

I am using the Mautic library but getting the following error when making a call.

{"message":"Looks like I encountered an error (error #400). If I do it again, please report me to the system administrator!","code":400,"type":null}

The logs show the following:

[2020-11-17 08:38:09] mautic.ERROR: Uncaught PHP Exception Symfony\Component\HttpKernel\Exception\HttpException: "parameter_absent" at /home/my-mautic/public_html/vendor/willdurand/oauth-server-bundle/Service/OAuthServerService.php line 109 {"exception":"[object] (Symfony\\Component\\HttpKernel\\Exception\\HttpException(code: 0): parameter_absent at /home/my-mautic/public_html/vendor/willdurand/oauth-server-bundle/Service/OAuthServerService.php:109)"} []

Not sure what I am missing here. This is the code I am using as per the documentation:

$initAuth       = new ApiAuth();
$this->auth     = $initAuth->newAuth([
            'baseUrl'      => 'https://my-mautic-address.com/api',
            'version'      => 'OAuth1a',
            'clientKey'    => \Bin\Config::MAUTIC_CONSUMER_KEY,
            'clientSecret' => \Bin\Config::MAUTIC_CONSUMER_SECRET,
            'callback'     => \Bin\Config::MAUTIC_CALLBACK_URL
]);

$this->apiUrl   = "https://my-mautic-address.com/api";
$this->mautic   = new MauticApi();

Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

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

1 participant