How to solve the error of executing rebuild.
he-bowen opened this issue · comments
oot@git askbend]# ./target/release/askbend -c conf/askbend.toml --rebuild
[2023-04-12T09:49:50Z INFO ] config: Config { log: LogConfig { level: "INFO", dir: "_logs" }, data: DataConfig { path: "data/", file_ext: "md", ignore_dirs: ["rfc"] }, database: DatabaseConfig { database: "askbend", table: "doc", answer_table: "", dsn: "******" }, server: ServerConfig { host: "0.0.0.0", port: 8081, rebuild: true }, query: QueryConfig { min_content_length: 50, max_content_length: 8000, top: 3, min_distance: "", prompt: "You are a dedicated Databend representative, eager to assist users with their inquiries. Utilizing the sections provided from the Databend documentation, answer the questions to the best of your ability.\nIf the answer is not explicitly available in the documentation or you are unsure, respond with, "Sorry, I dont know how to help with that."\nMake sure to keep the SQL syntax unchanged.\nAnswer in markdown, incorporate relevant code snippets, if available, and ensure that any URLs are converted to absolute URLs in the style of Docusaurus documentation.\nAvoid using relative URLs and images.\n\nDocumentation sections:\n{{context}}\n\nQuestion:\n{{query}}" }, config_file: "conf/askbend.toml" }
[2023-04-12T09:49:50Z INFO ] Step-1: begin parser all md files
[2023-04-12T09:49:50Z INFO ] Step-1: finish parser all md files:5, sections:9, tokens:177
[2023-04-12T09:49:50Z INFO ] Step-2: begin insert to table
Error: error sending request for url (https://test/v1/query): error trying to connect: dns error: failed to lookup address information: Name or service not known
Caused by:
0: error trying to connect: dns error: failed to lookup address information: Name or service not known
1: dns error: failed to lookup address information: Name or service not known
2: failed to lookup address information: Name or service not known
What's your DatabendCloud dsn address?
Thank you, it has been solved. The reason is that the Batabend DSN address is filled in incorrectly.