App submission fails when trying to insert Theme Snippet

Tourist
4 0 0

Hello,

I'm developing an App that has to insert a particular snippet of code into the Store Theme. There is no problem with doing it in my test store. On the other hand, it always fails in the review store, regardless if I'm inserting the snippet or not. Even executing this code, with should do nothing to the theme

layout = ShopifyAPI::Asset.find('layout/theme.liquid', params: { theme_id: t.id })
layout.save

raises a 

" 400.  Response message = Bad Request (783: unexpected token at ...(whole theme code here) "

Whats am I doing wrong? Has anyone had this problem before? Why can't I insert my snippet of code in the review store but can do it on my test store?

0 Likes