Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to sync realt tokens #16

Open
m-condamin opened this issue Dec 20, 2023 · 8 comments
Open

Unable to sync realt tokens #16

m-condamin opened this issue Dec 20, 2023 · 8 comments

Comments

@m-condamin
Copy link

Hello @nickfr!

As I wrote on the Finary forum, here is the stacktrace that the execution of the command below returns to me

poetry run python -m finasync realt rent

Traceback (most recent call last):
  File "/usr/lib/python3.10/runpy.py", line 196, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "/usr/lib/python3.10/runpy.py", line 86, in _run_code
    exec(code, run_globals)
  File "/home/max/finarealt/finasync/finasync/__main__.py", line 60, in <module>
    sys.exit(main())
  File "/home/max/finarealt/finasync/finasync/__main__.py", line 50, in main
    result = sync_realt_rent(
  File "/home/max/finarealt/finasync/finasync/realt.py", line 266, in sync_realt_rent
    token_details = get_realt_token_details(key)
  File "/home/max/finarealt/finasync/finasync/realt.py", line 63, in get_realt_token_details
    item.get("uuid").lower(): {
AttributeError: 'str' object has no attribute 'get'

The signin step was made correctly, without errors.
Thank you for your help!

@nmathey
Copy link
Owner

nmathey commented Dec 20, 2023

Hi,

Can you change DEBUG level in "/home/max/finarealt/finasync/finasync/main.py" from INFO to DEBUG on line 26, then run again to see if we get more details?

logging.basicConfig(level=logging.DEBUG)

Did it work already or it is first time run and failed?

@m-condamin
Copy link
Author

m-condamin commented Dec 21, 2023

I've changed the value of loggin to DEBUG and the result is more chatty

DEBUG:urllib3.connectionpool:Starting new HTTPS connection (1): api.finary.com:443
DEBUG:urllib3.connectionpool:https://api.finary.com:443 "GET /users/me/real_estates HTTP/1.1" 200 41
DEBUG:root:{
    "result": [],
    "message": "OK",
    "error": null
}
DEBUG:root:My RealT Finary portfolio
DEBUG:root:[]
DEBUG:urllib3.connectionpool:Starting new HTTPS connection (1): blockscout.com:443
DEBUG:urllib3.connectionpool:https://blockscout.com:443 "GET /xdai/mainnet/api?module=account&action=tokenlist&address=0xB7A1XXXXXXXXXXXXXXXXXXXXXXXXXXXXXX HTTP/1.1" 301 0
DEBUG:urllib3.connectionpool:Starting new HTTPS connection (1): gnosis.blockscout.com:443
DEBUG:urllib3.connectionpool:https://gnosis.blockscout.com:443 "GET /api?module=account&action=tokenlist&address=0xB7A1XXXXXXXXXXXXXXXXXXXXXXXXXXXXXX HTTP/1.1" 200 None
DEBUG:root:My wallet details
DEBUG:root:{'message': 'OK', 'result': [{'balance': '149800', 'contractAddress': '0x01f92684ebcb44f9ab8ce9d98678dab616d3d165', 'decimals': '0', 'name': 'JOIN-USDCOM', 'symbol': 'USDC', 'type': 'ERC-20'}, {'balance': '3000000000000000000', 'contractAddress': '0x10cde9d1e1a2d3b703f037a6788e04bc139cdf6f', 'decimals': '18', 'name': 'RealToken S 19530 Hickory St Detroit MI', 'symbol': 'REALTOKEN-S-19530-HICKORY-ST-DETROIT-MI', 'type': 'ERC-20'}, {'balance': '1000000000000000000', 'contractAddress': '0x11d2b6613cbebb4172ef9507286e47c99e3a4b37', 'decimals': '18', 'name': 'RealToken S 15019 Steel Ave Detroit MI', 'symbol': 'REALTOKEN-S-15019-STEEL-AVE-DETROIT-MI', 'type': 'ERC-20'}, {'balance': '138600', 'contractAddress': '0x1465f60c5418bc5abff1cb5feab90ae4fadebc21', 'decimals': '0', 'name': 'JOIN-USDCOM', 'symbol': 'USDC', 'type': 'ERC-20'}, {'balance': '3000000000000000000', 'contractAddress': '0x18cc3ce7ed17e47c669982b6c94a0fe2a0b9606e', 'decimals': '18', 'name': 'RealToken S 14916 Hubbell St Detroit MI', 'symbol': 'REALTOKEN-S-14916-HUBBELL-ST-DETROIT-MI', 'type': 'ERC-20'}, {'balance': '2000000000000000000', 'contractAddress': '0x1a1ec5ef70a643cd35376214e8a8f2ea0d92931d', 'decimals': '18', 'name': 'RealToken S 5344-5346 Belvidere St Detroit MI', 'symbol': 'REALTOKEN-S-5344-5346-BELVIDERE-ST-DETROIT-MI', 'type': 'ERC-20'}, {'balance': '444444', 'contractAddress': '0x2597c340641d83e865aca87e5723c6d9e2dd2d6a', 'decimals': '0', 'name': 'RareTron.io', 'symbol': 'RareTron.io', 'type': 'ERC-20'}, {'balance': '1', 'contractAddress': '0x276086a6987d3b27c3e8b693a6b295ebe4bec843', 'decimals': '', 'name': 'Opium Wonderland', 'symbol': 'OPIUM_ID', 'type': 'ERC-721'}, {'balance': '1000000000000000000', 'contractAddress': '0x27c30545dc2ba4b3bfdcb9f807a0214f4b06f034', 'decimals': '18', 'name': 'RealToken S 8003 S Ingleside Ave Chicago IL', 'symbol': 'REALTOKEN-S-8003-S-INGLESIDE-AVE-CHICAGO-IL', 'type': 'ERC-20'}, {'balance': '1000000000000000000', 'contractAddress': '0x2e1db155a7b812f3fcb0dbc8ed3164b4705213b4', 'decimals': '18', 'name': 'RealToken S 10610 Balfour Rd Detroit MI', 'symbol': 'REALTOKEN-S-10610-BALFOUR-RD-DETROIT-MI', 'type': 'ERC-20'}, {'balance': '1000000000000000000', 'contractAddress': '0x2f4974a3be7355cf8915ab34099f35ed44293128', 'decimals': '18', 'name': 'RealToken S 15611 E Seven Mile Rd Detroit MI', 'symbol': 'REALTOKEN-S-15611-E-SEVEN-MILE-RD-DETROIT-MI', 'type': 'ERC-20'}, {'balance': '5000000000000000000', 'contractAddress': '0x3ac16e7177a55d5fd8f8ab58263d1c764d462fde', 'decimals': '18', 'name': 'RealToken S 4239 Alter Rd Detroit MI', 'symbol': 'REALTOKEN-S-4239-ALTER-RD-DETROIT-MI', 'type': 'ERC-20'}, {'balance': '2000000000000000000', 'contractAddress': '0x458b169d6d9d5d021d61013e3a01bf7dee29dd90', 'decimals': '18', 'name': 'RealToken S 18438 Morang Ave Detroit MI', 'symbol': 'REALTOKEN-S-18438-MORANG-AVE-DETROIT-MI', 'type': 'ERC-20'}, {'balance': '2000000000000000000', 'contractAddress': '0x46b00b4bf04c2c94ae67576004a3a247b9400ade', 'decimals': '18', 'name': 'RealToken S 116 Monterey St Highland Park MI', 'symbol': 'REALTOKEN-S-116-MONTEREY-ST-HIGHLAND-PARK-MI', 'type': 'ERC-20'}, {'balance': '2000000000000000000', 'contractAddress': '0x4b293baa4703c5e7d480498bf3ccd8dc3d1297cd', 'decimals': '18', 'name': 'RealToken S 10147 Somerset Ave Detroit MI', 'symbol': 'REALTOKEN-S-10147-SOMERSET-AVE-DETROIT-MI', 'type': 'ERC-20'}, {'balance': '1000000000000000000', 'contractAddress': '0x4d6876bd8d2f44d64b13a83a58cef81860329ef4', 'decimals': '18', 'name': 'RealToken S 15015 Ward St Detroit MI', 'symbol': 'REALTOKEN-S-15015-WARD-ST-DETROIT-MI', 'type': 'ERC-20'}, {'balance': '28498', 'contractAddress': '0x4ecaba5870353805a9f068101a40e0f32ed605c6', 'decimals': '6', 'name': 'Tether USD on xDai', 'symbol': 'USDT', 'type': 'ERC-20'}, {'balance': '5000000000000000000', 'contractAddress': '0x550a0c95fe1762d9cb553402ccc65bcd71594692', 'decimals': '18', 'name': 'RealToken S 3522-3526 Harding St Detroit MI', 'symbol': 'REALTOKEN-S-3522-3526-HARDING-ST-DETROIT-MI', 'type': 'ERC-20'}, {'balance': '2000000000000000000', 'contractAddress': '0x59de64861ddf9309be2d03d647d21c7a7609e384', 'decimals': '18', 'name': 'RealToken S 12580 Maiden St Detroit MI', 'symbol': 'REALTOKEN-S-12580-MAIDEN-ST-DETROIT-MI', 'type': 'ERC-20'}, {'balance': '1000000000000000000', 'contractAddress': '0x5d1cdfb3038f25c331fef652f75b3339ac4c52a1', 'decimals': '18', 'name': 'RealToken S 11401 Winthrop St Detroit MI', 'symbol': 'REALTOKEN-S-11401-WINTHROP-ST-DETROIT-MI', 'type': 'ERC-20'}, {'balance': '1000000000000000000', 'contractAddress': '0x617e80813da122f0a25e09a731664b5530b8745c', 'decimals': '18', 'name': 'RealToken S 15225 Bringard Dr Detroit MI', 'symbol': 'REALTOKEN-S-15225-BRINGARD-DR-DETROIT-MI', 'type': 'ERC-20'}, {'balance': '5000000000000000000', 'contractAddress': '0x707d18db2f7ffdb79d99dedf8f2110cb8966d7ff', 'decimals': '18', 'name': 'RealToken S 15860 Steel Ave Detroit MI', 'symbol': 'REALTOKEN-S-15860-STEEL-AVE-DETROIT-MI', 'type': 'ERC-20'}, {'balance': '5722601852933751668', 'contractAddress': '0x7349c9eaa538e118725a6130e0f8341509b9f8a0', 'decimals': '18', 'name': 'RMM yield generating WXDAI', 'symbol': 'armmWXDAI', 'type': 'ERC-20'}, {'balance': '1000000000000000000', 'contractAddress': '0x7ca0118b50432d0a5c69f854ff017b6f22a10f88', 'decimals': '18', 'name': 'RealToken S 11125 Craft St Detroit MI', 'symbol': 'REALTOKEN-S-11125-CRAFT-ST-DETROIT-MI', 'type': 'ERC-20'}, {'balance': '4000000000000000000', 'contractAddress': '0x7dfeee178fc1f929a88ad69e4e8d493600dd26d0', 'decimals': '18', 'name': 'RealToken S 14117 Manning St Detroit MI', 'symbol': 'REALTOKEN-S-14117-MANNING-ST-DETROIT-MI', 'type': 'ERC-20'}, {'balance': '1000000000000000000', 'contractAddress': '0x80d2956433a1622c336480ba5357350a30644c0a', 'decimals': '18', 'name': 'RealToken S 9244 Mendota St Detroit MI', 'symbol': 'REALTOKEN-S-9244-MENDOTA-ST-DETROIT-MI', 'type': 'ERC-20'}, {'balance': '1000000000000000000', 'contractAddress': '0x87b2fb660f790b936e42093036e0b519f0b50b24', 'decimals': '18', 'name': 'RealToken S 3588 Oakman Blvd Detroit MI', 'symbol': 'REALTOKEN-S-3588-OAKMAN-BLVD-DETROIT-MI', 'type': 'ERC-20'}, {'balance': '5000000000000000000', 'contractAddress': '0x9642a2379bc359c8b10ead2e06c4a4156bbb3f57', 'decimals': '18', 'name': 'RealToken S 14745 Plymouth Rd Detroit MI', 'symbol': 'REALTOKEN-S-14745-PLYMOUTH-RD-DETROIT-MI', 'type': 'ERC-20'}, {'balance': '2000000000000000000', 'contractAddress': '0x9abff92ddd896f3f7664ec232bb0a5db027d6724', 'decimals': '18', 'name': 'RealToken S 11310 Abington Ave Detroit MI', 'symbol': 'REALTOKEN-S-11310-ABINGTON-AVE-DETROIT-MI', 'type': 'ERC-20'}, {'balance': '2000000000000000000', 'contractAddress': '0xa14d2507a2b96adc13cb19642802fd4eaf9a8a32', 'decimals': '18', 'name': 'RealToken S 16810 Bringard Dr Detroit MI', 'symbol': 'REALTOKEN-S-16810-BRINGARD-DR-DETROIT-MI', 'type': 'ERC-20'}, {'balance': '3000000000000000000', 'contractAddress': '0xa3bb6ea63c0fbf259e16ffe0586d84b2c83d7229', 'decimals': '18', 'name': 'RealToken S 14511 Houston-Whittier St Detroit MI', 'symbol': 'REALTOKEN-S-14511-HOUSTON-WHITTIER-ST-DETROIT-MI', 'type': 'ERC-20'}, {'balance': '3800000', 'contractAddress': '0xa45da39e9e1d35d9af3d337324ad7b108cb12358', 'decimals': '0', 'name': 'shibafi ̥xyz', 'symbol': 'SHIB', 'type': 'ERC-20'}, {'balance': '5000000000000000000', 'contractAddress': '0xa6231a14bdb99ba817c211558fa8ebb2a74b959a', 'decimals': '18', 'name': 'RealToken S 7501 Stockton St Detroit MI', 'symbol': 'REALTOKEN-S-7501-STOCKTON-ST-DETROIT-MI', 'type': 'ERC-20'}, {'balance': '1000000000000000000', 'contractAddress': '0xa984e4c759bea433bef9239736d5f9a9af0e7389', 'decimals': '18', 'name': 'RealToken S 10703 McKinney St Detroit MI', 'symbol': 'REALTOKEN-S-10703-MCKINNEY-ST-DETROIT-MI', 'type': 'ERC-20'}, {'balance': '24850640000000000000', 'contractAddress': '0xaa2c0cf54cb418eb24e7e09053b82c875c68bb88', 'decimals': '18', 'name': 'RealT SOON Token', 'symbol': 'SOON', 'type': 'ERC-20'}, {'balance': '1000000000000000000', 'contractAddress': '0xab269dcd4a424cb8fa9432adc37d021c3d183578', 'decimals': '18', 'name': 'RealToken S 19731 Shields St Detroit MI', 'symbol': 'REALTOKEN-S-19731-SHIELDS-ST-DETROIT-MI', 'type': 'ERC-20'}, {'balance': '1000000000000000000', 'contractAddress': '0xb0bd62447ec79ae63407f34d27cb7e536c28179e', 'decimals': '18', 'name': 'RealToken S 14903 Promenade St Detroit MI', 'symbol': 'REALTOKEN-S-14903-PROMENADE-ST-DETROIT-MI', 'type': 'ERC-20'}, {'balance': '1000000000000000000', 'contractAddress': '0xb2960e73b260812e4326723c7136e7b1988a036a', 'decimals': '18', 'name': 'RealToken S 8060 Dreamsicle Dr Kissimmee FL', 'symbol': 'REALTOKEN-S-8060-DREAMSICLE-DR-KISSIMMEE-FL', 'type': 'ERC-20'}, {'balance': '1000000000000000000', 'contractAddress': '0xbf1a3181167e4979fd121ef247d9af4fc884cc46', 'decimals': '18', 'name': 'RealToken S 19400 Hickory St Detroit MI', 'symbol': 'REALTOKEN-S-19400-HICKORY-ST-DETROIT-MI', 'type': 'ERC-20'}, {'balance': '1', 'contractAddress': '0xc6f73786b757aa4a55a354fe096bf611dbb8afe6', 'decimals': '', 'id': '0', 'name': '! ! ! $ 030,000 BONE', 'symbol': 'Visit https://BoneVc.top to claim nft', 'type': 'ERC-1155'}, {'balance': '3000000000000000000', 'contractAddress': '0xcaf963cd253cf81664ecbcad71d043c47edf77fb', 'decimals': '18', 'name': 'RealToken S 11217 Beaconsfield St Detroit MI', 'symbol': 'REALTOKEN-S-11217-BEACONSFIELD-ST-DETROIT-MI', 'type': 'ERC-20'}, {'balance': '50000000000000000000', 'contractAddress': '0xcb444e90d8198415266c6a2724b7900fb12fc56e', 'decimals': '18', 'name': 'Monerium EUR emoney', 'symbol': 'EURe', 'type': 'ERC-20'}, {'balance': '1000000000000000000', 'contractAddress': '0xce111a198eb04f388aceb78c40ced6daf1b0514a', 'decimals': '18', 'name': 'RealToken S 272 N.E. 42nd Court Deerfield Beach FL', 'symbol': 'REALTOKEN-272-NE42nd-COURT-DEERFIELDBEACH-FL', 'type': 'ERC-20'}, {'balance': '1', 'contractAddress': '0xceb52ebea05fc49f9dca21eefdb827718be9992e', 'decimals': '', 'id': '0', 'name': 'tether.nu', 'symbol': 'Visit tether.nu to claim Airdrop', 'type': 'ERC-1155'}, {'balance': '1000000000000000000', 'contractAddress': '0xd0ef2feeef879eb6ceb23a7809f6bb39e13ff0a8', 'decimals': '18', 'name': 'RealToken S 10822 Whitehill St Detroit MI', 'symbol': 'REALTOKEN-S-10822-WHITEHILL-ST-DETROIT-MI', 'type': 'ERC-20'}, {'balance': '1000000000000000000', 'contractAddress': '0xd1bf0f64eba2f8babfdf71de3e5cc9e33f97a46a', 'decimals': '18', 'name': 'RealToken S 13510 Dale St Detroit MI', 'symbol': 'REALTOKEN-S-13510-DALE-ST-DETROIT-MI', 'type': 'ERC-20'}, {'balance': '3000000000000000000', 'contractAddress': '0xd84d9c58a93e3d4b0acc5ab5a5aa5e2fa6b7ab75', 'decimals': '18', 'name': 'RealToken S 18527-18529 Kelly Rd Detroit MI', 'symbol': 'REALTOKEN-S-18527-18529-KELLY-RD-DETROIT-MI', 'type': 'ERC-20'}, {'balance': '2912500000', 'contractAddress': '0xdbea5760f6c6b1552ff86d875afb28ddb1c504cd', 'decimals': '0', 'name': 'SHIBSWAP˳ORG', 'symbol': 'SHIB', 'type': 'ERC-20'}, {'balance': '1000000000000000000', 'contractAddress': '0xdcfe90e59b574839e028ec28e78018b84b6fcdab', 'decimals': '18', 'name': 'RealToken S 14622 Hubbell Ave Detroit MI', 'symbol': 'REALTOKEN-S-14622-HUBBELL-AVE-DETROIT-MI', 'type': 'ERC-20'}, {'balance': '35647437', 'contractAddress': '0xddafbb505ad214d7b80b1f830fccc89b60fb7a83', 'decimals': '6', 'name': 'USD//C on xDai', 'symbol': 'USDC', 'type': 'ERC-20'}, {'balance': '12433700725329926690', 'contractAddress': '0xe91d153e0b41518a2ce8dd3d7944fa863463a97d', 'decimals': '18', 'name': 'Wrapped XDAI', 'symbol': 'WXDAI', 'type': 'ERC-20'}, {'balance': '1000000000000000000', 'contractAddress': '0xec72022809156fb57564c8c3412e62dbc46298c3', 'decimals': '18', 'name': 'RealToken S 13595 Griggs St Detroit MI', 'symbol': 'REALTOKEN-S-13595-GRIGGS-ST-DETROIT-MI', 'type': 'ERC-20'}, {'balance': '1000000000000000000', 'contractAddress': '0xf3c4c10ab96f9b6d7719de63f4219f69078df976', 'decimals': '18', 'name': 'RealToken S 14881 Greenfield Rd Detroit MI', 'symbol': 'REALTOKEN-S-14881-GREENFIELD-RD-DETROIT-MI', 'type': 'ERC-20'}, {'balance': '2000000000000000000', 'contractAddress': '0xf580651ba2090fd8ba5a6bdc999f46dc6532f894', 'decimals': '18', 'name': 'RealToken S 14872 Ilene St Detroit MI', 'symbol': 'REALTOKEN-S-14872-ILENE-ST-DETROIT-MI', 'type': 'ERC-20'}], 'status': '1'}
DEBUG:root:Updating RealT Token to Finary: REALTOKEN-S-19530-HICKORY-ST-DETROIT-MI
DEBUG:root:Updating RealT Token to Finary: REALTOKEN-S-15019-STEEL-AVE-DETROIT-MI
DEBUG:root:Updating RealT Token to Finary: REALTOKEN-S-14916-HUBBELL-ST-DETROIT-MI
DEBUG:root:Updating RealT Token to Finary: REALTOKEN-S-5344-5346-BELVIDERE-ST-DETROIT-MI
DEBUG:root:Updating RealT Token to Finary: REALTOKEN-S-8003-S-INGLESIDE-AVE-CHICAGO-IL
DEBUG:root:Updating RealT Token to Finary: REALTOKEN-S-10610-BALFOUR-RD-DETROIT-MI
DEBUG:root:Updating RealT Token to Finary: REALTOKEN-S-15611-E-SEVEN-MILE-RD-DETROIT-MI
DEBUG:root:Updating RealT Token to Finary: REALTOKEN-S-4239-ALTER-RD-DETROIT-MI
DEBUG:root:Updating RealT Token to Finary: REALTOKEN-S-18438-MORANG-AVE-DETROIT-MI
DEBUG:root:Updating RealT Token to Finary: REALTOKEN-S-116-MONTEREY-ST-HIGHLAND-PARK-MI
DEBUG:root:Updating RealT Token to Finary: REALTOKEN-S-10147-SOMERSET-AVE-DETROIT-MI
DEBUG:root:Updating RealT Token to Finary: REALTOKEN-S-15015-WARD-ST-DETROIT-MI
DEBUG:root:Updating RealT Token to Finary: REALTOKEN-S-3522-3526-HARDING-ST-DETROIT-MI
DEBUG:root:Updating RealT Token to Finary: REALTOKEN-S-12580-MAIDEN-ST-DETROIT-MI
DEBUG:root:Updating RealT Token to Finary: REALTOKEN-S-11401-WINTHROP-ST-DETROIT-MI
DEBUG:root:Updating RealT Token to Finary: REALTOKEN-S-15225-BRINGARD-DR-DETROIT-MI
DEBUG:root:Updating RealT Token to Finary: REALTOKEN-S-15860-STEEL-AVE-DETROIT-MI
DEBUG:root:Updating RealT Token to Finary: REALTOKEN-S-11125-CRAFT-ST-DETROIT-MI
DEBUG:root:Updating RealT Token to Finary: REALTOKEN-S-14117-MANNING-ST-DETROIT-MI
DEBUG:root:Updating RealT Token to Finary: REALTOKEN-S-9244-MENDOTA-ST-DETROIT-MI
DEBUG:root:Updating RealT Token to Finary: REALTOKEN-S-3588-OAKMAN-BLVD-DETROIT-MI
DEBUG:root:Updating RealT Token to Finary: REALTOKEN-S-14745-PLYMOUTH-RD-DETROIT-MI
DEBUG:root:Updating RealT Token to Finary: REALTOKEN-S-11310-ABINGTON-AVE-DETROIT-MI
DEBUG:root:Updating RealT Token to Finary: REALTOKEN-S-16810-BRINGARD-DR-DETROIT-MI
DEBUG:root:Updating RealT Token to Finary: REALTOKEN-S-14511-HOUSTON-WHITTIER-ST-DETROIT-MI
DEBUG:root:Updating RealT Token to Finary: REALTOKEN-S-7501-STOCKTON-ST-DETROIT-MI
DEBUG:root:Updating RealT Token to Finary: REALTOKEN-S-10703-MCKINNEY-ST-DETROIT-MI
DEBUG:root:Updating RealT Token to Finary: REALTOKEN-S-19731-SHIELDS-ST-DETROIT-MI
DEBUG:root:Updating RealT Token to Finary: REALTOKEN-S-14903-PROMENADE-ST-DETROIT-MI
DEBUG:root:Updating RealT Token to Finary: REALTOKEN-S-8060-DREAMSICLE-DR-KISSIMMEE-FL
DEBUG:root:Updating RealT Token to Finary: REALTOKEN-S-19400-HICKORY-ST-DETROIT-MI
DEBUG:root:Updating RealT Token to Finary: REALTOKEN-S-11217-BEACONSFIELD-ST-DETROIT-MI
DEBUG:root:Updating RealT Token to Finary: REALTOKEN-272-NE42nd-COURT-DEERFIELDBEACH-FL
DEBUG:root:Updating RealT Token to Finary: REALTOKEN-S-10822-WHITEHILL-ST-DETROIT-MI
DEBUG:root:Updating RealT Token to Finary: REALTOKEN-S-13510-DALE-ST-DETROIT-MI
DEBUG:root:Updating RealT Token to Finary: REALTOKEN-S-18527-18529-KELLY-RD-DETROIT-MI
DEBUG:root:Updating RealT Token to Finary: REALTOKEN-S-14622-HUBBELL-AVE-DETROIT-MI
DEBUG:root:Updating RealT Token to Finary: REALTOKEN-S-13595-GRIGGS-ST-DETROIT-MI
DEBUG:root:Updating RealT Token to Finary: REALTOKEN-S-14881-GREENFIELD-RD-DETROIT-MI
DEBUG:root:Updating RealT Token to Finary: REALTOKEN-S-14872-ILENE-ST-DETROIT-MI
DEBUG:root:My RealT portfolio from the blockchain
DEBUG:root:{'0x10cde9d1e1a2d3b703f037a6788e04bc139cdf6f': {'name': 'REALTOKEN-S-19530-HICKORY-ST-DETROIT-MI', 'balance': 3.0, 'contractAddress': '0x10cde9d1e1a2d3b703f037a6788e04bc139cdf6f'}, '0x11d2b6613cbebb4172ef9507286e47c99e3a4b37': {'name': 'REALTOKEN-S-15019-STEEL-AVE-DETROIT-MI', 'balance': 1.0, 'contractAddress': '0x11d2b6613cbebb4172ef9507286e47c99e3a4b37'}, '0x18cc3ce7ed17e47c669982b6c94a0fe2a0b9606e': {'name': 'REALTOKEN-S-14916-HUBBELL-ST-DETROIT-MI', 'balance': 3.0, 'contractAddress': '0x18cc3ce7ed17e47c669982b6c94a0fe2a0b9606e'}, '0x1a1ec5ef70a643cd35376214e8a8f2ea0d92931d': {'name': 'REALTOKEN-S-5344-5346-BELVIDERE-ST-DETROIT-MI', 'balance': 2.0, 'contractAddress': '0x1a1ec5ef70a643cd35376214e8a8f2ea0d92931d'}, '0x27c30545dc2ba4b3bfdcb9f807a0214f4b06f034': {'name': 'REALTOKEN-S-8003-S-INGLESIDE-AVE-CHICAGO-IL', 'balance': 1.0, 'contractAddress': '0x27c30545dc2ba4b3bfdcb9f807a0214f4b06f034'}, '0x2e1db155a7b812f3fcb0dbc8ed3164b4705213b4': {'name': 'REALTOKEN-S-10610-BALFOUR-RD-DETROIT-MI', 'balance': 1.0, 'contractAddress': '0x2e1db155a7b812f3fcb0dbc8ed3164b4705213b4'}, '0x2f4974a3be7355cf8915ab34099f35ed44293128': {'name': 'REALTOKEN-S-15611-E-SEVEN-MILE-RD-DETROIT-MI', 'balance': 1.0, 'contractAddress': '0x2f4974a3be7355cf8915ab34099f35ed44293128'}, '0x3ac16e7177a55d5fd8f8ab58263d1c764d462fde': {'name': 'REALTOKEN-S-4239-ALTER-RD-DETROIT-MI', 'balance': 5.0, 'contractAddress': '0x3ac16e7177a55d5fd8f8ab58263d1c764d462fde'}, '0x458b169d6d9d5d021d61013e3a01bf7dee29dd90': {'name': 'REALTOKEN-S-18438-MORANG-AVE-DETROIT-MI', 'balance': 2.0, 'contractAddress': '0x458b169d6d9d5d021d61013e3a01bf7dee29dd90'}, '0x46b00b4bf04c2c94ae67576004a3a247b9400ade': {'name': 'REALTOKEN-S-116-MONTEREY-ST-HIGHLAND-PARK-MI', 'balance': 2.0, 'contractAddress': '0x46b00b4bf04c2c94ae67576004a3a247b9400ade'}, '0x4b293baa4703c5e7d480498bf3ccd8dc3d1297cd': {'name': 'REALTOKEN-S-10147-SOMERSET-AVE-DETROIT-MI', 'balance': 2.0, 'contractAddress': '0x4b293baa4703c5e7d480498bf3ccd8dc3d1297cd'}, '0x4d6876bd8d2f44d64b13a83a58cef81860329ef4': {'name': 'REALTOKEN-S-15015-WARD-ST-DETROIT-MI', 'balance': 1.0, 'contractAddress': '0x4d6876bd8d2f44d64b13a83a58cef81860329ef4'}, '0x550a0c95fe1762d9cb553402ccc65bcd71594692': {'name': 'REALTOKEN-S-3522-3526-HARDING-ST-DETROIT-MI', 'balance': 5.0, 'contractAddress': '0x550a0c95fe1762d9cb553402ccc65bcd71594692'}, '0x59de64861ddf9309be2d03d647d21c7a7609e384': {'name': 'REALTOKEN-S-12580-MAIDEN-ST-DETROIT-MI', 'balance': 2.0, 'contractAddress': '0x59de64861ddf9309be2d03d647d21c7a7609e384'}, '0x5d1cdfb3038f25c331fef652f75b3339ac4c52a1': {'name': 'REALTOKEN-S-11401-WINTHROP-ST-DETROIT-MI', 'balance': 1.0, 'contractAddress': '0x5d1cdfb3038f25c331fef652f75b3339ac4c52a1'}, '0x617e80813da122f0a25e09a731664b5530b8745c': {'name': 'REALTOKEN-S-15225-BRINGARD-DR-DETROIT-MI', 'balance': 1.0, 'contractAddress': '0x617e80813da122f0a25e09a731664b5530b8745c'}, '0x707d18db2f7ffdb79d99dedf8f2110cb8966d7ff': {'name': 'REALTOKEN-S-15860-STEEL-AVE-DETROIT-MI', 'balance': 5.0, 'contractAddress': '0x707d18db2f7ffdb79d99dedf8f2110cb8966d7ff'}, '0x7ca0118b50432d0a5c69f854ff017b6f22a10f88': {'name': 'REALTOKEN-S-11125-CRAFT-ST-DETROIT-MI', 'balance': 1.0, 'contractAddress': '0x7ca0118b50432d0a5c69f854ff017b6f22a10f88'}, '0x7dfeee178fc1f929a88ad69e4e8d493600dd26d0': {'name': 'REALTOKEN-S-14117-MANNING-ST-DETROIT-MI', 'balance': 4.0, 'contractAddress': '0x7dfeee178fc1f929a88ad69e4e8d493600dd26d0'}, '0x80d2956433a1622c336480ba5357350a30644c0a': {'name': 'REALTOKEN-S-9244-MENDOTA-ST-DETROIT-MI', 'balance': 1.0, 'contractAddress': '0x80d2956433a1622c336480ba5357350a30644c0a'}, '0x87b2fb660f790b936e42093036e0b519f0b50b24': {'name': 'REALTOKEN-S-3588-OAKMAN-BLVD-DETROIT-MI', 'balance': 1.0, 'contractAddress': '0x87b2fb660f790b936e42093036e0b519f0b50b24'}, '0x9642a2379bc359c8b10ead2e06c4a4156bbb3f57': {'name': 'REALTOKEN-S-14745-PLYMOUTH-RD-DETROIT-MI', 'balance': 5.0, 'contractAddress': '0x9642a2379bc359c8b10ead2e06c4a4156bbb3f57'}, '0x9abff92ddd896f3f7664ec232bb0a5db027d6724': {'name': 'REALTOKEN-S-11310-ABINGTON-AVE-DETROIT-MI', 'balance': 2.0, 'contractAddress': '0x9abff92ddd896f3f7664ec232bb0a5db027d6724'}, '0xa14d2507a2b96adc13cb19642802fd4eaf9a8a32': {'name': 'REALTOKEN-S-16810-BRINGARD-DR-DETROIT-MI', 'balance': 2.0, 'contractAddress': '0xa14d2507a2b96adc13cb19642802fd4eaf9a8a32'}, '0xa3bb6ea63c0fbf259e16ffe0586d84b2c83d7229': {'name': 'REALTOKEN-S-14511-HOUSTON-WHITTIER-ST-DETROIT-MI', 'balance': 3.0, 'contractAddress': '0xa3bb6ea63c0fbf259e16ffe0586d84b2c83d7229'}, '0xa6231a14bdb99ba817c211558fa8ebb2a74b959a': {'name': 'REALTOKEN-S-7501-STOCKTON-ST-DETROIT-MI', 'balance': 5.0, 'contractAddress': '0xa6231a14bdb99ba817c211558fa8ebb2a74b959a'}, '0xa984e4c759bea433bef9239736d5f9a9af0e7389': {'name': 'REALTOKEN-S-10703-MCKINNEY-ST-DETROIT-MI', 'balance': 1.0, 'contractAddress': '0xa984e4c759bea433bef9239736d5f9a9af0e7389'}, '0xab269dcd4a424cb8fa9432adc37d021c3d183578': {'name': 'REALTOKEN-S-19731-SHIELDS-ST-DETROIT-MI', 'balance': 1.0, 'contractAddress': '0xab269dcd4a424cb8fa9432adc37d021c3d183578'}, '0xb0bd62447ec79ae63407f34d27cb7e536c28179e': {'name': 'REALTOKEN-S-14903-PROMENADE-ST-DETROIT-MI', 'balance': 1.0, 'contractAddress': '0xb0bd62447ec79ae63407f34d27cb7e536c28179e'}, '0xb2960e73b260812e4326723c7136e7b1988a036a': {'name': 'REALTOKEN-S-8060-DREAMSICLE-DR-KISSIMMEE-FL', 'balance': 1.0, 'contractAddress': '0xb2960e73b260812e4326723c7136e7b1988a036a'}, '0xbf1a3181167e4979fd121ef247d9af4fc884cc46': {'name': 'REALTOKEN-S-19400-HICKORY-ST-DETROIT-MI', 'balance': 1.0, 'contractAddress': '0xbf1a3181167e4979fd121ef247d9af4fc884cc46'}, '0xcaf963cd253cf81664ecbcad71d043c47edf77fb': {'name': 'REALTOKEN-S-11217-BEACONSFIELD-ST-DETROIT-MI', 'balance': 3.0, 'contractAddress': '0xcaf963cd253cf81664ecbcad71d043c47edf77fb'}, '0xce111a198eb04f388aceb78c40ced6daf1b0514a': {'name': 'REALTOKEN-272-NE42nd-COURT-DEERFIELDBEACH-FL', 'balance': 1.0, 'contractAddress': '0xce111a198eb04f388aceb78c40ced6daf1b0514a'}, '0xd0ef2feeef879eb6ceb23a7809f6bb39e13ff0a8': {'name': 'REALTOKEN-S-10822-WHITEHILL-ST-DETROIT-MI', 'balance': 1.0, 'contractAddress': '0xd0ef2feeef879eb6ceb23a7809f6bb39e13ff0a8'}, '0xd1bf0f64eba2f8babfdf71de3e5cc9e33f97a46a': {'name': 'REALTOKEN-S-13510-DALE-ST-DETROIT-MI', 'balance': 1.0, 'contractAddress': '0xd1bf0f64eba2f8babfdf71de3e5cc9e33f97a46a'}, '0xd84d9c58a93e3d4b0acc5ab5a5aa5e2fa6b7ab75': {'name': 'REALTOKEN-S-18527-18529-KELLY-RD-DETROIT-MI', 'balance': 3.0, 'contractAddress': '0xd84d9c58a93e3d4b0acc5ab5a5aa5e2fa6b7ab75'}, '0xdcfe90e59b574839e028ec28e78018b84b6fcdab': {'name': 'REALTOKEN-S-14622-HUBBELL-AVE-DETROIT-MI', 'balance': 1.0, 'contractAddress': '0xdcfe90e59b574839e028ec28e78018b84b6fcdab'}, '0xec72022809156fb57564c8c3412e62dbc46298c3': {'name': 'REALTOKEN-S-13595-GRIGGS-ST-DETROIT-MI', 'balance': 1.0, 'contractAddress': '0xec72022809156fb57564c8c3412e62dbc46298c3'}, '0xf3c4c10ab96f9b6d7719de63f4219f69078df976': {'name': 'REALTOKEN-S-14881-GREENFIELD-RD-DETROIT-MI', 'balance': 1.0, 'contractAddress': '0xf3c4c10ab96f9b6d7719de63f4219f69078df976'}, '0xf580651ba2090fd8ba5a6bdc999f46dc6532f894': {'name': 'REALTOKEN-S-14872-ILENE-ST-DETROIT-MI', 'balance': 2.0, 'contractAddress': '0xf580651ba2090fd8ba5a6bdc999f46dc6532f894'}}
DEBUG:urllib3.connectionpool:Starting new HTTPS connection (1): api.realt.community:443
DEBUG:urllib3.connectionpool:https://api.realt.community:443 "GET /v1/token HTTP/1.1" 401 None
DEBUG:root:Tokens list details from API RealT
DEBUG:root:{'error': {'code': 401, 'message': 'Invalid referer source : '}}
Traceback (most recent call last):
  File "/usr/lib/python3.10/runpy.py", line 196, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "/usr/lib/python3.10/runpy.py", line 86, in _run_code
    exec(code, run_globals)
  File "/home/max/finarealt/finasync/finasync/__main__.py", line 60, in <module>
    sys.exit(main())
  File "/home/max/finarealt/finasync/finasync/__main__.py", line 50, in main
    result = sync_realt_rent(
  File "/home/max/finarealt/finasync/finasync/realt.py", line 266, in sync_realt_rent
    token_details = get_realt_token_details(key)
  File "/home/max/finarealt/finasync/finasync/realt.py", line 63, in get_realt_token_details
    item.get("uuid").lower(): {
AttributeError: 'str' object has no attribute 'get'

@nmathey
Copy link
Owner

nmathey commented Dec 21, 2023

Looks like a problem with your RealT API Key: did your provide your own fixed IP address when you requested it ?
"Invalid referer source" = wrong IP source using the API key sort of

DEBUG:urllib3.connectionpool:Starting new HTTPS connection (1): api.realt.community:443
DEBUG:urllib3.connectionpool:https://api.realt.community:443 "GET /v1/token HTTP/1.1" 401 None
DEBUG:root:Tokens list details from API RealT
DEBUG:root:{'error': {'code': 401, 'message': 'Invalid referer source : '}}

@m-condamin
Copy link
Author

Oh I'm sorry, in fact I'm doing the test from my work IP address, which is therefore not whitelisted.
I will do the test again this evening when I get home.
Thanks!

@m-condamin
Copy link
Author

m-condamin commented Dec 22, 2023

From my home IP address, i have the same log ...
My IP doesn't have changed.

What I don't understand is why signin works and returns me all my personal information if I'm not allowed to have access to it because of my IP address

@m-condamin
Copy link
Author

Solved !
The problem came from my network card which had IPv6 enabled. By using an IPv4 virtual machine, I no longer have any problems.

But I now have 2 questions:

  • the software has only synchronized some of the properties (1/3) that I own
  • it doesn't only sync the properties mentioned in the wallet configured in the json file, but on all my realt wallets, normal?

Thanks!

@nmathey
Copy link
Owner

nmathey commented Dec 23, 2023

the software has only synchronized some of the properties (1/3) that I own

Do you have some properties in RMM ? Sometime https://gnosis.blockscout.com/api is buggy... :(
Can you provide some properties example with their address?

it doesn't only sync the properties mentioned in the wallet configured in the json file, but on all my realt wallets, normal?

This is weird since I didn't code multiple wallet yet or maybe I misunderstood your point :)

@Sigri44
Copy link

Sigri44 commented Feb 12, 2024

Gm here, If you need to remove referer (because is not necessary to have it for this use), don't hesitate to ping me, i can remove it ! Have fun

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants