threefoldtecharchive / threefold_wallet_archive

Testing with the testnet.
Apache License 2.0
0 stars 1 forks source link

Transactions are failing in production for stellar endpoint funding. #268

Closed MathiasDeWeerdt closed 2 years ago

MathiasDeWeerdt commented 2 years ago

Most transactions are failing. This is the response:

config: {
    url: 'https://tokenservices.threefold.io/threefoldfoundation/transactionfunding_service/fund_transaction',
    method: 'post',
    data: '{"args":{"transaction":"AAAAAgAAAABhx2QHxJb0elM91jneAYepVrm6Mvoi7GdJi+J/GOarwAAAAAAB/dIoAAAAZgAAAAEAAAAAAAAAAAAAAABhlNYiAAAAAQAAAAR0ZXN0AAAAAgAAAAEAAAAAYcdkB8SW9HpTPdY53gGHqVa5ujL6IuxnSYvifxjmq8AAAAABAAAAAADdEqCRP642ObDU+3ftrIyE5PUg5SAn71YRLQ9ecSmLAAAAAVRGVAAAAAAAXVgpOD3jHY7+a6+oxwWIqMkAZhklMbQjl4Q6rNUkozAAAAAAAAGGoAAAAAEAAAAAYcdkB8SW9HpTPdY53gGHqVa5ujL6IuxnSYvifxjmq8AAAAABAAAAADev9wcCZl/My1fCfwiaPICBUuTu3m4XbESUNTASx7VYAAAAAVRGVAAAAAAAXVgpOD3jHY7+a6+oxwWIqMkAZhklMbQjl4Q6rNUkozAAAAAAO5rKAAAAAAAAAAABGOarwAAAAECucP0BjdHtdbd4Cd7Lfw8MOcN7ejuZoSIeW9Wx3xzAnhruqDLmR8r4h1zvD11g9kUznAsErU5hy4oerF4lpycJ"}}',
    headers: {
        Accept: 'application/json, text/plain, */*',
        'Content-Type': 'application/json;charset=utf-8'
    },
    transformRequest: [ [Function: transformRequest] ],
    transformResponse: [ [Function: transformResponse] ],
    timeout: 0,
    adapter: [Function: xhrAdapter],
    xsrfCookieName: 'XSRF-TOKEN',
    xsrfHeaderName: 'X-XSRF-TOKEN',
    maxContentLength: -1,
    validateStatus: [Function: validateStatus]
    },
    request: XMLHttpRequest {},
    response: {
    data: { error: '{"operations": ["op_success", "op_underfunded"]}' },
    status: 400,
    statusText: 'Bad Request',
    headers: { 'content-type': 'application/json', 'content-length': '67' },
    config: {
        url: 'https://tokenservices.threefold.io/threefoldfoundation/transactionfunding_service/fund_transaction',
        method: 'post',
        data: '{"args":{"transaction":"AAAAAgAAAABhx2QHxJb0elM91jneAYepVrm6Mvoi7GdJi+J/GOarwAAAAAAB/dIoAAAAZgAAAAEAAAAAAAAAAAAAAABhlNYiAAAAAQAAAAR0ZXN0AAAAAgAAAAEAAAAAYcdkB8SW9HpTPdY53gGHqVa5ujL6IuxnSYvifxjmq8AAAAABAAAAAADdEqCRP642ObDU+3ftrIyE5PUg5SAn71YRLQ9ecSmLAAAAAVRGVAAAAAAAXVgpOD3jHY7+a6+oxwWIqMkAZhklMbQjl4Q6rNUkozAAAAAAAAGGoAAAAAEAAAAAYcdkB8SW9HpTPdY53gGHqVa5ujL6IuxnSYvifxjmq8AAAAABAAAAADev9wcCZl/My1fCfwiaPICBUuTu3m4XbESUNTASx7VYAAAAAVRGVAAAAAAAXVgpOD3jHY7+a6+oxwWIqMkAZhklMbQjl4Q6rNUkozAAAAAAO5rKAAAAAAAAAAABGOarwAAAAECucP0BjdHtdbd4Cd7Lfw8MOcN7ejuZoSIeW9Wx3xzAnhruqDLmR8r4h1zvD11g9kUznAsErU5hy4oerF4lpycJ"}}',
        headers: [Object],
        transformRequest: [Array],
        transformResponse: [Array],
        timeout: 0,
        adapter: [Function: xhrAdapter],
        xsrfCookieName: 'XSRF-TOKEN',
        xsrfHeaderName: 'X-XSRF-TOKEN',
        maxContentLength: -1,
        validateStatus: [Function: validateStatus]
    },
    request: XMLHttpRequest {}
    },
    isAxiosError: true,
    toJSON: [Function (anonymous)]
}
MathiasDeWeerdt commented 2 years ago

Blijkbaar 16000 locked tokens door openstaande trade.

robvanmieghem commented 2 years ago
    │        │    │        │       │     └ {}
    │        │    │        │       └ []
    │        │    │        └ <bound method Transactionfunding_service.fund_transaction of <transactionfunding_service.Transactionfunding_service object at...
    │        │    └ <function GedisServer._execute at 0x7fb30732d1f0>
    │        └ GedisServer(
    │            instance_name='threebot',
    │            host='127.0.0.1',
    │            port=16000,
    │            enable_system_actor=True,
    │            run_async=True,
    │            _a...
    └ {'result': {'transaction_xdr': 'AAAAAgAAAACOYcMqV2DTqsUXoqu9SX1IM/nQqW7v2T6BRG+JVyPNmAAPQkAB/owqAAFNgwAAAAEAAAAAAAAAAAAAAABhl...
> File "/root/.cache/pypoetry/virtualenvs/js-sdk-N5daMEp6-py3.8/lib/python3.8/site-packages/jumpscale/servers/gedis/server.py", line 228, in _execute
    response["result"] = method(*args, **kwargs)
    │                    │       │       └ {}
    │                    │       └ []
    │                    └ <bound method Transactionfunding_service.fund_transaction of <transactionfunding_service.Transactionfunding_service object at...
    └ {}
  File "/root/.cache/pypoetry/virtualenvs/js-sdk-N5daMEp6-py3.8/lib/python3.8/site-packages/jumpscale/servers/gedis/baseactor.py", line 25, in wrapper
    result = func(*bound.args, **bound.kwargs)
             │     │     │       │     └ <property object at 0x7fb308da7bd0>
             │     │     │       └ <BoundArguments (self=<transactionfunding_service.Transactionfunding_service object at 0x7fb2fe09b1c0>)>
             │     │     └ <property object at 0x7fb308da7b80>
             │     └ <BoundArguments (self=<transactionfunding_service.Transactionfunding_service object at 0x7fb2fe09b1c0>)>
             └ <function Transactionfunding_service.fund_transaction at 0x7fb2fe09e9d0>

  File "/root/sandbox/var/downloaded_packages/threefoldfoundation_tft-stellar_transactionfunding_service_master/tft-stellar/ThreeBotPackages/transactionfunding_service/actors/transactionfunding_service.py", line 148, in fund_transaction
    raise j.exceptions.Value(f"missing a required argument: 'transaction'")
          │ └ <property object at 0x7fb3084346d0>
          └ <jumpscale.loader.J object at 0x7fb308431b80>

jumpscale.core.exceptions.exceptions.Value: missing a required argument: 'transaction'
robvanmieghem commented 2 years ago

did something change in the wallet code? I looks like the transaction argument is not passed.