adding peer to write list to the :dbname data store is failing #20
Comments
/assign @phillmac |
@pontiyaraja , is this the same issue we are facing with If yes, I think this is a bug that must be fixed ASAP. Can @phillmac advise on the situation? |
Some of the endpoints will return {} on success. The simplest check is to verify if the response is HTTP code |
@phillmac it's not a question it's a bug. I executed command
I got success response with empty object When I get information about my DB, I'm not getting updated write data
|
Note: curl -X POST https://localhost:3000/db/docstore/access/write -d 'id=045757bffcc7a4... is returning success response with empty object even I pass wrong data. And I'm using id ant public key or private key |
Should we close the issue? |
Theres's a change in the default access controller that needs to go thru the release pipeline, then I'll close this issue |
I'm trying to append peer ids to give write access in my system but its failing to append.
curl -X POST https://localhost:3000/db/docstore/access/write -d 'id=045757bffcc7a4...
and the code returns
{}
empty object{ method: ['POST', 'PUT'], path: '/db/{dbname}/access/write', handler: dbMiddleware( async (db, request, _h) => { await db.access.grant('write', request.payload.id) return {}; }) }
The text was updated successfully, but these errors were encountered: