Open jwcha1030 opened 3 years ago
still testing. if i don't update in a couple days make sure to ask what the status is
if uploading more than 40 images at a time is an issue, I'll try submitting in smaller numbers multiple times. Lemme know your decision.
Heroku has a 30 second timeout that I can't change. It seems like you'll have to split up the call. You could try calling "editAll" for the first 15 images, and then call "addList" for the rest of the images 15 at a time
(the num_of_files for the first editAll should match the number of images that you are sending in that specific api call not the total images)
I haven't implemented split up calls on "editAll", but I did on the "addAll" with a limit of 15 images per API call. I get a rescode 0 error.
Implementation and test is done as follows:
Question: Do consecutive "addListCollectionItemCatalogDisplayImages API call" append images to the prior calls in the db?
Figure 1: Function that split up API calls based on maxImagesPerPost=15
Figure 2: Function that calls addListCollectionItemCatalogDisplayImages API
for add list, index always starts at 0 and will append to the end of the list of current catalogdisplayimages
then, should consecutive calls of addList work as it should in editList? I get rescode error for unknown reason
AddList call bug:
Test1
Test2
UPDATE: AddList works in terms of uploading images. BUT, the upload is not in order due to asynchronous uploads.
Tested out editAll, addList call returns rescode=0.
Process (tested out with max 5 images per call):
*Note that addList input is from index=0.
Rescode=0 error occurs when I upload more than 35 images at once via either of the two API calls.
Test with 35 images: SUCCESS
Test with 36 images or above: Fail