iotaledger / legacy-wallet-use-trinity-wallet-instead

IOTA Wallet
GNU General Public License v3.0
2.07k stars 414 forks source link

API Invalid Address Input #465

Open Berndinox opened 6 years ago

Berndinox commented 6 years ago

I'm now trying to attach to tangle since several days without success. I've tried some of the official listed Nodes as well as my own headless full node. Never succeeded.

Server Site: IRI 1.4.1.2 Wallet 2.5.4

Server Side message: 2017-11-17 16:35:43 [XNIO-1 task-27] INFO com.iota.iri.service.API - API Validation failed: Invalid addresses input

No offer warnings are displayed, nodes i've tried are all full synced. I also can see my History with most of my Transactions.

When attachting to tongle the Wallet says: Request Error

Fillder is througing a "Result 400 Code"

JSON Code:
{"command":"findTransactions","addresses":["MY-Address"]}
Reponse: "Invalide addresses input"

it's always the same Address resulting with that Error

i'm not able to fix it, every help would be welcome.

Berndinox commented 6 years ago

OK, after completely removing the app incl. appdata and reinstalling it seems to work now, but there is definitly a bug with the Client!

davila9210 commented 6 years ago

Having the same problem using a simple curl call: curl -s http://node01.iotatoken.nl:14265 -X POST -H 'X-IOTA-API-Version: 1.4.1' -H 'Content-Type: application/json' -d '{"command": "getBalances", "addresses": ["GBDSEBCDAVYVCCHEACILTATX9MGDWITKXMHFROZILRI9M99FRJJMWYYRVRBCMKQTBGRVPWYJURXTQO9T99GLCKHJMX"], "threshold": 100}' | python -m json.tool

Had no problems with iri 1.4.1.1 but now retrieving: {"error":"Invalid addresses input","duration":0}

chasenyc commented 6 years ago

Attempting something similar to @davila9210 with exact same result.

kartben commented 6 years ago

You want to remove the last 9 characters from the address, they actually are the checksum.

16:56 $ curl -s http://node01.iotatoken.nl:14265 -X POST -H 'X-IOTA-API-Version: 1.4.1' -H 'Content-Type: application/json' -d '{"command": "getBalances", "addresses": ["GBDSEBCDAVYVCCHEACILTATX9MGDWITKXMHFROZILRI9M99FRJJMWYYRVRBCMKQTBGRVPWYJURXTQO9T9"], "threshold": 100}' | python -m json.tool
{
    "balances": [
        "0"
    ],
    "duration": 0,
    "milestone": "9AMQKUXGLME9FWCUSXJWT9QBUKRGPALGGOJTSIEVWMAQOANLJNOAGYAWWSX9LADPCONAZNHGIYKN99999",
    "milestoneIndex": 302392
}