-
Notifications
You must be signed in to change notification settings - Fork 30
Radiks : problem with encryption while saving models #97
Comments
@bricemacias, how do you authenticate? When are you calling Which documentation didyou follow? (so that it could be improved..) |
@friedger, I followed the following documentations :
I also looked into the code of different examples on github like banter, lettermesh, debut social network, and goodtimes I used
I'm using hooks and functional components, so this replaces the usual
everything works perfectly. I also tried the
And this time, the user is created, and I can console.log it, but when I try to save it, it also puts an error like described on my previous comment :
and
I looked into radiks source code, isn't it this related to the fact that I'm not creating groups before trying to save the user ? Because I have the impression that radiks uses a group signing key to encrypt data, and not a single User signing key, which would explain why saving data without encryption using radiks works, but if that's the case, it's nowhere around in any documentation... |
@bricemacias , you don't need to make a Would you be able to share a code sample that reproduces the problem? What's odd is you're getting 500 errors when uploading the file to Gaia. There must be something funky going on with the payload that is being sent to Gaia. I've actually never seen this error you're seeing:
Can you share a code snippet of the |
I tried your code ,but the bug still works ಥ_ಥthis is my chrome console log
this is my radiks-server error logs
This login process is very confusing,espasically the code :await User.createWithCurrentUser() That` means I will create a new user to my radiks-server. But when is the usersession inject the User Obj, can support more clearly code like this: // After did the SignIn operation
const sessionNow = getUserSessionNow()
// if login get the User Obj By session or others
const currentUser = getUserBySessionNow( sessionNow )
// return the status clearly
const [pending,error,success ] = await currentUser.create()
} Sorry for saying so much, thank you very much for your cool work!👍 |
Hello, I have the same issue with the function Error Log:
|
Hello, everyone, |
Hi, I just started using radiks and my own radiks-server on my Dapp.
I know my radiks-server is working because I can fetch radiks User or Model with fetchList(), even if I get an empty array because nothing is saved yet. If I change the apiServer in radiks configure, the fetchList() method fails. That way, when I put back the correct apiServer url in configure and I get empty array, at least I know my radiks server is up and running.
The problem is when I try to save anything with the save() method.
If I use the example given in the documentation with the simple Todo Model :
If I create a new Todo model, and then try to use save(), I get the following error :
Same, if y create a user with the method User.currentUser() , and then try to save it, I get the following error :
and
Finally, if this time I try to create User with the method User.createWithCurrentUser() method, I get the following error :
With another 500 error after that, saying
💡NB : If I try the normal getFile() and putFile() methods without using radiks, that works perfectly though
After some tries, I managed to save a Todo, but apparently it’s an encryption problem. When I get the list of Todos I created, inside of the attributes of the object I get a blockstack error saying :
and when I create a Todo, I get the following error :
And if I create a Todo, but this time whitout encryption, everything works perfectly.
I really don't know if this is related to me or to radiks itself...
The text was updated successfully, but these errors were encountered: