We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
When I try to execute the following:
new CustomHostnames($this->adapter)->addHostname( "zone_id", "mydomain.com", );
I get the error message: Unable to decode the JSON request body. Please check your input and try again..
Unable to decode the JSON request body. Please check your input and try again.
I tried to modify the addHostname-function and remove the ssl-array, and by doing that, I could successfully create a custom hostname.
addHostname
I am using a free-plan account on cloudflare.
The text was updated successfully, but these errors were encountered:
Same for me, removing
// 'ssl' => [ // 'method' => $sslMethod, // 'type' => $sslType, // 'settings' => $sslSettings, // 'wildcard' => $wildcard, // ],
fix the issue on free plan
Solution is to change this in the package array $sslSettings = [], to array|null $sslSettings = null,
array $sslSettings = [],
array|null $sslSettings = null,
Sorry, something went wrong.
If anyone want my fix
update your composer.json
require "cloudflare/sdk": "dev-patch-addHostname"
"cloudflare/sdk": "dev-patch-addHostname"
and add
"repositories": { "repo-name": { "type": "vcs", "url": "https://github.com/arommelaere/cloudflare-php" } }
then composer update
No branches or pull requests
When I try to execute the following:
I get the error message:
Unable to decode the JSON request body. Please check your input and try again.
.I tried to modify the
addHostname
-function and remove the ssl-array, and by doing that, I could successfully create a custom hostname.I am using a free-plan account on cloudflare.
The text was updated successfully, but these errors were encountered: