GoEvaCom / react-native-eos

Native implementation of client to eos blockchain communication.
MIT License
42 stars 6 forks source link

Malformed calls from JS: field sizes are different. #2

Open ancjf opened 5 years ago

ancjf commented 5 years ago

While using react-native-eos on react-native, I encountered a problem. Here is the error message, Can you help me to salve it?

Malformed calls from JS: field sizes are different.

[[15,6,33,22,6,13,33],[3,0,1,12,13,0,0],[[],[],[5],[2,7,{"iterations":1,"toValue":1,"frames":[0,0.008888888888888889,0.035555555555555556,0.08000000000000002,0.14222222222222222,0.22222222222222227,0.3200000000000001,0.4355555555555557,0.5644444444444444,0.6799999999999999,0.7777777777777777,0.8577777777777778,0.9199999999999999,0.9644444444444443,0.991111111111111,1,1],"type":"frames"},175],[],[8,2000,1551862846520,false]],84] run NativeRunnable.java handleCallback Handler.java:873 dispatchMessage Handler.java:99 dispatchMessage MessageQueueThreadHandler.java:29 loop Looper.java:193 run MessageQueueThreadImpl.java:192 run Thread.java:764

react-native version: "dependencies": { "react": "16.6.3", "react-native": "0.58.5", "react-native-eos": "^1.0.1", "react-native-eosjs": "^1.0.0", "react-native-gesture-handler": "^1.0.16", "react-native-scrollable-tab-view": "^0.10.0", "react-native-vector-icons": "^6.3.0", "react-navigation": "^3.3.2" }

vgagaleski commented 5 years ago

I was getting the same error while using ReactNativeEos.pushAction('eosio.token','transfer', JSON.stringify(actionData),'user1','active', '5KAgVzQrY8qzqS7rfzxmjWhaHUSQgn6DpruaqopWEqUJEz7Wb1d').then(trxResponse => { console.log('trxResponse', trxResponse); }); Removing the console.log line solved the problem. Probably the malformed calls come from there. ReactNativeEos.pushAction('eosio.token','transfer', JSON.stringify(actionData),'user1','active', '5KAgVzQrY8qzqS7rfzxmjWhaHUSQgn6DpruaqopWEqUJEz7Wb1d');