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

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

Open
zxckiller opened this issue Aug 17, 2017 · 2 comments
Open

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

zxckiller opened this issue Aug 17, 2017 · 2 comments

Comments

@zxckiller
Copy link

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.

@samrit
Copy link
Contributor

samrit commented Jan 22, 2018

@zxckiller Apologies for the late response. Is this still an issue?

@ronakshethia
Copy link

facing same issue can someone help it out ?

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

No branches or pull requests

3 participants