{"action":"opened","issue":{"url":"https://api.github.com/repos/EOSIO/eosjs/issues/455","repository_url":"https://api.github.com/repos/EOSIO/eosjs","labels_url":"https://api.github.com/repos/EOSIO/eosjs/issues/455/labels{/name}","comments_url":"https://api.github.com/repos/EOSIO/eosjs/issues/455/comments","events_url":"https://api.github.com/repos/EOSIO/eosjs/issues/455/events","html_url":"https://github.com/EOSIO/eosjs/issues/455","id":388845316,"node_id":"MDU6SXNzdWUzODg4NDUzMTY=","number":455,"title":"Error: Expected string containing name","user":{"login":"DaLN","id":1247106,"node_id":"MDQ6VXNlcjEyNDcxMDY=","avatar_url":"https://avatars3.githubusercontent.com/u/1247106?v=4","gravatar_id":"","url":"https://api.github.com/users/DaLN","html_url":"https://github.com/DaLN","followers_url":"https://api.github.com/users/DaLN/followers","following_url":"https://api.github.com/users/DaLN/following{/other_user}","gists_url":"https://api.github.com/users/DaLN/gists{/gist_id}","starred_url":"https://api.github.com/users/DaLN/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DaLN/subscriptions","organizations_url":"https://api.github.com/users/DaLN/orgs","repos_url":"https://api.github.com/users/DaLN/repos","events_url":"https://api.github.com/users/DaLN/events{/privacy}","received_events_url":"https://api.github.com/users/DaLN/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-12-07T23:06:05Z","updated_at":"2018-12-07T23:06:05Z","closed_at":null,"author_association":"NONE","body":"Hi everyone, i am trying to execute an action with the new version of the library and here is the error i get. I have trouble understanding what i did wrong.\r\n\r\n```\r\nError: Expected string containing name\r\n    at SerialBuffer.pushName (/home/ubuntu/poc/coreco/api/implementation/node_modules/eosjs/dist/eosjs-serialize.js:232:19)\r\n    at Object.serialize (/home/ubuntu/poc/coreco/api/implementation/node_modules/eosjs/dist/eosjs-serialize.js:795:57)\r\n    at Object.serializeStruct [as serialize] (/home/ubuntu/poc/coreco/api/implementation/node_modules/eosjs/dist/eosjs-serialize.js:559:28)\r\n    at Object.serializeStruct [as serialize] (/home/ubuntu/poc/coreco/api/implementation/node_modules/eosjs/dist/eosjs-serialize.js:559:28)\r\n    at Object.serializeStruct [as serialize] (/home/ubuntu/poc/coreco/api/implementation/node_modules/eosjs/dist/eosjs-serialize.js:559:28)\r\n    at serializeActionData (/home/ubuntu/poc/coreco/api/implementation/node_modules/eosjs/dist/eosjs-serialize.js:1022:12)\r\n    at Object.serializeAction (/home/ubuntu/poc/coreco/api/implementation/node_modules/eosjs/dist/eosjs-serialize.js:1032:15)\r\n    at Api.<anonymous> (/home/ubuntu/poc/coreco/api/implementation/node_modules/eosjs/dist/eosjs-api.js:277:71)\r\n    at step (/home/ubuntu/poc/coreco/api/implementation/node_modules/eosjs/dist/eosjs-api.js:44:23)\r\n    at Object.next (/home/ubuntu/poc/coreco/api/implementation/node_modules/eosjs/dist/eosjs-api.js:25:53)\r\n```\r\n\r\nHere is my code :\r\n```\r\napi.transact({\r\n            actions: [{\r\n                account: 'accountName',\r\n                name: 'additem',\r\n                authorization: [{\r\n                    actor: 'accountName',\r\n                    permission: 'owner',\r\n                }],\r\n                data: argItem, //json object similar to what i use in => cleos push action contractName additem 'argItemjsonstring' which works.\r\n            }]\r\n        }, {\r\n            blocksBehind: 3,\r\n            expireSeconds: 30,\r\n        }).then(result => {\r\n            console.log(JSON.stringify(result));\r\n            res.send(\"OK\");\r\n        }).catch((error) => {\r\n            console.log('\\nCaught exception: ' + error);\r\n            next(error);\r\n        });\r\n```"}}
{"actor":{"display_login":"DaLN"}}