message: "No such host is known." #1128
codebyaadi
started this conversation in
General
Replies: 1 comment
-
Hi @codebyaadi, given the error message indicates "No such host is known.", can you ensure |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I am getting this error
Object: Err(DispatchFailure(DispatchFailure { source: ConnectorError { kind: Io, source: hyper::Error(Connect, ConnectError("dns error", Os { code: 11001, kind: Uncategorized, message: "No such host is known." })), connection: Unknown } }))
Below is my env
AWS_ACCESS_KEY_ID=****************************** AWS_SECRET_ACCESS_KEY=***************************************************** ENDPOINT=https://*****************************.r2.cloudflarestorage.com
Below is my upload code
`use std::path::Path;
use aws_sdk_s3 as s3;
use aws_sdk_s3::error::SdkError;
use aws_sdk_s3::operation::put_object::{PutObjectError, PutObjectOutput};
use aws_sdk_s3::primitives::ByteStream;
pub async fn upload_file(
file_name: &str,
local_file_path: &str,
) -> Result<PutObjectOutput, SdkError> {
let config = aws_config::load_from_env().await;
let client = s3::Client::new(&config);
}
`
This is where I am using it
`use axum::Json;
use git2::Repository;
use serde_json::{json, Value};
use std::env;
use crate::utils;
use crate::upload;
pub async fn home() -> Json<&'static str> {
Json("Hello! World")
}
pub async fn deploy(Json(body): Json) -> Json {
// some logic code
let object = upload::upload_file("backend/output/txzil\src\mail_sender.rs", "D:\MyWorks\learning\bunjs\vercel-clone\backend/output/txzil\src\mail_sender.rs").await;
println!("Object: {:?}", object);
Json(json!({"id": id, "files": files}))
}`
Beta Was this translation helpful? Give feedback.
All reactions