Closed mashpie closed 4 years ago
Hi
thank you for reporting this issue. We have adjusted the validation check for API results inside the DomainRobot SDK which have been to strict for some cases/results resulting in the error you reported above. The behaviour of the SDK should be as expected om Version 0.2.2.
Have a nice day!
perfect thanks! I can confirm it's working :)
stay healthy!
Debugged a recent wired behaviour: Zone-Updates return with exception 500 "TypeError: Cannot read property 'data' of undefined" but the update got committed to DNS Server.
DomainRobotResult returns invalid at https://github.com/InterNetX/js-domainrobot-sdk/blob/master/src/lib/DomainRobotResult.js#L12
because returned payload does not include any
data
property at top level (but atobject.data
):reproduced workflow
returns 200 correctly:
next let's try an update:
with payload of:
also return with 200, but aims to be inValid:
which results in Exception:
Ok, easy to catch - but still SDK won't return any valid result on such an update request. Can't tell whether api itself or
DomainRobotResult
is misbehaving. So please, could you check to review?