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 Query method is broken #78

Open
jmbass opened this issue Jun 17, 2022 · 0 comments
Open

Client Query method is broken #78

jmbass opened this issue Jun 17, 2022 · 0 comments

Comments

@jmbass
Copy link
Collaborator

jmbass commented Jun 17, 2022

err = json.NewDecoder(res.Body).Decode(result)

CriteoKB explorer now returns the sources as part of an Item object in the response. sources is an array, which results in an unmarshalling error when trying to map the response to a QueryResponse object:

Items [][]Item

I believe that we must either make the Items member of the response an [][]interface{} or make the Items a map[string]interface{} and then implement the adequate changes to the affected methods.

@ShimmerGlass

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

1 participant