Skip to content
This repository was archived by the owner on Jan 14, 2020. It is now read-only.
This repository was archived by the owner on Jan 14, 2020. It is now read-only.

Error in deployment(Can`t search user from address) #63

@zxckiller

Description

@zxckiller

HI:
I try to deploy the Demo ,but I get the error below. Ubuntu 1604.

curl -i -d "password=1234" -d "method=getUser" -d "args={username:Supplier1}" -d "value=0" -d "txParams={gasLimit:100000000,gasPrice:1}"  http://localhost/bloc/v2.1/users/Admin_11656_8040735476/52febd683c031f9664d8d819374de94ada4c521d/contract/UserManager/79b85d7bfaf7099460d01d035226041c8f2bcb8e/call
{
  "returns": [
    "fcd6e2044f8a535f00e360185bd6a26a524131d3"
  ]
}

### query: {
  "query": "User?address=eq.fcd6e2044f8a535f00e360185bd6a26a524131d3"
}
curl -i http://localhost/cirrus/search/User?address=eq.fcd6e2044f8a535f00e360185bd6a26a524131d3
[]

### waitQuery: query results count undefined, expected count 1
### query: {
  "query": "User?address=eq.fcd6e2044f8a535f00e360185bd6a26a524131d3"
}
curl -i http://localhost/cirrus/search/User?address=eq.fcd6e2044f8a535f00e360185bd6a26a524131d3
[]

### waitQuery: query results count undefined, expected count 1
### query: {
  "query": "User?address=eq.fcd6e2044f8a535f00e360185bd6a26a524131d3"
}
curl -i http://localhost/cirrus/search/User?address=eq.fcd6e2044f8a535f00e360185bd6a26a524131d3
[]

Its repeat until timeout. The API /users/{user}/{userAddress}/contract/{contractName}/{contractAddress}/call `
in the doc return data is like this

 {
  "returns": [
    "tomahawk",
    "2",
    true
  ]
}

but the truly return is

{
  "returns": [
    "fcd6e2044f8a535f00e360185bd6a26a524131d3"
  ]
}

Can someone help? thx.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions