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

Changed Content Type from form to json in Server Model #2

Merged
merged 1 commit into from
Feb 5, 2018

Conversation

jmjmjm
Copy link
Contributor

@jmjmjm jmjmjm commented Feb 3, 2018

No description provided.

@LKaemmerling
Copy link
Collaborator

Hello,

first thank you for your contribution. But the API doesn't expect json, it expect the Params as clean HTTP Parameters.

Thank you!

@jmjmjm
Copy link
Contributor Author

jmjmjm commented Feb 4, 2018

Hey,

beim Aufruf von "changeReverseDNS" erhalte ich folgenden Fehler zurück:

PHP Fatal error: Uncaught GuzzleHttp\Exception\ClientException: Client error: `POST https://api.hetzner.cloud/v1/servers/123567/actions/change_dns_ptr` resulted in a `400 Bad Request` response: { "error": { "message": "Content-Type must be set to application/json", "code": "json_error", "details": n (truncated...) in /vendor/guzzlehttp/guzzle/src/Exception/RequestException.php:113

Wenn ich form_params in json ändere, geht der Call durch.

@LKaemmerling
Copy link
Collaborator

LKaemmerling commented Feb 4, 2018 via email

@LKaemmerling LKaemmerling reopened this Feb 4, 2018
@LKaemmerling
Copy link
Collaborator

Lokal sah es soweit gut aus! Danke

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

Successfully merging this pull request may close these issues.

2 participants