tzmfreedom / rustforce

Salesforce REST API Client by Rust
MIT License
41 stars 19 forks source link

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

Open klipus opened 2 years ago

klipus commented 2 years ago

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

abusarah-tech commented 2 years ago

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 commented 2 years ago

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. https://github.com/tzmfreedom/rustforce/blob/8293c28be0783dc1887d387054d51d9b5f0a3aae/src/client.rs#L372

If so, I'll close this issue.

ianFar96 commented 10 months ago

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