Added try/catch to handle errors on api_platforms end