Closed pmaojo closed 5 years ago
Which version of Spree do you use, @pmaojo? Also, are you using default settings in Spree?
Hi @tniezg 3.7.stable. I clicked on Deploy to Heroku button on Spree github and made no changes to spree code o settings yet.
Suddenly it imported without error... I don't know why, I didn't make any change. I will continue, need to test now if products are indeed on the storefront API db and retrieved by frontend
Maybe related to docker versions, I set 3.5 everywhere
It looks like a Spree issue or issue with the database connected to Spree. Can't tell for sure. @pmaojo, please let us know it everything's fine after testing. If not, we'll look into it some more.
@tniezg It came back again. I will keep trying and let you know any issue
{"data":[{"id":"3","type":"product","attributes":{"name":"Ruby on Rails Baseball Jersey","description":"Aut pariatur autem consequatur delectus consequuntur aut. Esse quas repellat possimus magni. Consequatur iure illum quibusdam rerum cumque aut est hic. Iure et modi aut ut omnis. Sed et delectus et placeat quos illum magni consequatur.","price":"19.99","currency":"USD","display_price":"$19.99","available_on":"2019-06-11T10:34:03.626Z","slug":"ruby-on-rails-baseball-jersey","meta_description":null,"meta_keywords":null,"updated_at":"2019-06-11T10:34:14.043Z","purchasable":true,"in_stock":true,"backorderable":true},"relationships":{"variants":{"data":[{"id":"17","type":"variant"},{"id":"18","type":"variant"},{"id":"19","type":"variant"},{"id":"20","type":"variant"},{"id":"21","type":"variant"},{"id":"22","type":"variant"},{"id":"23","type":"variant"},{"id":"24","type":"variant"},{"id":"25","type":"variant"},{"id":"26","type":"variant"}]},"option_types":{"data":[{"id":"1","type":"option_type"},{"id":"2","type":"option_type"}]},"product_properties":{"data":[{"id":"1","type":"product_property"},{"id":"2","type":"product_property"},{"id":"3","type":"product_property"},{"id":"4","type":"product_property"},{"id":"5","type":"product_property"},{"id":"6","type":"product_property"},{"id":"7","type":"product_property"},{"id":"8","type":"product_property"}]},"taxons":{"data":[{"id":"7","type":"taxon"},{"id":"11","type":"taxon"}]},"images":{"data":[]},"default_variant":{"data":{"id":"17","type":"variant"}}}},{"id":"1","type":"product","attributes":{"name":"Ruby on Rails Tote","description":"Maxime rerum incidunt ipsam cum laboriosam. Dolore ipsam ipsum eos eius quasi libero. Culpa consequatur voluptatum nemo eius accusamus asperiores. Deserunt hic veritatis incidunt non id vel accusamus fugiat. Et aut omnis recusandae esse autem quam labore.","price":"15.99","currency":"USD","display_price":"$15.99","available_on":"2019-06-11T10:34:03.169Z","slug":"ruby-on-rails-tote","meta_description":null,"meta_keywords":null,"updated_at":"2019-06-11T10:34:14.104Z","purchasable":true,"in_stock":true,"backorderable":true},"relationships":{"variants":{"data":[]},"option_types":{"data":[]},"product_properties":{"data":[{"id":"25","type":"product_property"},{"id":"26","type":"product_property"},{"id":"27","type":"product_property"}]},"taxons":{"data":[{"id":"3","type":"taxon"},{"id":"11","type":"taxon"}]},"images":{"data":[]},"default_variant":{"data":{"id":"1","type":"variant"}}}},{"id":"2","type":"product","attributes":{"name":"Ruby on Rails Bag","description":"Iusto eos saepe est beatae aut et. Autem ad fuga eos voluptatum. Dignissimos consequatur dolorum aspernatur adipisci quam.","price":"22.99","currency":"USD","display_price":"$22.99","available_on":"2019-06-11T10:34:03.489Z","slug":"ruby-on-rails-bag","meta_description":null,"meta_keywords":null,"updated_at":"2019-06-11T10:34:14.185Z","purchasable":true,"in_stock":true,"backorderable":true},"relationships":{"variants":{"data":[]},"option_types":{"data":[]},"product_properties":{"data":[{"id":"28","type":"product_property"},{"id":"29","type":"product_property"},{"id":"30","type":"product_property"}]},"taxons":{"data":[{"id":"3","type":"taxon"},{"id":"11","type":"taxon"}]},"images":{"data":[]},"default_variant":{"data":{"id":"2","type":"variant"}}}},{"id":"4","type":"product","attributes":{"name":"Ruby on Rails Jr. Spaghetti","description":"Laboriosam enim debitis quis ipsam optio. Sed ab voluptatem nisi eum enim. Asperiores nulla quisquam veniam et recusandae corporis dicta non. Culpa ut consequatur voluptatibus exercitationem consectetur sint eligendi labore. Repellat nam cum velit deserunt tempore assumenda omnis.","price":"19.99","currency":"USD","display_price":"$19.99","available_on":"2019-06-11T10:34:03.753Z","slug":"ruby-on-rails-jr-spaghetti","meta_description":null,"meta_keywords":null,"updated_at":"2019-06-11T10:34:14.264Z","purchasable":true,"in_stock":true,"backorderable":true},"relationships":{"variants":{"data":[]},"option_types":{"data":[]},"product_properties":{"data":[{"id":"9","type":"product_property"},{"id":"10","type":"product_property"},{"id":"11","type":"product_property"},{"id":"12","type":"product_property"},{"id":"13","type":"product_property"},{"id":"14","type":"product_property"},{"id":"15","type":"product_property"},{"id":"16","type":"product_property"}]},"taxons":{"data":[{"id":"6","type":"taxon"},{"id":"11","type":"taxon"}]},"images":{"data":[]},"default_variant":{"data":{"id":"4","type":"variant"}}}},{"id":"13","type":"product","attributes":{"name":"Ruby on Rails Mug","description":"Doloremque sit aut aut ipsa ut dolorum nulla necessitatibus. Repellat qui accusantium aut eveniet consequuntur asperiores quod et. Nihil est id ex ad aliquam. Ipsam hic sunt et incidunt ipsa nobis. Maiores et officia excepturi recusandae adipisci beatae in.","price":"13.99","currency":"USD","display_price":"$13.99","available_on":"2019-06-11T10:34:05.069Z","slug":"ruby-on-rails-mug","meta_description":null,"meta_keywords":null,"updated_at":"2019-06-11T10:34:14.317Z","purchasable":true,"in_stock":true,"backorderable":true},"relationships":{"variants":{"data":[]},"option_types":{"data":[]},"product_properties":{"data":[{"id":"31","type":"product_property"},{"id":"32","type":"product_property"}]},"taxons":{"data":[{"id":"4","type":"taxon"},{"id":"11","type":"taxon"}]},"images":{"data":[]},"default_variant":{"data":{"id":"13","type":"variant"}}}},{"id":"5","type":"product","attributes":{"name":"Ruby on Rails Ringer T-Shirt","description":"Excepturi enim commodi ut reprehenderit deserunt. Deserunt et rerum molestiae rerum sit culpa aut vero. Nihil qui quidem aut numquam rerum nulla.","price":"19.99","currency":"USD","display_price":"$19.99","available_on":"2019-06-11T10:34:03.893Z","slug":"ruby-on-rails-ringer-t-shirt","meta_description":null,"meta_keywords":null,"updated_at":"2019-06-11T10:34:14.367Z","purchasable":true,"in_stock":true,"backorderable":true},"relationships":{"variants":{"data":[]},"option_types":{"data":[]},"product_properties":{"data":[{"id":"17","type":"product_property"},{"id":"18","type":"product_property"},{"id":"19","type":"product_property"},{"id":"20","type":"product_property"},{"id":"21","type":"product_property"},{"id":"22","type":"product_property"},{"id":"23","type":"product_property"},{"id":"24","type":"product_property"}]},"taxons":{"data":[{"id":"7","type":"taxon"},{"id":"11","type":"taxon"}]},"images":{"data":[]},"default_variant":{"data":{"id":"5","type":"variant"}}}},{"id":"8","type":"product","attributes":{"name":"Spree Baseball Jersey","description":"Laborum non laboriosam iure itaque aut. Incidunt sed at velit qui officiis aut. At qui doloribus voluptatum ut et. Velit praesentium sequi quod vitae amet earum quibusdam. Sint molestiae repudiandae tempora minima sunt.","price":"19.99","currency":"USD","display_price":"$19.99","available_on":"2019-06-11T10:34:04.281Z","slug":"spree-baseball-jersey","meta_description":null,"meta_keywords":null,"updated_at":"2019-06-11T10:34:14.585Z","purchasable":true,"in_stock":true,"backorderable":true},"relationships":{"variants":{"data":[]},"option_types":{"data":[{"id":"1","type":"option_type"},{"id":"2","type":"option_type"}]},"product_properties":{"data":[{"id":"43","type":"product_property"},{"id":"44","type":"product_property"},{"id":"45","type":"product_property"},{"id":"46","type":"product_property"},{"id":"47","type":"product_property"},{"id":"48","type":"product_property"},{"id":"49","type":"product_property"},{"id":"50","type":"product_property"}]},"taxons":{"data":[{"id":"7","type":"taxon"},{"id":"10","type":"taxon"}]},"images":{"data":[]},"default_variant":{"data":{"id":"8","type":"variant"}}}},{"id":"14","type":"product","attributes":{"name":"Ruby on Rails Stein","description":"Reiciendis ea delectus dolorem iste ut. Perferendis mollitia temporibus inventore maiores. Exercitationem explicabo commodi iure qui inventore ipsa. Sunt dolorum quod et fugit consequatur eligendi. Commodi cum rerum libero quasi et minus rerum ullam.","price":"16.99","currency":"USD","display_price":"$16.99","available_on":"2019-06-11T10:34:05.192Z","slug":"ruby-on-rails-stein","meta_description":null,"meta_keywords":null,"updated_at":"2019-06-11T10:34:14.421Z","purchasable":true,"in_stock":true,"backorderable":true},"relationships":{"variants":{"data":[]},"option_types":{"data":[]},"product_properties":{"data":[{"id":"33","type":"product_property"},{"id":"34","type":"product_property"}]},"taxons":{"data":[{"id":"4","type":"taxon"},{"id":"11","type":"taxon"}]},"images":{"data":[]},"default_variant":{"data":{"id":"14","type":"variant"}}}},{"id":"7","type":"product","attributes":{"name":"Apache Baseball Jersey","description":"Excepturi consequatur impedit et voluptate. Maiores repudiandae voluptas adipisci esse accusantium. Et quo officiis qui sed quia.","price":"19.99","currency":"USD","display_price":"$19.99","available_on":"2019-06-11T10:34:04.159Z","slug":"apache-baseball-jersey","meta_description":null,"meta_keywords":null,"updated_at":"2019-06-11T10:34:14.479Z","purchasable":true,"in_stock":true,"backorderable":true},"relationships":{"variants":{"data":[]},"option_types":{"data":[]},"product_properties":{"data":[]},"taxons":{"data":[{"id":"7","type":"taxon"},{"id":"9","type":"taxon"}]},"images":{"data":[]},"default_variant":{"data":{"id":"7","type":"variant"}}}},{"id":"6","type":"product","attributes":{"name":"Ruby Baseball Jersey","description":"Doloribus eius ut et rerum non assumenda et. Dicta ea odio aut laborum enim. Qui qui nihil deleniti culpa fuga ducimus soluta. Omnis doloribus aut quia harum.","price":"19.99","currency":"USD","display_price":"$19.99","available_on":"2019-06-11T10:34:04.030Z","slug":"ruby-baseball-jersey","meta_description":null,"meta_keywords":null,"updated_at":"2019-06-11T10:34:14.538Z","purchasable":true,"in_stock":true,"backorderable":true},"relationships":{"variants":{"data":[]},"option_types":{"data":[]},"product_properties":{"data":[]},"taxons":{"data":[{"id":"7","type":"taxon"},{"id":"8","type":"taxon"}]},"images":{"data":[]},"default_variant":{"data":{"id":"6","type":"variant"}}}},{"id":"15","type":"product","attributes":{"name":"Spree Stein","description":"Ad et consequatur neque sit tenetur. Exercitationem enim eos dignissimos esse. Quia aut aut qui quibusdam est mollitia.","price":"16.99","currency":"USD","display_price":"$16.99","available_on":"2019-06-11T10:34:05.317Z","slug":"spree-stein","meta_description":null,"meta_keywords":null,"updated_at":"2019-06-11T10:34:14.642Z","purchasable":true,"in_stock":true,"backorderable":true},"relationships":{"variants":{"data":[]},"option_types":{"data":[]},"product_properties":{"data":[{"id":"35","type":"product_property"},{"id":"36","type":"product_property"}]},"taxons":{"data":[{"id":"4","type":"taxon"},{"id":"10","type":"taxon"}]},"images":{"data":[]},"default_variant":{"data":{"id":"15","type":"variant"}}}},{"id":"9","type":"product","attributes":{"name":"Spree Jr. Spaghetti","description":"Voluptatibus sit eaque quia earum. Quas quam laborum est ut voluptate minima. Maxime illo ut amet illum hic dignissimos. Qui et et rem fugit vitae. Omnis et voluptatem at pariatur delectus officiis excepturi.","price":"19.99","currency":"USD","display_price":"$19.99","available_on":"2019-06-11T10:34:04.428Z","slug":"spree-jr-spaghetti","meta_description":null,"meta_keywords":null,"updated_at":"2019-06-11T10:34:14.696Z","purchasable":true,"in_stock":true,"backorderable":true},"relationships":{"variants":{"data":[]},"option_types":{"data":[]},"product_properties":{"data":[{"id":"51","type":"product_property"},{"id":"52","type":"product_property"},{"id":"53","type":"product_property"},{"id":"54","type":"product_property"},{"id":"55","type":"product_property"},{"id":"56","type":"product_property"},{"id":"57","type":"product_property"},{"id":"58","type":"product_property"}]},"taxons":{"data":[{"id":"6","type":"taxon"},{"id":"10","type":"taxon"}]},"images":{"data":[]},"default_variant":{"data":{"id":"9","type":"variant"}}}},{"id":"16","type":"product","attributes":{"name":"Spree Mug","description":"Error nihil incidunt sunt esse. Qui magni consectetur praesentium nobis. Sunt aut quo beatae alias. Aliquid dignissimos voluptatem nesciunt velit quo culpa.","price":"13.99","currency":"USD","display_price":"$13.99","available_on":"2019-06-11T10:34:05.465Z","slug":"spree-mug","meta_description":null,"meta_keywords":null,"updated_at":"2019-06-11T10:34:14.746Z","purchasable":true,"in_stock":true,"backorderable":true},"relationships":{"variants":{"data":[]},"option_types":{"data":[]},"product_properties":{"data":[{"id":"37","type":"product_property"},{"id":"38","type":"product_property"}]},"taxons":{"data":[{"id":"4","type":"taxon"},{"id":"10","type":"taxon"}]},"images":{"data":[]},"default_variant":{"data":{"id":"16","type":"variant"}}}},{"id":"10","type":"product","attributes":{"name":"Spree Ringer T-Shirt","description":"Dolor sunt occaecati et fuga aspernatur. Aut quos sequi id similique animi amet. Et deleniti nostrum recusandae repellat. Aliquam nobis qui molestiae est explicabo autem. Aperiam illum eveniet iure et et in qui qui.","price":"19.99","currency":"USD","display_price":"$19.99","available_on":"2019-06-11T10:34:04.615Z","slug":"spree-ringer-t-shirt","meta_description":null,"meta_keywords":null,"updated_at":"2019-06-11T10:34:14.800Z","purchasable":true,"in_stock":true,"backorderable":true},"relationships":{"variants":{"data":[]},"option_types":{"data":[]},"product_properties":{"data":[{"id":"59","type":"product_property"},{"id":"60","type":"product_property"},{"id":"61","type":"product_property"},{"id":"62","type":"product_property"},{"id":"63","type":"product_property"},{"id":"64","type":"product_property"},{"id":"65","type":"product_property"},{"id":"66","type":"product_property"}]},"taxons":{"data":[{"id":"7","type":"taxon"},{"id":"10","type":"taxon"}]},"images":{"data":[]},"default_variant":{"data":{"id":"10","type":"variant"}}}},{"id":"11","type":"product","attributes":{"name":"Spree Tote","description":"Sed voluptas et quibusdam harum qui et molestiae illo. Explicabo numquam accusantium provident cum doloribus sunt. Fugit perferendis qui ut voluptatem. Ut quia aut vel consequatur ipsam harum totam. Sit rerum illum libero quia officia reprehenderit.","price":"15.99","currency":"USD","display_price":"$15.99","available_on":"2019-06-11T10:34:04.781Z","slug":"spree-tote","meta_description":null,"meta_keywords":null,"updated_at":"2019-06-11T10:34:14.848Z","purchasable":true,"in_stock":true,"backorderable":true},"relationships":{"variants":{"data":[]},"option_types":{"data":[]},"product_properties":{"data":[{"id":"39","type":"product_property"},{"id":"40","type":"product_property"}]},"taxons":{"data":[{"id":"3","type":"taxon"},{"id":"10","type":"taxon"}]},"images":{"data":[]},"default_variant":{"data":{"id":"11","type":"variant"}}}},{"id":"12","type":"product","attributes":{"name":"Spree Bag","description":"Voluptates rerum quos labore ea sit rerum. Delectus quae voluptatibus ut corrupti quo aut praesentium aut. Laboriosam accusamus possimus consequatur ipsum velit et nesciunt sequi.","price":"22.99","currency":"USD","display_price":"$22.99","available_on":"2019-06-11T10:34:04.929Z","slug":"spree-bag","meta_description":null,"meta_keywords":null,"updated_at":"2019-06-11T10:34:14.912Z","purchasable":true,"in_stock":true,"backorderable":true},"relationships":{"variants":{"data":[]},"option_types":{"data":[]},"product_properties":{"data":[{"id":"41","type":"product_property"},{"id":"42","type":"product_property"}]},"taxons":{"data":[{"id":"3","type":"taxon"},{"id":"10","type":"taxon"}]},"images":{"data":[]},"default_variant":{"data":{"id":"12","type":"variant"}}}}],"meta":{"count":16,"total_count":16,"total_pages":1},"links":{"self":"https://urltospree/api/v2/storefront/products","next":"https://urltospree/api/v2/storefront/products?page=1","prev":"https://urltospree/api/v2/storefront/products?page=1","last":"https://urltospree/api/v2/storefront/products?page=1","first":"https://urltospree/api/v2/storefront/products?page=1"}}
This is the data provided by Spree at /api/v2/storefront/products @tniezg
A single product:
{"data":{"id":"1","type":"product","attributes":{"name":"Ruby on Rails Tote","description":"Maxime rerum incidunt ipsam cum laboriosam. Dolore ipsam ipsum eos eius quasi libero. Culpa consequatur voluptatum nemo eius accusamus asperiores. Deserunt hic veritatis incidunt non id vel accusamus fugiat. Et aut omnis recusandae esse autem quam labore.","price":"15.99","currency":"USD","display_price":"$15.99","available_on":"2019-06-11T10:34:03.169Z","slug":"ruby-on-rails-tote","meta_description":null,"meta_keywords":null,"updated_at":"2019-06-11T10:34:14.104Z","purchasable":true,"in_stock":true,"backorderable":true},"relationships":{"variants":{"data":[]},"option_types":{"data":[]},"product_properties":{"data":[{"id":"25","type":"product_property"},{"id":"26","type":"product_property"},{"id":"27","type":"product_property"}]},"taxons":{"data":[{"id":"3","type":"taxon"},{"id":"11","type":"taxon"}]},"images":{"data":[]},"default_variant":{"data":{"id":"1","type":"variant"}}}}}
I am getting everything ok now