Hi there. When using the REST API to put an asset, there appears to be flakiness in this call. Sometimes we receive this error response:
{"errors":{"asset":["Cannot overwrite generated asset 'assets\/theme.scss'."]}}
The HTTP code returned is: 422 Unprocessable Entity.
Here’s a part of the request:
PUT: https://
And then sometimes the put is fine. I've noticed when the put is fine, the message is returned in a "warnings" array, not "errors". It seems weird that sometimes it's a non-fatal warning and sometimes it's a fatal error.
I won't attach the whole request/response, but here's a snippet of the response when it's a warning. You can see the warnings are augmented with the successful response:
```javascript
... "content_type":"text\/css","size":132652,"checksum":"cfcbe8f73d04f93117fb0981c3ed3e68","theme_id":127593021611,"warnings":["Cannot overwrite generated asset 'assets\/theme.scss'."]}}
Any ideas why it works sometimes and why it errors sometimes? This causes flakiness in our clone theme process due to the put failing randomly.
Thanks in advance,
Jon