You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Dec 29, 2022. It is now read-only.
I have been getting an RLS crash consistently, after entering between five and ten keystrokes, with either the message:
thread '<unnamed>' panicked at 'called Result::unwrap()on anErrvalue: InternalError("Out of bounds access inbyte_in_str")', /checkout/src/libcore/result.rs:860
or a message like:
Missing change, aborting. Found 126, expected Some(132) [Error - 8:14:01 PM] Connection to server got closed. Server will not be restarted.
The numbers change, but aside from that everything is consistent.
My code is:
#[macro_use] extern crate diesel_codegen;
#[macro_use] extern crate diesel;
extern crate dotenv;
pub mod schema;
pub mod models;
use diesel::prelude::*;
use diesel::pg::PgConnection;
use dotenv::dotenv;
use std::env;
pub fn establish_connection() -> PgConnection {
dotenv().ok();
let database_url = env::ver("DATABASE_URL")
.expect("DATABASE_URL must be set");
PgConnection::establish(&data)
}
Version info:
20:15:40: leo [~/Projects/vvs/vvs-server]
$ cargo -V
cargo 0.19.0 (28d1d60d4 2017-05-16)
20:15:43: leo [~/Projects/vvs/vvs-server]
$ rustc -V
rustc 1.18.0 (03fc9d622 2017-06-06)