alibaba/nacos · error · NacosRuntimeException

${responseException.getMessage()}

Error message

${responseException.getMessage()}

What it means

Error "${responseException.getMessage()}" thrown in alibaba/nacos.

Solutions

  1. Review the input and runtime state for config import remote error, correct the reported problem, and retry.

When it happens

Trigger: Thrown at console/src/main/java/com/alibaba/nacos/console/handler/impl/remote/config/ConfigImportAndExportService.java:128 when the library encounters an invalid state.

Common situations: The remote server returned an error during config import.


AI-assisted analysis of alibaba/nacos@9b989acdf1 (2026-08-14). Data as JSON: /api/errors/0e14b9773de45201. Report an issue: GitHub.

Appendix: source

Thrown at console/src/main/java/com/alibaba/nacos/console/handler/impl/remote/config/ConfigImportAndExportService.java:128

            String contentTypeString =
                null == importFile.getContentType() ? MediaType.MULTIPART_FORM_DATA_VALUE
                    : importFile.getContentType();
            ContentType contentType = ContentType.create(contentTypeString, Constants.ENCODE);
            MultipartEntityBuilder multipartEntityBuilder = MultipartEntityBuilder.create();
            multipartEntityBuilder.addBinaryBody("file", importFile.getInputStream(), contentType,
                importFile.getOriginalFilename());
            multipartEntityBuilder.addTextBody("policy", policy.name(), contentType);
            HttpEntity entity = multipartEntityBuilder.build();
            httpPost.setEntity(entity);
            String executeResult =
                httpClient.execute(httpPost, new BasicHttpClientResponseHandler());
            return JacksonUtils.toObj(executeResult, new TypeReference<>() {
            });
        } catch (HttpResponseException responseException) {
            LOGGER.error("Import config to server {} failed with code {}: ",
                serverMember.getAddress(),
                responseException.getStatusCode());
            throw new NacosRuntimeException(responseException.getStatusCode(),
                responseException.getMessage());
        } catch (IOException | URISyntaxException e) {
            LOGGER.error("Import config to server {} failed: ", serverMember.getAddress(), e);
            throw new NacosRuntimeException(NacosException.SERVER_ERROR,
                "Import config to server failed.");
        }
    }
    
    /**
     * Do export config to from server.
     *
     * @param dataId        data id of export config
     * @param group         group name of export config
     * @param namespaceId   namespace of export config
     * @param appName       app name of export config
     * @param ids           storage id of export config
     * @return export file entity
     * @throws Exception    any exception during export config

View on GitHub (pinned to 9b989acdf1)