Skip to content

Commit

Permalink
Merge pull request #541 from Ilhasoft/feature/new_evaluate
Browse files Browse the repository at this point in the history
FIX: add json.dumps to payload from evaluate
  • Loading branch information
mldzs committed Feb 12, 2021
2 parents 84a69f0 + 5295c6e commit ca0cac9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion bothub/common/models.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import json
import uuid
from functools import reduce

Expand Down Expand Up @@ -531,7 +532,7 @@ def request_nlp_evaluate(self, user_authorization, data):
headers = {
"Authorization": f"Bearer {user_authorization.uuid}"
}
r = requests.post(url, data=data, headers=headers)
r = requests.post(url, data=json.dumps(data), headers=headers)

return r # pragma: no cover
except requests.exceptions.ConnectionError: # pragma: no cover
Expand Down

0 comments on commit ca0cac9

Please sign in to comment.