{"action":"created","issue":{"url":"https://api.github.com/repos/wso2-ballerina/module-twitter/issues/78","repository_url":"https://api.github.com/repos/wso2-ballerina/module-twitter","labels_url":"https://api.github.com/repos/wso2-ballerina/module-twitter/issues/78/labels{/name}","comments_url":"https://api.github.com/repos/wso2-ballerina/module-twitter/issues/78/comments","events_url":"https://api.github.com/repos/wso2-ballerina/module-twitter/issues/78/events","html_url":"https://github.com/wso2-ballerina/module-twitter/issues/78","id":394748548,"node_id":"MDU6SXNzdWUzOTQ3NDg1NDg=","number":78,"title":"error: failed to compile file: unknown opcode 11 in module wso2/twitter:0.9.23","user":{"login":"13Ax0","id":39865913,"node_id":"MDQ6VXNlcjM5ODY1OTEz","avatar_url":"https://avatars1.githubusercontent.com/u/39865913?v=4","gravatar_id":"","url":"https://api.github.com/users/13Ax0","html_url":"https://github.com/13Ax0","followers_url":"https://api.github.com/users/13Ax0/followers","following_url":"https://api.github.com/users/13Ax0/following{/other_user}","gists_url":"https://api.github.com/users/13Ax0/gists{/gist_id}","starred_url":"https://api.github.com/users/13Ax0/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/13Ax0/subscriptions","organizations_url":"https://api.github.com/users/13Ax0/orgs","repos_url":"https://api.github.com/users/13Ax0/repos","events_url":"https://api.github.com/users/13Ax0/events{/privacy}","received_events_url":"https://api.github.com/users/13Ax0/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2018-12-29T01:35:05Z","updated_at":"2018-12-31T12:03:55Z","closed_at":"2018-12-31T12:03:55Z","author_association":"CONTRIBUTOR","body":"**Description:**\r\n<!-- Give a brief description of the issue -->\r\nI was reading the [Program Ballerina to Send a Tweet](https://ballerina.io/learn/quick-tour/#program-ballerina-to-send-a-tweet) section on [Quick Tour](https://ballerina.io/learn/quick-tour/) and copied the final code it provided. I got this:\r\n\r\n```\r\n$ ballerina run --config twitter.toml twttr.bal\r\nerror: failed to compile file: unknown opcode 11 in module wso2/twitter:0.9.23\r\n```\r\n\r\nI looked for this repository and found [another example in the README](https://github.com/wso2-ballerina/module-twitter#example). There were two errors (maybe I should open another issue about this?), so I tried fixing them. When everything was ok, I executed the program:\r\n\r\n```\r\n$ ballerina run twttr.bal\r\n```\r\n\r\nYet again...\r\n\r\n```\r\nerror: failed to compile file: unknown opcode 11 in module wso2/twitter:0.9.23\r\n```\r\n\r\n**Suggested Labels:**\r\n<!-- Optional comma separated list of suggested labels. Non committers can’t assign labels to issues, so this will help issue creators who are not a committer to suggest possible labels-->\r\nI don't know if this is a bug, but I think is. I'm new to Ballerina (I started today).\r\n\r\n**Affected Product Version:**\r\n\r\n- wso2/twitter: 0.9.23\r\n- Ballerina version: Ballerina 0.990.1\r\n\r\n**OS, DB, other environment details and versions:** \r\n\r\n- OS: elementaryOS 0.5 Juno (Ubuntu-based)\r\n\r\n**Steps to reproduce:**\r\n \r\n- Copy the example provided in the README (as I said earlier, there are two errors, so I'll post the code I used here).\r\n\r\n```ballerina\r\n// File name: twttr.bal\r\nimport ballerina/io;\r\nimport wso2/twitter;\r\n\r\npublic function main() returns error? {\r\n    twitter:Client twitterClient = new({\r\n        clientId: \"blah\",\r\n        clientSecret: \"blah\",\r\n        accessToken: \"blah\",\r\n        accessTokenSecret: \"blah\"\r\n    });\r\n\r\n    string status = \"Twitter endpoint test\";\r\n\r\n    twitter:Status twitterStatus = check twitterClient->tweet(status);\r\n    string tweetId = <string>twitterStatus.id;\r\n    string text = twitterStatus.text;\r\n    io:println(\"Tweet ID: \" + tweetId);\r\n    io:println(\"Tweet: \" + text);\r\n}\r\n```\r\n\r\n- Run `ballerina run twttr.bal`."},"comment":{"url":"https://api.github.com/repos/wso2-ballerina/module-twitter/issues/comments/450638331","html_url":"https://github.com/wso2-ballerina/module-twitter/issues/78#issuecomment-450638331","issue_url":"https://api.github.com/repos/wso2-ballerina/module-twitter/issues/78","id":450638331,"node_id":"MDEyOklzc3VlQ29tbWVudDQ1MDYzODMzMQ==","user":{"login":"MaryamZi","id":8376983,"node_id":"MDQ6VXNlcjgzNzY5ODM=","avatar_url":"https://avatars1.githubusercontent.com/u/8376983?v=4","gravatar_id":"","url":"https://api.github.com/users/MaryamZi","html_url":"https://github.com/MaryamZi","followers_url":"https://api.github.com/users/MaryamZi/followers","following_url":"https://api.github.com/users/MaryamZi/following{/other_user}","gists_url":"https://api.github.com/users/MaryamZi/gists{/gist_id}","starred_url":"https://api.github.com/users/MaryamZi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MaryamZi/subscriptions","organizations_url":"https://api.github.com/users/MaryamZi/orgs","repos_url":"https://api.github.com/users/MaryamZi/repos","events_url":"https://api.github.com/users/MaryamZi/events{/privacy}","received_events_url":"https://api.github.com/users/MaryamZi/received_events","type":"User","site_admin":false},"created_at":"2018-12-31T12:03:55Z","updated_at":"2018-12-31T12:03:55Z","author_association":"CONTRIBUTOR","body":"Thank you. Closing the issue since it is resolved with Ballerina 0.990.2."}}
{"actor":{"display_login":"MaryamZi"}}