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

Incorrect IDs generated? #136

Open
IngwiePhoenix opened this issue Jun 15, 2023 · 7 comments
Open

Incorrect IDs generated? #136

IngwiePhoenix opened this issue Jun 15, 2023 · 7 comments

Comments

@IngwiePhoenix
Copy link

IngwiePhoenix commented Jun 15, 2023

Hello!

I was setting up a relay and encountered the problem that writing my notes and alike to that relay returned a lot of "bad id" errors: hoytech/strfry#49 (comment)

As I am not very familiar with the Nostr protocol's depths, all I can do is share as much as I know.

I spent some time posting and reacting through Nostrid by logging in with my Private Key (nsec...). Some people even responded to me and such - meaning that somehow, somewhere my notes do get delivered and work.

But when I attempt to use the Upload All button, I can see the events being sent in, but also rejected for having a bad id.

As you can see in the linked issue, Hoytech attempted re-hash an example event I copied from the logs and got an entirely different ID.

Anything I can do or configure to make this work?

Thanks!

EDIT: Forgot to mention; I am using Version: 1.33.1+282fe274 from the MSIX package.

@lapulpeta
Copy link
Owner

I replied in the other issue because it has more details, but I'll leave this open just in case the problem is on this side.

@lapulpeta
Copy link
Owner

Can you try this release to see if it works?

@IngwiePhoenix
Copy link
Author

Nope, no dice. I did not change my timezone this time, keeping with my standard European/Berlin one.

Logs from strfry as before:


Jun 22 16:26:12 birb strfry[1199665]: 2023-06-22 16:26:12.390 (144207.642s) [Ingester 0      ]INFO| [312] dumpInEvent: ["EVENT",{"id":"021a2a617414be2caafbce9ae3e644ff9337b6cecea66fafee4e932de373cdcc","pubkey":"5e336907a3dda5cd58f11d162d8a4c9388f9cfb2f8dc4b469c8151e379c63bc9","created_at":1687090450,"kind":5,"content":"","tags":[["e","e0e993b7ec2f54d7fd9dc5e688a1e27c2f77df28b0d8a95ad473324b5682045f"]],"sig":"1a88da3708975a355f0dfa33ad070dfb4d2af9e7a8cc845877efe2f2792cb5c665ebd9745028eb15c065def54b4281732a71e81aa192f0d5793d8e7f22930836"}]
Jun 22 16:26:12 birb strfry[1199665]: 2023-06-22 16:26:12.395 (144207.646s) [Ingester 0      ]INFO| Rejected invalid event: bad event id
Jun 22 16:26:12 birb strfry[1199665]: 2023-06-22 16:26:12.395 (144207.647s) [Ingester 0      ]INFO| [312] dumpInEvent: ["EVENT",{"id":"028173756d15b376732274442384d05304d2a28b049ad783905f8e3688263897","pubkey":"5e336907a3dda5cd58f11d162d8a4c9388f9cfb2f8dc4b469c8151e379c63bc9","created_at":1686836407,"kind":3,"content":"{\"wss://relay.nostr.band/\":{\"read\":true,\"write\":false},\"wss://nos.lol/\":{\"read\":true,\"write\":true},\"wss://nostr.ingwie.me/\":{\"read\":true,\"write\":true},\"wss://relay.snort.social\":{\"read\":true,\"write\":true}}","tags":[["p","d3916f42beae421694ce03938c32f4f71f967b05068b01d713b461165bdd6446"],["p","4ac24d2ee822a34a9881eff526bf71f39704419837e4c14b34642d82e111ed39"],["p","c43bbb58e2e6bc2f9455758257f6ba5329107bd4e8274068c2936c69d9980b7d"]],"sig":"aad56ec1e412957cd4c0b2c653061c51ab3330493cba41f66ad2e3472068f4e167d4ff1cc21be73399e972f6383b2beae924b21621efe4361284140d57e65f97"}]
Jun 22 16:26:12 birb strfry[1199665]: 2023-06-22 16:26:12.395 (144207.647s) [Ingester 0      ]INFO| Rejected invalid event: bad event id
Jun 22 16:26:12 birb strfry[1199665]: 2023-06-22 16:26:12.395 (144207.647s) [Ingester 0      ]INFO| [312] dumpInEvent: ["EVENT",{"id":"0bc534823aa6c247766d598ad42cc0726911b183145340887a26e3bccd2cf28c","pubkey":"5e336907a3dda5cd58f11d162d8a4c9388f9cfb2f8dc4b469c8151e379c63bc9","created_at":1686759536,"kind":7,"content":"+","tags":[["e","caeb5711dc51a534b1b599c4b34820262003d7e8367f91dff51d84dc07021672"],["p","89d1ce9164f1f172daaa9c784153178cb1dec7912bf55f5dc07e0f1dabe40e6c"]],"sig":"9b1e2d07682f8e14658c78124537ae2bd9d4851cc1c988075ef043071200b6f0cd167bc35661511dd4da292ac3b6148c976d12be694aae2819f7fdc5b85832dc"}]
Jun 22 16:26:12 birb strfry[1199665]: 2023-06-22 16:26:12.395 (144207.647s) [Ingester 0      ]INFO| Rejected invalid event: bad event id
Jun 22 16:26:12 birb strfry[1199665]: 2023-06-22 16:26:12.397 (144207.649s) [Ingester 0      ]INFO| [312] dumpInEvent: ["EVENT",{"id":"12cfc8cd9463965d01d214f0e9a932fd346546bf37b5a85997b7f3ff27593b49","pubkey":"5e336907a3dda5cd58f11d162d8a4c9388f9cfb2f8dc4b469c8151e379c63bc9","created_at":1686761901,"kind":7,"content":"💯","tags":[["e","425a6615756ff6385fb043976095fd7cea2f51cb55032318c545bb3f096be305"],["p","3f770d65d3a764a9c5cb503ae123e62ec7598ad035d836e2a810f3877a745b24"]],"sig":"0377dc12281e1115b4707bed7ee49f69b9af127cadfb6f91fc5c02fe1415e0a6519c8fb5e0d47d3a931a64e81d232500e0676ebca9f1038837d46637636ee461"}]
Jun 22 16:26:12 birb strfry[1199665]: 2023-06-22 16:26:12.397 (144207.649s) [Ingester 0      ]INFO| Rejected invalid event: bad event id
(... it continues quite a way down, been very active! ...)

