sap-tutorials / Tutorials

Tutorials on sap.com
https://developers.sap.com/tutorial-navigator.html
Creative Commons Attribution 4.0 International
718 stars 772 forks source link

Test Hyperledger Fabric Chaincode API #3912

Closed DinavahiR closed 4 years ago

DinavahiR commented 5 years ago

Tutorial URL: https://developers.sap.com/tutorials/blockchain-test-chaincode.html

Please specify the step you are referring to: Copy and paste the block Writes entry here and click Submit Answer

Whatever we paste from the Writes entry, system rejects it. What is expected as answer?

heytombeck commented 5 years ago

Hi there - based on the key and value fields provided in step 4, the write entry should be:

{
  "key": "id001",
  "value": "Hello World!"
}

Does this work for you?

DinavahiR commented 5 years ago

Tried that, didn't work.

Also tried including the transaction and chaincode id... Nothing works

On Wed, Sep 18, 2019, 12:43 PM Tom Beck notifications@github.com wrote:

Hi there - based on the key and value fields provided in step 4, the write entry should be:

{ "key": "id001", "value": "Hello World!" }

Does this work for you?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/SAPDocuments/Tutorials/issues/3912?email_source=notifications&email_token=AJAMILKEOXTXGNOZ6OWA2CLQKHIIXA5CNFSM4IXZXJP2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD67BZOA#issuecomment-532552888, or mute the thread https://github.com/notifications/unsubscribe-auth/AJAMILLVO4CQTPRXAVQS7L3QKHIIXANCNFSM4IXZXJPQ .

heytombeck commented 5 years ago

That's unfortunate, sorry about that. Can you try taking a screen grab for me and attaching that here? I've tried to replicate this and it's working for me in my standard account.

Step 6 answer

DinavahiR commented 5 years ago

Here is the screenshot

[image: image.png]

Regards Rajasekhar Dinavahi

Mobile: +91 9581515333

Your value doesn't decrease based on someone's inability to see your worth

On Wed, 18 Sep 2019 at 13:00, Tom Beck notifications@github.com wrote:

That's unfortunate, sorry about that. Can you try taking a screen grab for me and attaching that here? I've tried to replicate this and it's working for me in my standard account.

[image: Step 6 answer] https://user-images.githubusercontent.com/43130875/65126021-d2016600-d9f6-11e9-8aee-0066ddbeca6c.png

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/SAPDocuments/Tutorials/issues/3912?email_source=notifications&email_token=AJAMILN64NTE2MA35EEUBZTQKHKH7A5CNFSM4IXZXJP2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD67DDPQ#issuecomment-532558270, or mute the thread https://github.com/notifications/unsubscribe-auth/AJAMILNS4ZWJH4XGSMJUZLDQKHKH7ANCNFSM4IXZXJPQ .

heytombeck commented 5 years ago

I'm just seeing '[image: image.png]' here currently.

DinavahiR commented 5 years ago

Regards Rajasekhar Dinavahi

Mobile: +91 9581515333

Your value doesn't decrease based on someone's inability to see your worth

On Wed, 18 Sep 2019 at 17:05, Tom Beck notifications@github.com wrote:

I'm just seeing '[image: image.png]' here currently.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/SAPDocuments/Tutorials/issues/3912?email_source=notifications&email_token=AJAMILLWYWUAPVH3PJDP4GTQKIG63A5CNFSM4IXZXJP2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD67YGEA#issuecomment-532644624, or mute the thread https://github.com/notifications/unsubscribe-auth/AJAMILKXIN2HPYL63K7ADF3QKIG63ANCNFSM4IXZXJPQ .

thecodester commented 5 years ago

@DinavahiR I don;t see the image either -- perhaps use the GitHub web interface for messaging

DinavahiR commented 5 years ago

Error

Hope you can see the error I encounter in Step 6. Help me please!

heytombeck commented 5 years ago

Oh I see, it looks like your key field is "id-001" and the answer is set to only allow "id001" without the dash. It's a very minor difference, but hopefully removing that (even just for your answer here) should allow you to successfully submit the answer.

Thanks for your patience with this and for raising an interesting point about the way the answers are scored.

DinavahiR commented 5 years ago

Heytombeck, Thanks a ton! Am able to successfully complete step 6. Have a nice evening! Regards, Raj

thecodester commented 5 years ago

Do you plan to update the question? You can specify a validation where it is a substring and does not need to match completely.

thecodester commented 4 years ago

@heytombeck Did you want to update the validation (see previous comment)?

thecodester commented 4 years ago

Thank you for your feedback. The issue seems to be resolved, so I am closing the issue.

If you still have questions, feel free to reopen the issue.

@heytombeck Is there still anything needed to be updated in the tutorial?

heytombeck commented 4 years ago

@thecodester sorry for the late reply, the comment came in whilst I was away from work for a few weeks. I'm happy with the existing validation, but will update it if it causes any further issues.