tursodatabase / libsql-client-ts

TypeScript/JavaScript client API for libSQL
https://docs.turso.tech/sdk/ts/quickstart
MIT License
289 stars 37 forks source link

Hrana 3 WebSocket tests are broken #79

Open penberg opened 1 year ago

penberg commented 1 year ago
penberg@vonneumann workers % export LOCAL=1
penberg@vonneumann workers % export URL=ws://localhost:8080
penberg@vonneumann workers % python3 ../../hrana-test-server/server_v3.py node test.js
INFO:server:Server is ready
Creating a local Worker...
[mf:inf] Ready on http://0.0.0.0:53171
[mf:inf] - http://127.0.0.1:53171
[mf:inf] - http://192.168.68.103:53171
Worker created on 127.0.0.1:53171
INFO:aiohttp.access:127.0.0.1 [06/Sep/2023:10:52:55 +0000] "GET / HTTP/1.1" 101 0 "-" "-"

TEST /execute: failed with status 500
Test failed
LibsqlError: HRANA_PROTO_ERROR: Received non-binary message from server with Protobuf encoding
    at mapHranaError (worker.js:3984:12)
    at WsClient2.execute (worker.js:4145:13)
    at async /execute (worker.js:4453:16)
    at async Object.fetch (worker.js:4439:7)
    at async jsonError (worker.js:4519:12)

[mf:inf] GET /execute 500 Internal Server Error (19ms)
[mf:inf] GET /batch 500 Internal Server Error (4ms)

TEST /batch: failed with status 500
Test failed
LibsqlError: HRANA_PROTO_ERROR: Cursor is closed: ProtoError: Received non-binary message from server with Protobuf encoding
    at mapHranaError (worker.js:3984:12)
    at WsClient2.batch (worker.js:4160:13)
    at async /batch (worker.js:4461:17)
    at async Object.fetch (worker.js:4439:7)
    at async jsonError (worker.js:4519:12)

INFO:aiohttp.access:127.0.0.1 [06/Sep/2023:10:52:55 +0000] "GET / HTTP/1.1" 101 0 "-" "-"
[mf:inf] GET /transaction 500 Internal Server Error (7ms)

TEST /transaction: failed with status 500
Test failed
LibsqlError: HRANA_PROTO_ERROR: Cursor is closed: ProtoError: Received non-binary message from server with Protobuf encoding
    at mapHranaError (worker.js:3984:12)
    at WsClient2.batch (worker.js:4160:13)
    at async /transaction (worker.js:4485:5)
    at async Object.fetch (worker.js:4439:7)
    at async jsonError (worker.js:4519:12)

Stopping Worker...
Some tests failed
INFO:aiohttp.access:127.0.0.1 [06/Sep/2023:10:52:55 +0000] "GET / HTTP/1.1" 101 0 "-" "-"