3.1.3使用stream load导入csv文件超过100kb无法导入

Viewed 11

同样导入代码在3.0.8和3.1.2执行成功
导入使用的是hutool-http
企业微信截图_17665648702415.png

        HttpResponse response = HttpRequest.of(url).method(Method.PUT).setFollowRedirects(true) // 关键:允许重定向
            .header(Header.AUTHORIZATION, basicAuth) //
            .header(Header.CONTENT_TYPE, "text/csv; charset=UTF-8") //
            .header("Expect", "100-continue") //
            .header("column_separator", ",") //
            .header("Content-Length", String.valueOf(file.length())) //
            .header("trim_double_quotes", "true") //
            .header("enclose", "\"") //
            .header("columns", "batch_id, file_id, row_no, xxx,  "
            .body(bytes)
            .timeout(60000) // 60秒超时(可根据需要调整)
            .execute();
1 Answers