Random Server Side errors on random products
Tautve opened this issue · comments
Hi, we have a system that periodically imports products. Recently, we have started to import product attributes as well. However, we have over 1000 products and we are importing their attributes every 30min. Unfortunately, we randomly receive errors from this endpoint: 'api/rest/v1/attributes/{attribute_code}/options/{code}' 'Akeneo\Pim\ApiClient\Exception\ServerErrorHttpException'.
![Screenshot 2023-07-10 at 14 08 12](https://private-user-images.githubusercontent.com/70275972/252953856-1df0b0e5-6bc7-4fc2-8eee-70991946e600.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTkyMDc1MDYsIm5iZiI6MTcxOTIwNzIwNiwicGF0aCI6Ii83MDI3NTk3Mi8yNTI5NTM4NTYtMWRmMGIwZTUtNmJjNy00ZmMyLThlZWUtNzA5OTE5NDZlNjAwLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA2MjQlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNjI0VDA1MzMyNlomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTMyMTk3YmJjMjFjZWIzOGU3OTQ5N2VkYTg1NjJjNzJmYjY0MGIyMWFmZDNjZTJlZTZjYjgzM2EzMTBhNDJhMDgmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.UA_onMPSdNishzta8PRk1L3qNiagQPNH--pJrvevw_o)
We checked the code from our BE side and did not find anything that could cause such errors.
Also, during product import, we download their images via $this->akeneoPimClient->getAssetMediaFileApi()->download($path)->getBody(). This endpoint returns some Server side errors on random products.
![Screenshot 2023-07-10 at 14 11 13](https://private-user-images.githubusercontent.com/70275972/252953882-c6f54bd6-f942-4fd4-b430-0e0c01293369.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTkyMDc1MDYsIm5iZiI6MTcxOTIwNzIwNiwicGF0aCI6Ii83MDI3NTk3Mi8yNTI5NTM4ODItYzZmNTRiZDYtZjk0Mi00ZmQ0LWI0MzAtMGUwYzAxMjkzMzY5LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA2MjQlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNjI0VDA1MzMyNlomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTAwMWE4NWU1ODMyZWU3Nzc0MzBlYjllZGYzNTE4MGZjZDQxYjYxZTA1ODY1NzlhOTNhMGMxMGI4ZGZhM2U2OWUmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.gmW72W04sxN4BJApxRWbnVLIEcIhvIF49kIh05ZjlmQ)
For example, yesterday (2023-07-09) we received 3 errors regarding product attributes and 6 errors regarding product images. We import both the attributes and the images every 30min.
We suspect that these errors are related. Has anyone faced such issues and might have some suggestions or even the proper solutions?
Thank you in advance!