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

client.describe returns "error decoding response body: invalid type: map, expected a string" #16

Open
klipus opened this issue Feb 22, 2022 · 3 comments

Comments

@klipus
Copy link

klipus commented Feb 22, 2022

trying to use describe command from the example, but getting error:
HTTPError("error decoding response body: invalid type: map, expected a string...

@abusarah-tech
Copy link

I've encountered a similar error and it is related to the struct DescribeResponse because some fields might be not matching the retrieved JSON from the REST API callout.

@tzmfreedom
Copy link
Owner

Thank you for reporting this issue! and sorry for late reply.

Now, client.describe return serde_json::Value instead of DescribeResponse, so this issue resolved.

pub async fn describe(&self, sobject_name: &str) -> Result<serde_json::Value, Error> {

If so, I'll close this issue.

@ianFar96
Copy link

I still get HTTPError("error decoding response body: invalid type: map, expected a string at line 1 column 1") with the describe_global method.

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

No branches or pull requests

4 participants