You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on May 22, 2023. It is now read-only.
Could you please help me. I am trying to create TXT record using TonicDNS Api, when trying to create it with request body {"records":[{"name":"testtest.ru","type":"TXT","content":"hello","priority":null}]} I got error with message "Record content is not valid. A TXT record must provide a valid quoted string." after adding quotes and escaping them according to JSON escaping rules I got request body {"records":[{"name":"testtest.ru","type":"TXT","content":""hello"","priority":null}]} and response with code BODY_MALFORMED
This makes me believe, that you have some special escaping rules in your JSON parsing library. So how exactly should I form request body for TXT record type.
Thank you.
The text was updated successfully, but these errors were encountered:
Thanks for your response. We have found the source of the error. We set wrong request body type (application/JSON instead of application/json), so code tried to determine proper type by using regexp which apperently doesn't take in consideration possible string escaping.
We also found more crucial thing that might be good to fix. Your validation rules in Validators.class.php doesn't support usage of IDN domains even after you convert them to puny code. Reason is that top level domain name for such domain can be something like .xn--p1ai and your validators don't allow numbers and dashes. Fix is pretty straight forward: we changed all [A-Z]{2,61} to [A-Z0-9-]
Hello,
Could you please help me. I am trying to create TXT record using TonicDNS Api, when trying to create it with request body {"records":[{"name":"testtest.ru","type":"TXT","content":"hello","priority":null}]} I got error with message "Record content is not valid. A TXT record must provide a valid quoted string." after adding quotes and escaping them according to JSON escaping rules I got request body {"records":[{"name":"testtest.ru","type":"TXT","content":""hello"","priority":null}]} and response with code BODY_MALFORMED
This makes me believe, that you have some special escaping rules in your JSON parsing library. So how exactly should I form request body for TXT record type.
Thank you.
The text was updated successfully, but these errors were encountered: