sp-api使用excle上传商品

sp-api使用excle上传商品

CreateFeedDocumentSpecification documentSpecification = new CreateFeedDocumentSpecification();
            documentSpecification.setContentType(contentType);
            CreateFeedDocumentResponse documentResponse = feedsApi.createFeedDocument(documentSpecification);
            String documentId = documentResponse.getPayload().getFeedDocumentId();
            String url = documentResponse.getPayload().getUrl();

            //上传
            OkHttpClient client = new OkHttpClient();
            Request request = new Request.Builder()
                        .url(url)
                        .put(RequestBody.create(MediaType.parse(contentType), new File(path)))
                        .build();

            Response response = client.newCall(request).execute();
            
            //创建feed
            CreateFeedSpecification createFeedSpecification = new CreateFeedSpecification();
            createFeedSpecification.setFeedType("POST_FLAT_FILE_LISTINGS_DATA");
            createFeedSpecification.setInputFeedDocumentId(documentId);
            createFeedSpecification.setMarketplaceIds(marketplaceIds);
            CreateFeedResponse createFeedResponse = feedsApi.createFeed(createFeedSpecification);

上传报告提示错误:The uploaded document has an illegal block size.