We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 016bea4 commit 98a36fdCopy full SHA for 98a36fd
libsql/src/sync.rs
@@ -281,7 +281,9 @@ impl SyncContext {
281
.map_err(SyncError::HttpBody)?;
282
return Ok(PullResult::Frame(frame));
283
}
284
- if res.status() == StatusCode::BAD_REQUEST {
+ // BUG ALERT: The server returns a 500 error if the remote database is empty.
285
+ // This is a bug and should be fixed.
286
+ if res.status() == StatusCode::BAD_REQUEST || res.status() == StatusCode::INTERNAL_SERVER_ERROR {
287
let res_body = hyper::body::to_bytes(res.into_body())
288
.await
289
0 commit comments