Error when requesting Date fields in REST API
Bug #1690317 reported by
Guy
This bug affects 2 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Mistral |
Triaged
|
Medium
|
Unassigned |
Bug Description
mistral --version: 3.0.0
When trying to perform a REST API GET call and specifying any date fields in the "fields" query param (i.e. created_at, updated_at) the request fails:
GET http://<ip>:8989/
<error>
<faultcode>
<faultstring>
Invalid input for field/attribute created_at. Value: '2017-02-22 12:33:49'. Wrong type. Expected '<type 'unicode'>', got '<type 'datetime.
</faultstring>
<debuginfo/>
</error>
When removing all date fields, the call works.
Changed in mistral: | |
status: | New → Triaged |
importance: | Undecided → Medium |
To post a comment you must log in.
I think the problem is in request url: v2/executions/ ?fields= workflow_ name,created_ at v2/executions? fields= workflow_ name,created_ at
GOT: GET http://<ip>:8989/
EXPECTED: GET http://<ip>:8989/
So last / before ? is not needed