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

["NOTICE","ERROR: bad req: std::get: wrong index for variant"] #31

Closed
alexgleason opened this issue Mar 28, 2023 · 3 comments
Closed

["NOTICE","ERROR: bad req: std::get: wrong index for variant"] #31

alexgleason opened this issue Mar 28, 2023 · 3 comments

Comments

@alexgleason
Copy link
Contributor

A few days ago I used strfry export to dump events, set up a new strfry server, and then used a combination of strfry import and strfry sync to try to get (most of?) the old events back over.

Everything was working until yesterday when things started to go bad. REQs would hang until I restarted strfry.

I was finally able to get a specific error for a REQ:

➜ echo '["REQ", "neinoienoei", {"authors": "79c2cae114ea28a981e7559b4fe7854a473521a8d22a66bbab9fa248eb820ff6"}]' | nostcat -s wss://relay.mostr.pub
["NOTICE","ERROR: bad req: std::get: wrong index for variant"]

I might just nuke this database.

@alexgleason
Copy link
Contributor Author

FWIW I had also upgraded from 41bd1c6 (old) to e5ec135 (current). I did not copy the database files themselves, just used export/import and sync.

@hoytech
Copy link
Owner

hoytech commented Mar 28, 2023

Hmmm I think that error might be because authors needs to be an array of pubkeys, where you're just giving it a single pubkey.

@alexgleason
Copy link
Contributor Author

Ahhh!! Okay clearly stupid mistake.

That being said, even after all the stuff last night I couldn't get I couldn't get Mostr events to show up in any client. I ended up starting with a fresh strfry database and it's working again. I'll let you know if I find anything else out. Thanks!

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