{"record":{"id":"7b8a0394514c1d43","repo":"alibaba/nacos","slug":"400-7b8a03","errorCode":"400","errorMessage":"Required parameter 'ip' type String is not present","messagePattern":"Required parameter 'ip' type String is not present","errorType":"validation","errorClass":"NacosApiException","httpStatus":null,"severity":"error","filePath":"api/src/main/java/com/alibaba/nacos/api/naming/pojo/Instance.java","lineNumber":195,"sourceCode":"    }\n    \n    public void setEnabled(final boolean enabled) {\n        this.enabled = enabled;\n    }\n    \n    public boolean isEphemeral() {\n        return this.ephemeral;\n    }\n    \n    public void setEphemeral(final boolean ephemeral) {\n        this.ephemeral = ephemeral;\n    }\n    \n    @Override\n    public void validate() throws NacosApiException {\n        fillDefaultValue();\n        if (StringUtils.isBlank(ip)) {\n            throw new NacosApiException(NacosException.INVALID_PARAM, ErrorCode.PARAMETER_MISSING,\n                \"Required parameter 'ip' type String is not present\");\n        }\n        if (port < 0 || port > MAX_PORT) {\n            throw new NacosApiException(NacosException.INVALID_PARAM,\n                ErrorCode.PARAMETER_VALIDATE_ERROR,\n                \"Required parameter 'port' type int is require 0 ~ 65535\");\n        }\n    }\n    \n    private void fillDefaultValue() {\n        if (StringUtils.isBlank(clusterName)) {\n            clusterName = Constants.DEFAULT_CLUSTER_NAME;\n        }\n    }\n    \n    @Override\n    public String toString() {\n        return \"Instance{\" + \"instanceId='\" + instanceId + '\\'' + \", ip='\" + ip + '\\'' + \", port=\"","sourceCodeStart":177,"sourceCodeEnd":213,"githubUrl":"https://github.com/alibaba/nacos/blob/9b989acdf181d00898f2e8839257bb2b2a3cefe3/api/src/main/java/com/alibaba/nacos/api/naming/pojo/Instance.java#L177-L213","documentation":"Error \"Required parameter 'ip' type String is not present\" thrown in alibaba/nacos.","triggerScenarios":"Thrown at api/src/main/java/com/alibaba/nacos/api/naming/pojo/Instance.java:195 when the library encounters an invalid state.","commonSituations":"Building an Instance without the required ip parameter.","solutions":["Include the required parameter in the request and retry."],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"9b989acdf181d00898f2e8839257bb2b2a3cefe3","analyzedAt":"2026-08-14T07:17:31.569Z","schemaVersion":2},"datasetVersion":"2026-08-14T10:17:34.591Z"}