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
Need to be more clear about Node and SEA, Node relay needs require (ES5 and not ES6) #1264
Comments
The problem persists after few login and logout. "Signature did not match." in gundb. When using this relay server ('https://gun-manhattan.herokuapp.com/gun',) it went away. How can it work with this default relay server and not with ours? Wanna use my own relay server. Taken the code from here examples but still errs. |
Maybe I changed the relay node to ES6 script not using
All works great until I refresh the page. Got an error "Signature did not match." |
Ok now understood you need to use ES5 with gun relay server and not ES6: please see here #636 Also a note with express. This is server.js file
this is package.js file
|
Ok after few try again receive "User is already being created or authenticated!" from front end and "Signature did not match." in gundb relay server. Back to the beginning. |
@bitdom8 You need to wait until the user is created and/or authenticated before you can work with that user's graph. gun.user().create('someuser', 'somepass') // authenticates automatically after user creation IIRC
// or
let pair = await SEA.pair()
gun.auth(pair)
// Wait for the `'auth'` event
gun.on('auth', ack => {
if(ack.ok) console.log('user is authenticated') // now you can do stuff with the user's graph
}) |
I had encountered with converting "require" statements on node relay server to Now all is well with "require" on server "relay" side. Had nothing to do with user or SEA but have seen this is issue most of the times. thanks @draeder |
Checked react tutorial and learned that you need to install these 2 packages for node to be working. Need to be more clear as it takes more time to even install default node server:
npm install --save buffer text-encoding
I had "Signature did not match." on gundb data base a lot of times before fixing it
The text was updated successfully, but these errors were encountered: