Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FIX: [CADT] Import organizations endpoint does not work properly #1091

Open
ccornick opened this issue May 17, 2024 · 2 comments
Open

FIX: [CADT] Import organizations endpoint does not work properly #1091

ccornick opened this issue May 17, 2024 · 2 comments

Comments

@ccornick
Copy link
Contributor

ccornick commented May 17, 2024

When I do PUT http://localhost:31310/v1/organizations/import and provide body { "orgUid": "454bcc302564388fb14183a04d0bbd9f84c9d22d3699c8131ea27ec95f6409e4" }

I get a success message from the RPC, but I see an odd log line in CADT logs that says [object] [Object]. I suspect we need more logging to figure out exactly what is going on, but it never actually imports the org.

@PlutoSmile
Copy link

I also have an error that prevents me from importing organizations in the testnet. I get a successful message from the RPC and the organizations stores are found in the datalayer but data cannot be found in a store:

2024-07-08 03:21:29 [1.7.16] [Info]: Store found in Datalayer: 167c41d35302bacac714d0297def0d3ffbd7f7588cb7110146ec8842c0da9f3.
2024-07-08 03:21:40 [1.7.16] [Error]: FAILED GETTING STORE DATA: 167c41d35302bacac714d0297def0d3ffbd7f7588cb7110146ec8842c0da9f3: {"error":"No generations found for store ID: 167c41d35302bacac714d0297def0d3ffbd7f7588cb7110146ec8842c0da9f3","success":false,"traceback":"Traceback (most recent call last):\n  File \"/home/xxxxxx/chia-blockchain/chia/rpc/util.py\", line 43, in inner\n    res = await f(request_data)\n  File \"/home/xxxxxx/chia-blockchain/chia/data_layer/data_store.py\", line 576, in get_tree_root\n    keys_values = await self.service.get_keys_values(store_id, root_hash)\n  File \"/home/xxxxxx/chia-blockchain/chia/data_layer/data_store.py\", line 581, in get_keys_values\n    keys_values = await self.service.get_keys_values(store_id, root_hash)\n  File \"/home/xxxxxx/chia-blockchain/chia/data_layer/data_store.py\", line 791, in get_keys_values\n    root = await self.get_tree_root()\n  File \"/home/xxxxxx/chia-blockchain/chia/data_layer/data_store.py\", line 576, in get_tree_root\n    generation = await self.get_tree_generation(store_ids[store_id])\nException: No generations found for store ID: {store_id_hex()}\n"}
2024-07-08 03:21:40 [1.7.16] [Info]: Unable to find store data for 167c41d35302bacac714d0297def0d3ffbd7f7588cb7110146ec8842c0da9f3
2024-07-08 03:21:40 [1.7.16] [Info]: No data found for store 167c41d35302bacac714d0297def0d3ffbd7f7588cb7110146ec8842c0da9f3

The organizations appear to have been created correctly on the testnet.

Here is the error: https://pastebin.com/YbdAeuR3

Here is my CADT setup for reference: https://pastebin.com/0sRX1dst

@ccornick
Copy link
Contributor Author

Hi @PlutoSmile

I think this is likely due to Chia not being pointed to the correct testnet blockchain. Unfortunately, the chia configure testnet -true command you used automatically points you to our development testnet (testnet11), when in reality you need to be pointed to "testnetA".

This is not properly documented in our readme currently, and is something we are trying to address this week.

I'd recommend waiting until we post documentation instructions on the readme, or if you'd like you may email me directly at [email protected] and request the proper config to be pointed to testnetA.

Apologies for the confusion, will help you clear it up as soon as possible!

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

No branches or pull requests

2 participants