SteveHanna / Namecheap-dot-net

A .NET wrapper for the Namecheap API
MIT License
17 stars 13 forks source link

Bug - Setting new host on domain #1

Closed g0r4n closed 5 years ago

g0r4n commented 5 years ago

Class - DnsApi Method - SetHosts

Namecheap changed their api interface and one of the query parameters that was named "DnsRecordType" is now named "RecordType". That is the reason why API calls on namecheap will end up with response: "Object reference not set to an instance of an object.".

Solution

philipmat commented 5 years ago

Seems that class already uses "RecordType":

https://github.com/SteveHanna/Namecheap-dot-net/blob/master/NameCheap/Dns/DnsApi.cs#L31