Running into an error when trying to print a shirt onto printify
The operation failed with an error. [400] variants.0.id: The variants.0.id must be an integer. | variants.1.id: The variants.1.id must be an integer. | variants.2.id: The variants.2.id must be an integer. | variants.3.id: The variants.3.id must be an integer. | variants.4.id: The variants.4.id must be an integer. | variants.5.id: The variants.5.id must be an integer. | variants.6.id: The variants.6.id must be an integer. | variants.7.id: The variants.7.id must be an integer. | variants.8.id: The variants.8.id must be an integer. | variants.9.id: The variants.9.id must be an integer. | variants.10.id: The variants.10.id must be an integer. | variants.11.id: The variants.11.id must be an integer.
Well, that definitely looks like an integer, but might be sent as a string type.
Try using parseNumber to force it into a number, and/or ensure no whitespace is after the numbers.
If you need further assistance, please provide the following:
1. Scenario blueprint
Please export the scenario blueprint file to allow others to view the mappings and settings. At the bottom of the scenario editor, you can click on the three dots to find the Export Blueprint menu item.
(Note: Exporting your scenario will not include private information or keys to your connections)
Please provide the output bundles of the modules by running the scenario, then click the white speech bubble on the top-right of each module, save the bundle contents in your text editor as a bundle.json file, and upload it here into this discussion thread.
Providing the output bundles will allow others to replicate what is going on in the scenario even if they do not use the external service.
Following these steps will allow others to assist you here. Thanks!
Try using static values first, see what works and what doesn’t. Then you can figure out if its an issue with the data you are providing (so the workflow) or if its an issue at the side of printify.
This is the same issue as above, but a more… BASIC scenario… It’s something to do with stable diffusion mixed with printify i’m guessing? If i use generic chatgpt/openai it prints.
Solution: Had to add a “SLEEP” between uploading the image on printify and creating the product for 60 seconds. Gives time for the image to upload and update!
Not sure how to close this but if there is a way feel free to tag me and I’ll close it out.
just thought I might step in and pat you on the back for the great job you did while figuring out these troubles with the help of our amazing @Bjorn.drivn and @samliew.
Thank you so much for coming back here and sharing the solution with us. This way we keep our community tidy and neat for other users and their search for solutions.