authenteq-zz / java-bigchaindb-driver

Official BigchainDB Java driver
https://www.bigchaindb.com
Apache License 2.0
32 stars 22 forks source link

not working on test.bigchaindb.com #82

Open dominic-healid opened 6 years ago

dominic-healid commented 6 years ago

I tried to execute this

Transaction transaction = BigchainDbTransactionBuilder.init() .addAsset("firstname", "Dominic") .addAsset("lastname", "Smith") .operation(Operations.CREATE) .buildAndSign((EdDSAPublicKey)keyPair.getPublic(), (EdDSAPrivateKey)keyPair.getPrivate()) .sendTransaction(); it worked fine I got the transaction id but when searching the asset or getting the transaction itself it couldn't find it, any thoughts why?

https://test.bigchaindb.com/api/v1/assets?search=Dominic

P.S it was working fine before

adonnini commented 6 years ago

Hi,

I could be wrong but the syntax you are using does not work any more.

For example. .addAsset does not exist any longer. The call now is .addAssets and the parameters are different.

I hope this helps.

Thanks,

Alex Donnini

dominic-healid commented 6 years ago

@adonnini thanks for the reply.

Actually, that's what I've been using, so I even tried the .addAsset it doesn't work too.

It's really weird as it was working fine before.

adonnini commented 6 years ago

Hi,

This code works for me

transaction2 = BigchainDbTransactionBuilder.init()
        .addAssets(assetDataString, String.class)
        .addMetaData("what - "+"My third BigchainDB transaction")
        .addMetaData("this - "+"My 3rd metadata BigchainDB transaction")
        .operation(Operations.CREATE)
        .buildAndSign((EdDSAPublicKey) keyPair.getPublic(), (EdDSAPrivateKey) keyPair.getPrivate())
.sendTransaction();

Thanks,

Alex Donnini

dominic-healid commented 6 years ago

Not working on me. Do you have the transaction id and are you able to access it on test.bigchaindb.com

executing the code works fine but fetching it on the test host is not working. It says not found

adonnini commented 6 years ago

Hi, I seem to be able to retrieve the transaction id. Did you check your application statistics on testnet.bigchaindb.com? Thanks, Alex Donnini

dominic-healid commented 6 years ago

Hi @adonnini,

I think I found the issue, it must be on the version of the driver that I'm using. I'm using an older version, I haven't confirm if that really is the issue but I'm quite certain that it is.

I'll upgrade and I'll let you know. Thanks for responding.

Dominic