Error running function on Mobile APK but not in Editor

I ahve this error when trying to run this function, it works fine as intended in editor but on mobile doesnt do anything and gets this error:

2024/05/06 20:09:51.357 31079 31154 Error Unity SerializationException: Unable to find type: ‘Unity.VisualScripting.Unit’.
2024/05/06 20:09:51.357 31079 31154 Error Unity at Unity.VisualScripting.RuntimeCodebase.DeserializeType (System.String typeName) [0x00000] in <00000000000000000000000000000000>:0
2024/05/06 20:09:51.357 31079 31154 Error Unity at Unity.VisualScripting.FullSerializer.fsSerializer…cctor () [0x00000] in <00000000000000000000000000000000>:0
2024/05/06 20:09:51.357 31079 31154 Error Unity at Unity.VisualScripting.SerializationOperation…ctor () [0x00000] in <00000000000000000000000000000000>:0
2024/05/06 20:09:51.357 31079 31154 Error Unity at Unity.VisualScripting.Serialization.StartOperation () [0x00000] in <00000000000000000000000000000000>:0
2024/05/06 20:09:51.357 31079 31154 Error Unity at Unity.VisualScripting.Serialization.Serialize (System.Object value, System.Boolean forceReflected) [0x00000] in <00000000000000000000000000000000>:0
2024/05/06 20:09:51.357 31079 31154 Error Unity at AndroidIAPExample.RefreshIAPItems () [0x00000] in <00000000000000000000000000000000>:0
2024/05/06 20:09:51.357 31079 31154 Error Unity at System.Threading.ExecutionContext.RunInternal (System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state, System.Boolean preserveSyncCtx) [0x00000] in <000000000000000

Tried searhcing and I see nobody else with the same error. The function is by Android API to pull products btw