-
Notifications
You must be signed in to change notification settings - Fork 8
Unexplained error modifyZoneDnsRequest #10
Comments
It's strange it works with the exact same params in Postman, are you sure the laravel-openprovider/src/HttpClient/HttpClient.php Lines 60 to 72 in 1ecb789
|
Yes, exactly the same! A dump of $body: |
Odd, I don't think I can help you much more, did you tried contacting OpenProvider, it's the 'resolution' on their api-error-codes page
Thanks! |
First of all thanks for this great package!
I encountered a strange error while using modifyZoneDnsRequest.
An existing DNS record can be changed without any problems, but the moment you want to add a DNS record, Open Provider returns an error ("An unknown error has occurred!").
When I run the same params in Postman, the new DNS record is created without any problems.
Below my params for changing a DNS record:
{ "id": "12345678", "name": "domain.cloud", "records": { "replace": [ { "name": "test01", "ttl": 3600, "type": "A", "value": "123.456.789.123" } ] } }
Below my params for adding a DNS record:
{ "id": "12345678", "name": "domain.cloud", "records": { "add": [ { "name": "test02", "ttl": 3600, "type": "A", "value": "123.456.789.123" } ] } }
The error message I get back from Open Provider:
array:1 [ "reply" => array:3 [ "code" => "199" "desc" => "An unknown error has occurred!" "data" => [] ] ]
The text was updated successfully, but these errors were encountered: