Closed dev-andreavendrame closed 1 year ago
Good afternoon,
You have to run the examples in the FirstEntity(https://github.com/alastria/alastria-identity-example/tree/master/exampleFirstEntity) folder first in the order listed. Once you run the ones in that folder, the examples you are trying to test will work correctly.
However, to avoid future problems, I advise you to create your own keystores and include them in the keystores folder, so that only you can use them in your tests, as the keystores in the folder are public and are used by everybody, so it is possible that someone else runs them behind you and you may encounter problems when running examples.
Best regards.
Good morning,
thanks for the suggestion, I'll create my own keystore, but can it be possible to receive Alastria creadentials in order to have an account and try everything that we need? Btw, I've run the examples in the exampleFirstEntity from 1 to 8 and then I've run the examples in the exampleCreateAlastriaID folder. It is correct that some errors are raised while running the second folder examples?
Thanks in advance.
Good afternoon,
The examples that you have to execute from the folder exampleFirstEntity are from 1 to 4 and if you want to check that everything is correct up to that point 7 and 8, but if you execute 5 and 6 what you are doing is eliminating that entity from the issuer role and the service provider role, so it is normal that examples from the folder exampleCreateAlastriaID fail because if the entity is not issuer it does not have the power to issue credentials.
Best regards
Good morning @dev-andreavendrame,
Has this issue been solved?
Greetings and thanks in advance.
Good afternoon @rober12 . The library doesn't work again. The authentication works, but everything related to the blockchain (even if data are mockups) doesn't work.
This is the error that I got trying to execute the "1.createEntityAlastriaID.js " file, the first to run in order to get the right response.
`andrea@iMac-di-Andrea exampleFirstEntity % node 1.createEntityAlastriaID.js
------ Example of prepare Alastria ID, addKey and createAlastrisID necessary to have an Alastria ID ------
------ A promise all where prepareAlastriaID and createAlsatriaID transactions are signed and sent ------
Error: Invalid JSON RPC response: "\r\n
Hi! We have tried to run some demo scripts of the alastria-identity-example repo and we have encountered some errors. The authentication scripts works (exampleAuthentication/1.authentication.js), but every other script gives a transaction error, for example the one that you see in the screenshot below:
Example 1
This is related to the creation of exampleCreateAlastriaID folder. As you can see the transaction is reverted and we cannot understand why. The same happens with the other scripts in this folder.
Can you help with this please?
Below the results from running the other provided examples.
Example 2
Example 3
Example 4