Closed AlexandreCantin closed 2 years ago
darwin-arm64v8-13.2.0.zip is actually:
<html>
<head><title>404 Not Found</title></head>
<body bgcolor="white">
<center><h1>404 Not Found</h1></center>
<hr><center>nginx</center>
</body>
</html>
<!-- a padding to disable MSIE and Chrome friendly error page -->
<!-- a padding to disable MSIE and Chrome friendly error page -->
<!-- a padding to disable MSIE and Chrome friendly error page -->
<!-- a padding to disable MSIE and Chrome friendly error page -->
<!-- a padding to disable MSIE and Chrome friendly error page -->
<!-- a padding to disable MSIE and Chrome friendly error page -->
This is solved by changing the version.
let fetch_settings = PgFetchSettings {
version: pg_embed::pg_fetch::PostgresVersion("14.5.0"), // <-- this works
..Default::default()
};
When I am trying to launch the embed postgreSQL and I've got this error :
InvalidArchive("Could not find central directory end")
It seems that the setup does not wait the download to be finished before trying unzip it 😕 (the file in the
$HOME/Library/Caches/pg-embed/darwin/arm64v8
is only 550 octets...)For informations, I am using on
macOS Monterey - Version 12.3.1
with a M1 Chip (not sure it's related but in case 🤷♂️)To reproduce it :
TOML file
main.rs
Thanks by advance for your answer and have a nice day 🙂