Custom hostnames - addHostname does not work
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 35/100
Research direction
Start by reproducing the documented CustomHostnames::addHostname call against a free-plan Cloudflare account, then inspect how the function builds its SSL-related request data. Compare the request that fails with the modified version that succeeds; done means custom hostname creation works without removing required input.
Written by the indexing model from the issue text.
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.
- Dominant language
- PHP
- Stars
- 674
- Forks
- 268
- PR merge metrics
- No merged PRs in 30d
Getting set up
- No Dockerfile or Docker Compose file
- No pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from cloudflare/cloudflare-php
-
Difficulty 1/5 Under an hour Newbie friendliness 68/100
cloudflare/cloudflare-php#202 · 1 reaction ·
-
setEmailObfuscation have wrong configuration id.Possibly taken @emersonreisdev claimed this 2020 days ago. Open
Difficulty 1/5 Under an hour Newbie friendliness 65/100
cloudflare/cloudflare-php#156 ·
-
Difficulty 5/5 Over a week Newbie friendliness 25/100
cloudflare/cloudflare-php#278 · 5 reactions ·
-
Difficulty 3/5 1-2 days Newbie friendliness 35/100
cloudflare/cloudflare-php#272 · 1 comment ·
-
Difficulty 5/5 Over a week Newbie friendliness 20/100
cloudflare/cloudflare-php#264 ·
All issues in cloudflare/cloudflare-php
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
Maintainers usually reply within 1 day
-
🧠 Admin
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
Maintainers usually reply within 1 day
-
Difficulty 1/5 Under an hour Newbie friendliness 90/100
pluginsGLPI/tag#389 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 Under an hour Newbie friendliness 78/100
opencart/opencart#15763 · 2 comments · 1 reaction ·
Maintainers usually reply within 1 day
-
support
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
opnsense/core#10976 · 4 comments ·
Maintainers usually reply within 1 day