From fb9f03c0223eddc9fefc85d852722006e723ba06 Mon Sep 17 00:00:00 2001 From: Babar Shahzad Date: Mon, 17 Oct 2022 12:40:10 +0500 Subject: [PATCH] Update Constanstants Chunk size modified from 104 Mb to 50Mb as API was not accepting a number higher than that and throwing EOF exception etc --- src/main/java/com/ebay/feed/constants/Constants.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/ebay/feed/constants/Constants.java b/src/main/java/com/ebay/feed/constants/Constants.java index 126fb28..914a2e1 100755 --- a/src/main/java/com/ebay/feed/constants/Constants.java +++ b/src/main/java/com/ebay/feed/constants/Constants.java @@ -24,7 +24,7 @@ public class Constants { public static final String FEED_API_SANDBOX_BASE = "https://api.sandbox.ebay.com/buy/feed/v1_beta/"; // max content that can be downloaded in one request, in bytes - public static final Long PROD_CHUNK_SIZE = 104857600L; + public static final Long PROD_CHUNK_SIZE = 50000000L; public static final Long SANDBOX_CHUNK_SIZE = 10485760L; // timeout for http client