InterNetX / java-domainrobot-sdk

A maven package for easy integration of the Domainrobot API powered by InterNetX GmbH.
MIT License
1 stars 4 forks source link

Creating zone always returns with exception #15

Closed andlinger closed 4 years ago

andlinger commented 4 years ago

No matter if name servers are specified or not.

2020-08-18 13:23:15,776 SEVERE [a.t.w.b.s.BaseDomainrobotService] (executor-thread-207) Failed to contact AutoDNS api!: 20200818-app1-demo-32891 EF02052 : Nameserver wurde doppelt angegeben.
    at org.domainrobot.sdk.client.clients.AbstractClient.handleException(AbstractClient.java:173)
    at org.domainrobot.sdk.client.clients.ZoneClient.create(ZoneClient.java:50)
Ephenodrom commented 4 years ago

Hello @andlinger

We will take a look into this. Do you have a code example to reproduce this problem? The request body for 20200818-app1-demo-32891 was not logged on the demo system. Now I have no idea how the JSON body looked like in your request.

andlinger commented 4 years ago

Excuse me. That was my fault. But when creating a zone, which will be visible in the AutoDNS panel afterwards, a NullPointerException always happens when returning the zone object

2020-08-18 15:12:11,002 SEVERE [a.t.w.b.s.BaseDomainrobotService] (executor-thread-199) Failed to contact AutoDNS api!: java.lang.NullPointerException
    at org.domainrobot.sdk.client.clients.ZoneClient.create(ZoneClient.java:52)
andlinger commented 4 years ago

Any ideas @Ephenodrom?

Ephenodrom commented 4 years ago

@andlinger A new collegue of mine is working on this right now. I keep you updated!

Ephenodrom commented 4 years ago

Hello @andlinger

The NPE is fixed. The problem was that the ZoneClient create() method expected the created zone in the response. The API does currently not return the create zone in the response body.

This was fixed by the PR (#16) from Jabanto.

I created a new release so please update to 0.2.6.

Regards and have a nice weekend.