Detections API cant work with Unicode characters

Its strange, now its a 404.

Probably your url is wrong. Check that it's the same as the one I used. In the one you printed you were missing /kbn. Or if you have it, try without it.

Yeah your scripts works now.
The problem could be the data type of the data variable.

In our script it has a data type of string and in yours its a dictionary.

Now we just have to figure out how we solve this issue.

Anyway thanks for the help.

Yes, just realized that you are creating a dictionary as a string by concatenating string, but you are not attempting to parse it into a dictionary when you are done, before sending it to the request. Either change the approach to build it as a dictionary from scratch or try to parse the string after you are done.

Lets go it works,we were only missing a data=json.loads(data) .
Thanks a lot.

1 Like

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.