Skip to content
This repository has been archived by the owner on Sep 17, 2023. It is now read-only.

ParseError: error decoding response body #13

Open
alejandro0619 opened this issue Oct 8, 2022 · 1 comment
Open

ParseError: error decoding response body #13

alejandro0619 opened this issue Oct 8, 2022 · 1 comment

Comments

@alejandro0619
Copy link

use genius_rs::Genius;

#[tokio::main]
async fn main() {
    let genius = Genius::new(dotenv::var("TOKEN").unwrap());
    let response = genius.search("Sia").await;

    match response {
      Ok(resp) => println!("{:?}", resp),
      Err(e) => println!("{:?}", e),
    }
    
}

I was checking the examples listed in the readme, but I couldn't reproduce them since the error says that the response can't be parsed because it's not a valid. The error is the following:

ParseError("error decoding response body: missing field `response` at line 1 column 134")

@alt-art
Copy link
Owner

alt-art commented Oct 18, 2022

Sorry for the late reply, I'll check this error.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants