You are trying to pass a collection of integers as a single parameter value to SQL: probably from here:
value=request.ids
You can't do that: SQL has no concept of arrays or Lists it only works with basic datatypes:
Data types (Transact-SQL) - SQL Server | Microsoft Docs[
^]
I have no idea what your SP expects to do with them, but you can't send them as a collection!