-1
"Schema Builder" -> Send "Device Profile" Schema to Ledger
{"reqId":1683198357199119479,"identifier":"2qzghpxTM5H81hUbYFmPR4","reason":"client request invalid: UnauthorizedClientRequest('Rule for this action is: 1 TRUSTEE signature is required OR 1 STEWARD signature is required OR 1 ENDORSER signature is required\\nFailed checks:\\nConstraint: 1 TRUSTEE signature is required, Error: Not enough TRUSTEE signatures\\nConstraint: 1 STEWARD signature is required, Error: Not enough STEWARD signatures\\nConstraint: 1 ENDORSER signature is required, Error: Not enough ENDORSER signatures',)","op":"REJECT"}





STEP5 - theCredDefGenerator creates Device Profile Credential Definition


================================
--------------------------------------------------
"theCredDefGenerator" -> Get "device profile " Schema from Ledger
Traceback (most recent call last):
  File "main.py", line 177, in <module>
    loop.run_until_complete(run())
  File "/usr/lib/python3.6/asyncio/base_events.py", line 484, in run_until_complete
    return future.result()
  File "main.py", line 151, in run
    (theCredDefGenerator['deviceprofile_schema_id'], theCredDefGenerator['deviceprofile_schema']) = await ledger.parse_get_schema_response(get_schema_response)
  File "/home/amit_jatola/.local/lib/python3.6/site-packages/indy/ledger.py", line 568, in parse_get_schema_response
    parse_get_schema_response.cb)
indy.error.LedgerNotFound
Remy Lebeau
  • 555,201
  • 31
  • 458
  • 770

2 Answers2

0

You are getting this error from the ledger:

client request invalid: UnauthorizedClientRequest('Rule for this action is: 1 TRUSTEE signature is required OR 1 STEWARD signature is required OR 1 ENDORSER signature is required

You either need to endorse this transaction, or create this transaction from an account with the correct permissions, such as a trustee or steward.

Rok Benko
  • 14,265
  • 2
  • 24
  • 49
-2

The error message you received suggests that the client request to send the "Device Profile" schema to the ledger was rejected due to insufficient signatures from the required entities (trustee, steward, endorser). The specific error indicates that there were not enough trustee, steward, and endorser signatures to meet the constraints set for this action.

To resolve this issue, you need to ensure that the client request includes the necessary signatures from the required entities. In Hyperledger Indy, certain actions or operations on the ledger may require specific levels of authorization, as defined by the access control rules set for the ledger.

Make sure that your client request is signed by the appropriate trustee, steward, or endorser entities according to the access control rules specified for the schema operation. This ensures that the request has the required level of authorization to perform the action.

Additionally, the second part of the error message suggests that there was an error in retrieving the "device profile" schema from the ledger. The error indicates that the requested schema was not found on the ledger. Double-check that the schema exists on the ledger with the correct schema ID and ensure that the request to retrieve the schema is properly formed.

It's important to review the documentation and guidelines of Hyperledger Indy to understand the specific access control rules and requirements for schema operations on the ledger and to ensure that the client request is properly authorized and formed.

  • It's so obvious answer by AI – Farkhod Abdukodirov Jun 27 '23 at 12:22
  • Ghassen Jemaî - Your five answers in May all appear likely to be entirely or partially written by AI (e.g., ChatGPT). Please be aware that [posting AI-generated content is not allowed here](//meta.stackoverflow.com/q/421831). If you used an AI tool to assist with any answer, I would encourage you to delete it. We do hope you'll stick around and be a valuable part of our community by posting *your own* quality content. Thanks! – NotTheDr01ds Jul 13 '23 at 16:48
  • **Readers should review this answer carefully and critically, as AI-generated information often contains fundamental errors and misinformation.** If you observe quality issues and/or have reason to believe that this answer was generated by AI, please leave feedback accordingly. – NotTheDr01ds Jul 13 '23 at 16:48