{"action":"closed","issue":{"url":"https://api.github.com/repos/TangleID/TangleID/issues/12","repository_url":"https://api.github.com/repos/TangleID/TangleID","labels_url":"https://api.github.com/repos/TangleID/TangleID/issues/12/labels{/name}","comments_url":"https://api.github.com/repos/TangleID/TangleID/issues/12/comments","events_url":"https://api.github.com/repos/TangleID/TangleID/issues/12/events","html_url":"https://github.com/TangleID/TangleID/issues/12","id":327418872,"node_id":"MDU6SXNzdWUzMjc0MTg4NzI=","number":12,"title":"Couldn't receive HTTP response from swarm node ","user":{"login":"yillkid","id":185872,"node_id":"MDQ6VXNlcjE4NTg3Mg==","avatar_url":"https://avatars2.githubusercontent.com/u/185872?v=4","gravatar_id":"","url":"https://api.github.com/users/yillkid","html_url":"https://github.com/yillkid","followers_url":"https://api.github.com/users/yillkid/followers","following_url":"https://api.github.com/users/yillkid/following{/other_user}","gists_url":"https://api.github.com/users/yillkid/gists{/gist_id}","starred_url":"https://api.github.com/users/yillkid/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yillkid/subscriptions","organizations_url":"https://api.github.com/users/yillkid/orgs","repos_url":"https://api.github.com/users/yillkid/repos","events_url":"https://api.github.com/users/yillkid/events{/privacy}","received_events_url":"https://api.github.com/users/yillkid/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2018-05-29T17:33:42Z","updated_at":"2018-06-01T05:13:08Z","closed_at":"2018-06-01T05:13:08Z","author_association":"CONTRIBUTOR","body":"I am trying to use [IOTA Swarm Node](https://github.com/yillkid/iota-swarm-node) instead of [TangleID transaction Agent](http://node0.puyuma.org/tangleid_backend/api/), the following is the `.env` configuration:  (http://yillkid.tk:8000 is a public swarm node)\r\n\r\n```shell\r\nBACK_END_API=http://yillkid.tk:8000\r\nHOST_API=http://node0.puyuma.org:3000/api\r\n```\r\nTesting the [TangleID APIs](https://hackmd.io/NN7HNmc_QOuVX0Vfx-YEDg), and all issue claim API commands (eg. new_identity, new_claim ... ... ) work fine, but can not receiving any response from swarm node that cause some API commands get null content (eg. get_all_claims ... ...)\r\n\r\nSteps for reproduce this issue as below (Host URL: (node0.puyuma.org)):\r\n1. Deploy IOTA swarm node and launch it.\r\n2. Install TangleID, set `.env` file as: \r\n```shell\r\nBACK_END_API=http://yillkid.tk:8000\r\nHOST_API=http://node0.puyuma.org:3000/api\r\n```\r\n3. New a identity and login\r\n4. New a claim, we can see the server log as below (issue claim works fine):\r\n* TangleID:\r\n![](https://i.imgur.com/vJWnXM9.png)\r\n* IOTA Swarm Node log:\r\n```shell\r\nGet request data ... {\"command\":\"new_claim\",\"uuid\":\"UNHPQUBXBNX9HOPTPAXTNEDBKM\",\"part_a\":\"\",\"part_b\":\"\",\"exp_date\":\"\",\"claim_pic\":\"\",\"msg\":\"TEST0\"}\r\nStart to sransfer ... \r\nSetting output transaction ...\r\nBundle finalize ...\r\nDo POW for this transaction ...\r\nPrepare to broadcast ...\r\nResult ... UZNSKLO9LUQDCXRFETITHLPVIRJQLFASAFVQFWADQGLC9TWVNAOSHHFRJBEKXBDNJYZBKUWIUQEDWDIN9\r\n140.116.82.61 - - [29/May/2018 17:17:06] \"POST /api/proxy/ HTTP/1.1\" 200 -\r\nGet request data ... {\"command\":\"new_claim\",\"uuid\":\"UNHPQUBXBNX9HOPTPAXTNEDBKM\",\"part_a\":\"\",\"part_b\":\"\",\"exp_date\":\"\",\"claim_pic\":\"\",\"msg\":\"TEST0\"}\r\nStart to sransfer ... \r\nSetting output transaction ...\r\nBundle finalize ...\r\nDo POW for this transaction ...\r\nPrepare to broadcast ...\r\nResult ... VRRFWGKVSESLAK9XIGRHOLCLXDPDFHLPEEWUNTTKLXZSC9GBFNLRISRDOUCBZRXBWAHCTXGKGKNKXEYOW\r\n140.116.82.61 - - [29/May/2018 17:17:23] \"POST /api/proxy/ HTTP/1.1\" 200 -\r\n```\r\n5. Get all claims on user page\r\n\r\n* TangleID (No Claims !!!!!!):\r\n![](https://i.imgur.com/dll58Yi.png)\r\n\r\n* IOTA Swarm Node log (4  Claims !!!!!!):\r\n```shell\r\n140.116.82.61 - - [29/May/2018 17:22:02] \"GET /api/proxy/ HTTP/1.1\" 200 -\r\nGet request data ... {\"command\":\"get_all_claims\",\"uuid\":\"UNHPQUBXBNX9HOPTPAXTNEDBKM\"}\r\nResult ... ['WBAGUUQWDASMLGCNFGPALXQOHLUHWK9QEBCKGMGYD9UVAJLKDIOCUS9EEUDBGKFI9MOAQK9KSIQMZ9999', 'ZXLN9QLE9OCYIOINSXYMWZKJW9EYKZKLCGGYWAINRVGNMHSMFSUJZZXCQAUCQP9INRQXHAZRFJKVA9999', 'AVINVLGPXSSKDBHKBVHYMUHTQYXDIRNHPAUVHLOFZ9BCABPPEVOVIDQMMJ9HJBEUCL9WEXWDCENDZ9999', 'HTZMKHDBPFVAOGEAKAYFERQJCJYLMAEDBIFCWROHFBMFYRLXBUEVGTLMCEPV9ECDGYJWJTTREQTWZ9999']\r\n140.116.82.61 - - [29/May/2018 17:22:03] \"POST /api/proxy/ HTTP/1.1\" 200 -\r\n```\r\n*  Test with [api-example](https://github.com/tangleid/api-examples) get_all_claims.sh  script (4 Claims !!!!!!):\r\n```shell\r\n ./get_all_claims.sh \r\nRequesting {\"command\":\"get_all_claims\"} ...\r\n\r\n['WBAGUUQWDASMLGCNFGPALXQOHLUHWK9QEBCKGMGYD9UVAJLKDIOCUS9EEUDBGKFI9MOAQK9KSIQMZ9999', 'ZXLN9QLE9OCYIOINSXYMWZKJW9EYKZKLCGGYWAINRVGNMHSMFSUJZZXCQAUCQP9INRQXHAZRFJKVA9999', 'AVINVLGPXSSKDBHKBVHYMUHTQYXDIRNHPAUVHLOFZ9BCABPPEVOVIDQMMJ9HJBEUCL9WEXWDCENDZ9999', 'HTZMKHDBPFVAOGEAKAYFERQJCJYLMAEDBIFCWROHFBMFYRLXBUEVGTLMCEPV9ECDGYJWJTTREQTWZ9999']\r\n```"}}
{"actor":{"display_login":"yillkid"}}