@IngwiePhoenix
Copy link
Author

BTW, reported version is Version: 1.33.1+282fe274.

I did install the MSIX, it auto-opened the app, and that is what I used to test.

@lapulpeta
Copy link
Owner

Hm it seems like you're still running the old version. Can you try this one?

@IngwiePhoenix
Copy link
Author

Had to re-install it; Windows complained about the installed version being equal. So I opted to un-install my current version, re-install, re-add my key and add my own relay then.

After that:

Jun 22 16:49:42 birb strfry[1199665]: 2023-06-22 16:49:42.725 (145617.977s) [Ingester 2      ]INFO| [317] dumpInEvent: ["EVENT",{"id":"021a2a617414be2caafbce9ae3e644ff9337b6cecea66fafee4e932de373cdcc","pubkey":"5e336907a3dda5cd58f11d162d8a4c9388f9cfb2f8dc4b469c8151e379c63bc9","created_at":1687090450,"kind":5,"content":"","tags":[["e","e0e993b7ec2f54d7fd9dc5e688a1e27c2f77df28b0d8a95ad473324b5682045f"]],"sig":"1a88da3708975a355f0dfa33ad070dfb4d2af9e7a8cc845877efe2f2792cb5c665ebd9745028eb15c065def54b4281732a71e81aa192f0d5793d8e7f22930836"}]
Jun 22 16:49:42 birb strfry[1199665]: 2023-06-22 16:49:42.725 (145617.977s) [Ingester 2      ]INFO| Rejected invalid event: bad event id
Jun 22 16:49:42 birb strfry[1199665]: 2023-06-22 16:49:42.728 (145617.980s) [Ingester 2      ]INFO| [317] dumpInEvent: ["EVENT",{"id":"04140e9c0a9f77743ec1b4a8a472bf186d0d987dc97a8fb94b04eeef3a4fc9f0","pubkey":"5e336907a3dda5cd58f11d162d8a4c9388f9cfb2f8dc4b469c8151e379c63bc9","created_at":1687416384,"kind":6,"content":"","tags":[["e","fae8c173a8ae237f2d40b4dc04e29c191a8fd3db7abc28ba583da4cd508215d9",""],["p","9f381ea908656fc50413dbb87790b237311b7ef8a11073901285c5c4fa074f90"]],"sig":"41f7d5ebeb972338ca8db90a3140464b5f8a0efce96e9388615bb128b05d41d018f0415c63e775172711d7046726761e94e4a222a59c9cb38b47004b77b328ca"}]
Jun 22 16:49:42 birb strfry[1199665]: 2023-06-22 16:49:42.728 (145617.980s) [Ingester 2      ]INFO| Rejected invalid event: bad event id
Jun 22 16:49:42 birb strfry[1199665]: 2023-06-22 16:49:42.731 (145617.983s) [Ingester 2      ]INFO| [317] dumpInEvent: ["EVENT",{"id":"2c0978924a391f1c058cd701683d1baf39372aaee188e954e6e2bd935f6d5d1b","pubkey":"5e336907a3dda5cd58f11d162d8a4c9388f9cfb2f8dc4b469c8151e379c63bc9","created_at":1687416817,"kind":6,"content":"","tags":[["e","2ba6c0a8cf40dc3baefb090b4dd0300ac55792d11f3d426d11ca26f6f1c3829d",""],["p","9936a53def39d712f886ac7e2ed509ce223b534834dd29d95caba9f6bc01ef35"]],"sig":"6236e1f7f120d59c2729d9961c5d5adc58dc355e686ce848dc0218edecd7b9bdf2471af2d951a0af972782256da79139ccbc1f97035b0f5a7c31ef6a226eb853"}]
Jun 22 16:49:42 birb strfry[1199665]: 2023-06-22 16:49:42.731 (145617.983s) [Ingester 2      ]INFO| Rejected invalid event: bad event id

Reported version: Version: 1.33.2+f70c8c77

@lapulpeta
Copy link
Owner

Would it be possible for me to look into your database? Maybe you can make a clean installation and create a disposable account and try to push some events to your relay. I'd like to see if the events are stored OK. The database should be located here C:\Users\[username]\AppData\Local\Packages\[guid]\LocalState\Nostr.sqlite.db.

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