cloudflare / cloudflare/cloudflare-php

Custom hostnames - addHostname does not work

Open
#230 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
PHP
Stars
674
Forks
268
PR merge metrics
No merged PRs in 30d

Description

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.`.

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.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.