Giter Site home page Giter Site logo

gnost-relay's People

Contributors

barkyq avatar thelockesmith avatar yonle avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

gnost-relay's Issues

[Fixed] An empty lines resulting crash

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 when connection reset

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

PostgreSQL: ERROR: duplicate key value violates unique constraint "db1_ididx"

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)

Crash submitting a filter (until) with time in milliseconds

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

Add nostr as a topic to this repository

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:

  1. Navigate to the main page of the repository.
  2. Click on the gear icon next to "About" on the right side of the page.
  3. In the "Topics" section, type 'nostr' and press Enter.
  4. Click "Save changes."

Thank you for your attention and for contributing to the Nostr community!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.