stellar-deprecated / bridge-server

Deprecated. Go to https://github.com/stellar/go/tree/master/services/bridge
Apache License 2.0
88 stars 64 forks source link

[Bridge] [0.0.30] Error when creating a new account via /payment #98

Closed zulucrypto closed 6 years ago

zulucrypto commented 6 years ago

I upgraded from 0.0.27 to 0.0.30 and I'm no longer able to create a new account when making this request:

curl --fail -X POST http://localhost:8006/payment \
    -d "amount=10000000&destination=GCRJYNHOL62AZNGZQCLAVP4WW26JD5FLG2PPIKC5T3YR42NQJJJ7LK4Q"

The following error message shows up in the logs:

time="2018-02-22T18:43:09Z" level=info msg="Loading account" accountID=GCRJYNHOL62AZNGZQCLAVP4WW26JD5FLG2PPIKC5T3YR42NQJJJ7LK4Q service=Horizon
time="2018-02-22T18:43:09Z" level=info msg="Account does not exist" accountID=GCRJYNHOL62AZNGZQCLAVP4WW26JD5FLG2PPIKC5T3YR42NQJJJ7LK4Q service=Horizon
time="2018-02-22T18:43:09Z" level=error msg="Error loading account" error="StatusCode indicates error: {
  "type": "https://stellar.org/horizon-errors/not_found",
  "title": "Resource Missing",
  "status": 404,
  "detail": "The resource at the url requested was not found.  This is usually occurs for one of two reasons:  The url requested is not valid, or no data in our database could be found with the parameters provided.",
  "instance": "abf4cdc148f7/XHBYLr4xsD-000010"
}"
time="2018-02-22T18:43:09Z" level=error msg="Error submitting transaction" error="pq: relation "senttransaction" does not exist"

I'm running the following versions:

Horizon: v0.11.1-dirty Core: v9.1.0

bartekn commented 6 years ago

There are two errors:

zulucrypto commented 6 years ago

Thanks @bartekn , running --migrate-db after installing everything worked and it now creates the new account as expected.