Created
February 21, 2017 10:43
-
-
Save christoph2806/f7bd97b67f30c1da5399331792409b0a to your computer and use it in GitHub Desktop.
WARN log with contract myid: 0x... was triggered, but it was already seen before
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
My truffle tests with oraclize / ethereum bridge fail regularly when encountering | |
the above warning message. | |
The contract simply doesn't get the callback, so processing stops. | |
################################ Output of git log: ###################################### | |
$ git log -1 | |
commit bcfe1766cfe7a3f657c6bc587da37e966987ff6c | |
Author: nya1 <nya1@protonmail.com> | |
Date: Sun Feb 19 15:26:17 2017 +0100 | |
0.4.2 | |
Handle HTTP API response status | |
################################ Etherum Bridge console output:################################ | |
[2017-02-21T10:34:21.265Z] INFO new log | |
{"logIndex":3,"transactionIndex":0,"transactionHash":"0x12b08613c41f6b54839fb5e9d6ee8421a6c947c41a07c29ca9ed558aefe6117b","blockHash":"0x137bfb5c229f04903121aa89c6b3b0b78945809dc220e8c7a96a373bb2a06383","blockNumber":133,"address":"0x0c1224a1d0846ad807df1053c3245a36cf44db3d","type":"mined","event":"Log1","args":{"sender":"0xa86fca7eb69f36e0fd0f5510624b4a1d4d4b2f84","cid":"0x5933785b1b099dea8659bc53508d967990677f9494a5628f110e2795709a08af","timestamp":{"s":1,"e":0,"c":[0]},"datasource":"nested","arg":"[URL] json(https://api-test.etherisc.com/flex/ratings/rest/v1/json/flight/AF/20).ratings[0]['observations','late15','late30','late45','cancelled','diverted']","gaslimit":{"s":1,"e":5,"c":[500000]},"proofType":"0x00","gasPrice":{"s":1,"e":0,"c":[0]}}} | |
[2017-02-21T10:34:22.364Z] INFO new HTTP query created, id: 26a5de8ec0cca4ddcb5388f4ca5f5df008d35f65bfb2d1479cedb6f43540f3a6 | |
[2017-02-21T10:34:22.365Z] INFO checking HTTP query 26a5de8ec0cca4ddcb5388f4ca5f5df008d35f65bfb2d1479cedb6f43540f3a6 status in 0 seconds | |
[2017-02-21T10:34:22.365Z] INFO checking HTTP query 26a5de8ec0cca4ddcb5388f4ca5f5df008d35f65bfb2d1479cedb6f43540f3a6 status every 5 seconds... | |
[2017-02-21T10:34:28.282Z] INFO 26a5de8ec0cca4ddcb5388f4ca5f5df008d35f65bfb2d1479cedb6f43540f3a6 HTTP query result: | |
{"result":{"_timestamp":1487673265,"id":"26a5de8ec0cca4ddcb5388f4ca5f5df008d35f65bfb2d1479cedb6f43540f3a6","daterange":[1487673262,1487673322],"_lock":true,"id2":"5933785b1b099dea8659bc53508d967990677f9494a5628f110e2795709a08af","actions":[],"interval":3600,"checks":[{"errors":[],"success":true,"timestamp":1487673263,"results":["[61, 5, 1, 4, 0, 0]"],"proofs":[null],"match":true}],"version":3,"_timestamp_creation":1487673262,"active":false,"hidden":false,"payload":{"conditions":[{"query":"[URL] json(https://api-test.etherisc.com/flex/ratings/rest/v1/json/flight/AF/20).ratings[0]['observations','late15','late30','late45','cancelled','diverted']","proof_type":0,"check_op":"tautology","datasource":"nested","value":null}]}},"success":true} | |
[2017-02-21T10:34:28.298Z] INFO sending __callback tx... | |
{"contract_myid":"0x5933785b1b099dea8659bc53508d967990677f9494a5628f110e2795709a08af","contract_address":"0xa86fca7eb69f36e0fd0f5510624b4a1d4d4b2f84"} | |
[2017-02-21T10:34:30.163Z] WARN log with contract myid: 0xded95b344fde0c6af9e69d6a5470a41e423879e9af7e7e33116a4e9d70bd72ae was triggered, but it was already seen before | |
[2017-02-21T10:34:39.070Z] INFO Contract 0xa86fca7eb69f36e0fd0f5510624b4a1d4d4b2f84 __callback called | |
{"myid":"0x5933785b1b099dea8659bc53508d967990677f9494a5628f110e2795709a08af","result":"[61, 5, 1, 4, 0, 0]","proof":null} | |
################################ testrpc setup: ################################ | |
#!/bin/bash | |
testrpc \ | |
--account="0xfb226e56784eac680d42effcf7ce68b12e7ea9a5501c272a62c963dfd946f7f6, 1000000000000000000000000000" \ | |
--account="0x1be0f612afb0dd286181b4e0975410991cf9ba614c803555a77fbf8a66c6c557, 1000000000000000000000000000" \ | |
--account="0xb063535875f9153c5b8840e6f83240d02773e4eec5cfba2b8bfebcece7e2dc18, 1000000000000000000000000000" \ | |
--account="0x7315f07fa1983493ec8ebf8be2f75a35abc9caf50f046d57a72d2a04d87f638f, 1000000000000000000000000000" \ | |
--account="0xffc3fddae3bde34a82047311859e35146636fae1ae1e8e9ecae34bf4dbc5119e, 1000000000000000000000000000" \ | |
--account="0x3d525abe43f6f58d0d12ae4e3e4dd3b5b93c536d0254df5dd078373cdbed5474, 1000000000000000000000000000" \ | |
--account="0x757cf57f0a1e14ad5732cd6ccee6d8a86bb55836052ba5708429803a16ec9396, 1000000000000000000000000000" \ | |
--account="0x92161f12973f892d2fcd7c93bbdc320a57250fe3e7252a308a463efd20091ff2, 1000000000000000000000000000" \ | |
--account="0xcbbb8449176d0192ca8a8dccc7862bae63e7fcab2ec282b7075d8d1a0164a592, 1000000000000000000000000000" \ | |
--account="0x36c13739e7957d806b0b669304470433f5e42d694ba4e5eef280440ef6ef35a2, 1000000000000000000000000000" \ | |
--account="0xa2a202e3b3ea1baee0e6fb4f91f937d42cb9ca80852d57b4b89255a72f62e20b, 1000000000000000000000000000" \ | |
--account="0x5b72bd0e9ab24da7177ac1cac9877e3fc804e8e0c844c0805855e9519d859dd4, 1000000000000000000000000000" \ | |
--account="0xadd9f2261722277adfc34c2ae6c5d9526f5fd7d33bb4d32b1825a2721b8d0481, 1000000000000000000000000000" \ | |
--account="0xb8981af74ec1d615235d164154125dcab18b597acec6143f761c90c066bb4f62, 1000000000000000000000000000" \ | |
--account="0x7edb8085604824d4a776e5bd0a1ddaa4dda598a4850b831d671d3deab5593756, 1000000000000000000000000000" \ | |
--account="0x5d792861dc50f23bd39be06532752feadc304d1e7e796af892cecd5a4e12b4a3, 1000000000000000000000000000" \ | |
--account="0x3dd9fb09b4e0b65b65c0efcede6bdb96e34803c7bff8e07d9797f3ec3eac21f9, 1000000000000000000000000000" \ | |
--account="0xbbd8299fac74c43a2f6528eef58e1357621e18db5f44bfa0d4744f52c5be7fca, 1000000000000000000000000000" \ | |
--account="0xb25f213aabd7085a75e514e52db6f17d2fbd75b52bb9cc8f062af56b57af72ec, 1000000000000000000000000000" \ | |
--account="0x13a6b15eb808f61ffddd50c1fd3ce86523363c3d3e807e9871f3954aa554ccef, 1000000000000000000000000000" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment