teodevgroup / teo

Schema-driven web server framework.
https://teodev.io
Apache License 2.0
1.33k stars 43 forks source link

startup teo serve with postgres error #33

Closed Brandon-lz closed 6 months ago

Brandon-lz commented 6 months ago

when I use example from https://teocloud.io/docs/getting-started/beginner-tutorial/write-a-schema-only-app

error:

[2023-12-29 02:09:43] postgres connector connected for `main` at "postgres://postgres:postgres@teo-db:5432/helloteo"
thread 'main' panicked at /usr/local/cargo/registry/src/index.crates.io-6f17d22bba15001f/teo-0.0.64/src/seeder/seed.rs:643:28:
called `Result::unwrap()` on an `Err` value: : unknown database find error: Error { kind: QueryError(Error { kind: Db, cause: Some(DbError { severity: "ERROR", parsed_severity: Some(Error), code: SqlState(E42601), message: "syntax error at or near \")\"", detail: None, hint: None, position: Some(Original(43)), where_: None, schema: None, table: None, column: None, datatype: None, constraint: None, file: Some("scan.l"), line: Some(1241), routine: Some("scanner_yyerror") }) }), original_code: Some("42601"), original_message: Some("db error: ERROR: syntax error at or near \")\"") }
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

teo version: teo Teo 0.0.64 (Rust 1.74.1) [CLI]

victorteokw commented 6 months ago

Hi Brandon, thanks for trying it out. This bug is fixed and a new version will be published.

victorteokw commented 6 months ago

Hi @Brandon-lz this bug is fixed in https://crates.io/crates/teo. Thanks!