{"action":"created","issue":{"url":"https://api.github.com/repos/iotaledger/iota.lib.py/issues/104","repository_url":"https://api.github.com/repos/iotaledger/iota.lib.py","labels_url":"https://api.github.com/repos/iotaledger/iota.lib.py/issues/104/labels{/name}","comments_url":"https://api.github.com/repos/iotaledger/iota.lib.py/issues/104/comments","events_url":"https://api.github.com/repos/iotaledger/iota.lib.py/issues/104/events","html_url":"https://github.com/iotaledger/iota.lib.py/issues/104","id":279282325,"number":104,"title":"send_transfer example fails 400","user":{"login":"HerrMuellerluedenscheid","id":1038455,"avatar_url":"https://avatars3.githubusercontent.com/u/1038455?v=4","gravatar_id":"","url":"https://api.github.com/users/HerrMuellerluedenscheid","html_url":"https://github.com/HerrMuellerluedenscheid","followers_url":"https://api.github.com/users/HerrMuellerluedenscheid/followers","following_url":"https://api.github.com/users/HerrMuellerluedenscheid/following{/other_user}","gists_url":"https://api.github.com/users/HerrMuellerluedenscheid/gists{/gist_id}","starred_url":"https://api.github.com/users/HerrMuellerluedenscheid/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/HerrMuellerluedenscheid/subscriptions","organizations_url":"https://api.github.com/users/HerrMuellerluedenscheid/orgs","repos_url":"https://api.github.com/users/HerrMuellerluedenscheid/repos","events_url":"https://api.github.com/users/HerrMuellerluedenscheid/events{/privacy}","received_events_url":"https://api.github.com/users/HerrMuellerluedenscheid/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2017-12-05T08:11:15Z","updated_at":"2018-02-16T08:04:29Z","closed_at":"2017-12-05T09:59:49Z","author_association":"CONTRIBUTOR","body":"Hi,\r\n\r\nI'm running iri 1.4.1.2 and was trying to run the `send_transfer.py` example (py3). It terminates with \r\n```\r\niota.adapter.BadApiResponse: 400 response from node: This operations cannot be executed: The subtangle has not been updated yet.\r\n```\r\nWhat do I have to do to update the subtangle? Do I HAVE to have neighbors to run the examples?\r\n\r\nOutput of the `hello_world.py`:\r\n```\r\nHello http://localhost:14265/!\r\n{'appName': 'IRI',\r\n 'appVersion': '1.4.1.2',\r\n 'duration': 10,\r\n 'jreAvailableProcessors': 4,\r\n 'jreFreeMemory': 309029696,\r\n 'jreMaxMemory': 1843920896,\r\n 'jreTotalMemory': 763887616,\r\n 'jreVersion': '1.8.0_144',\r\n 'latestMilestone': TransactionHash(b'999999999999999999999999999999999999999999999999999999999999999999999999999999999'),\r\n 'latestMilestoneIndex': 243000,\r\n 'latestSolidSubtangleMilestone': TransactionHash(b'999999999999999999999999999999999999999999999999999999999999999999999999999999999'),\r\n 'latestSolidSubtangleMilestoneIndex': 243000,\r\n 'neighbors': 0,\r\n 'packetsQueueSize': 0,\r\n 'time': 1512461259644,\r\n 'tips': 0,\r\n 'transactionsToRequest': 0}\r\n```\r\nThanks for your help in advance!\r\n\r\nBest regards\r\n\r\nMarius\r\n\r\n\r\nPS.: for the sake of completeness here the full error stack:\r\n```\r\nTraceback (most recent call last):\r\n  File \"send_transfer.py\", line 42, in <module>\r\n    message = TryteString.from_string('Hello!'),\r\n  File \"/usr/local/lib/python3.4/dist-packages/PyOTA-2.0.2-py3.4.egg/iota/api.py\", line 845, in send_transfer\r\n    minWeightMagnitude  = min_weight_magnitude,\r\n  File \"/usr/local/lib/python3.4/dist-packages/PyOTA-2.0.2-py3.4.egg/iota/commands/__init__.py\", line 126, in __call__\r\n    self.response = self._execute(self.request)\r\n  File \"/usr/local/lib/python3.4/dist-packages/PyOTA-2.0.2-py3.4.egg/iota/commands/extended/send_transfer.py\", line 52, in _execute\r\n    trytes              = pt_response['trytes'],\r\n  File \"/usr/local/lib/python3.4/dist-packages/PyOTA-2.0.2-py3.4.egg/iota/commands/__init__.py\", line 126, in __call__\r\n    self.response = self._execute(self.request)\r\n  File \"/usr/local/lib/python3.4/dist-packages/PyOTA-2.0.2-py3.4.egg/iota/commands/extended/send_trytes.py\", line 42, in _execute\r\n    gta_response = GetTransactionsToApproveCommand(self.adapter)(depth=depth)\r\n  File \"/usr/local/lib/python3.4/dist-packages/PyOTA-2.0.2-py3.4.egg/iota/commands/__init__.py\", line 126, in __call__\r\n    self.response = self._execute(self.request)\r\n  File \"/usr/local/lib/python3.4/dist-packages/PyOTA-2.0.2-py3.4.egg/iota/commands/__init__.py\", line 154, in _execute\r\n    return self.adapter.send_request(request)\r\n  File \"/usr/local/lib/python3.4/dist-packages/PyOTA-2.0.2-py3.4.egg/iota/adapter/__init__.py\", line 301, in send_request\r\n    return self._interpret_response(response, payload, {codes['ok']})\r\n  File \"/usr/local/lib/python3.4/dist-packages/PyOTA-2.0.2-py3.4.egg/iota/adapter/__init__.py\", line 438, in _interpret_response\r\n    'response': decoded,\r\niota.adapter.BadApiResponse: 400 response from node: This operations cannot be executed: The subtangle has not been updated yet.\r\n```"},"comment":{"url":"https://api.github.com/repos/iotaledger/iota.lib.py/issues/comments/366168145","html_url":"https://github.com/iotaledger/iota.lib.py/issues/104#issuecomment-366168145","issue_url":"https://api.github.com/repos/iotaledger/iota.lib.py/issues/104","id":366168145,"user":{"login":"damianme","id":35031166,"avatar_url":"https://avatars0.githubusercontent.com/u/35031166?v=4","gravatar_id":"","url":"https://api.github.com/users/damianme","html_url":"https://github.com/damianme","followers_url":"https://api.github.com/users/damianme/followers","following_url":"https://api.github.com/users/damianme/following{/other_user}","gists_url":"https://api.github.com/users/damianme/gists{/gist_id}","starred_url":"https://api.github.com/users/damianme/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/damianme/subscriptions","organizations_url":"https://api.github.com/users/damianme/orgs","repos_url":"https://api.github.com/users/damianme/repos","events_url":"https://api.github.com/users/damianme/events{/privacy}","received_events_url":"https://api.github.com/users/damianme/received_events","type":"User","site_admin":false},"created_at":"2018-02-16T08:04:29Z","updated_at":"2018-02-16T08:04:29Z","author_association":"NONE","body":"@todofixthis Thanks!\r\nOk, but I believe we have two problems here. One is 500/400 status (thanks for posting to IRI bug tracker btw.) and second is that I think that when I posted this issue, testtnet node wasn't correctly operational. Now (about 24hours later) I have the correct response. My hint of faulty node is 99999..... in **latestSolidSubtangleMilestone**\r\nThis is comparison of responses from **api.get_node_info()**:\r\n\r\n<img width=\"1440\" alt=\"screen shot 2018-02-16 at 8 56 41 am\" src=\"https://user-images.githubusercontent.com/35031166/36298250-76e9b276-12f7-11e8-9c45-167c59cd69ad.png\">\r\n \r\nDoes it make sense?\r\nIf yes maybe I should add check and description that if there are 999999... there, there is need to search for ohter node?"}}
{"actor":{"display_login":"damianme"}}