Insert Knot incompatible function arguments

I am getting this error dialog

Invoking code is

knotList = r3.NurbsCurveKnotList
        print(len(knots))
        for i in range(len(knots)):
            #if knotList.InsertKnot(knotList, float(knots[i]), int(mults[i])) == False:
            if knotList.InsertKnot(float(knots[i]), int(mults[i])) == False:
                print(f"Insert Knot {i} Failed")

So as far as I can see I am passing in a float and an int

I suspect there is not any problem with the Type of your input parameters.

Its the range of your inputs that is a likely the problem. The float has to be within the curve domain and the multiplicity should be within 1 and the degree of the curve.

I would think it would give you an out of range error message rather than implying the type is wrong.