barkyq / gnost-relay Goto Github PK
View Code? Open in Web Editor NEWnostr relay written in go
License: GNU General Public License v3.0
nostr relay written in go
License: GNU General Public License v3.0
I only do this:
~ $ websocat ws://localhost:8080
["AUTH","g0ezuvzAIDAUahnu8qgBGw=="]
^C
~ $ websocat ws://localhost:8080
websocat: WebSocketError: WebSocket protocol error
websocat: error running
~ $
In server side:
2023/05/25 10:03:43 (gnost-relay) database initialized: 0 expired events deleted
127.0.0.1:16430 false false false
panic: EOF
goroutine 12 [running]:
main.handle_websocket.func3()
/home/_nostr/gnost-relay/websocket.go:250 +0x10c5
created by main.handle_websocket
/home/_nostr/gnost-relay/websocket.go:134 +0xa0a
panic: read tcp 127.0.0.1:4001->127.0.0.1:26913: read: connection reset by peer
goroutine 84 [running]:
main.handle_websocket.func3()
/home/_nostr/gnost-relay/websocket.go:198 +0x113f
created by main.handle_websocket
/home/_nostr/gnost-relay/websocket.go:134 +0xa0a
NIP-01 and NIP-11 was supported in this software, But does not listed by default.
2023-05-27 00:06:23.137 WIB [92823] ERROR: duplicate key value violates unique constraint "db1_ididx"
2023-05-27 00:06:23.137 WIB [92823] DETAIL: Key (id)=(a7db94f52765b75949a4dd728f3374ba09b12ddabab920458af30bdd9e7a9c27) already exists.
2023-05-27 00:06:23.137 WIB [92823] STATEMENT: INSERT INTO db1 (id, pubkey, created_at, kind, ptags, etags, dtag, expiration, gtags, raw)
VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10);
(may not problematic)
gnost_relay_service | panic: failed to encode args[2]: unable to encode 1693170183133 into binary format for int4 (OID 23): 1693170183133 is greater than maximum value for int4
gnost_relay_service |
gnost_relay_service | goroutine 55 [running]:
gnost_relay_service | main.ReqSubmissionHandler.func2(0xc00010a240?, 0xc00009fed0, 0xc00009fe48, 0xc00039e030, {0xc00009fdc8, 0x0, 0x0}, 0xc000394040, 0x0?)
gnost_relay_service | /go/src/github.com/barkyq/gnost-relay/main.go:615 +0x1af
gnost_relay_service | main.ReqSubmissionHandler(0xc0002a6300, 0xc0002a6360, 0xc00010a240, 0x0?)
gnost_relay_service | /go/src/github.com/barkyq/gnost-relay/main.go:653 +0x38e
gnost_relay_service | created by main.main in goroutine 1
gnost_relay_service | /go/src/github.com/barkyq/gnost-relay/main.go:167 +0x846
nginx_service | 172.18.0.1 - - [27/Aug/2023:21:03:13 +0000] "GET / HTTP/1.1" 101 83 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/116.0" "-"
gnost_relay_service exited with code 2
see: https://www.rfc-editor.org/rfc/rfc7692
see: https://pkg.go.dev/github.com/klauspost/compress/flate
see: https://pkg.go.dev/compress/flate (standard library)
Hello,
This repository is listed on the Awesome Nostr list, which is a collection of useful Nostr projects. However, it seems that the 'nostr' topic is missing from this repository's topics.
Adding the 'nostr' topic will help users discover your project more easily and recognize its relevance to the Nostr ecosystem. To add the topic, please follow these steps:
Thank you for your attention and for contributing to the Nostr community!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.