Created
May 16, 2018 15:00
-
-
Save sapiens-sapide/38f110a68464f099468cf5194a1f0c24 to your computer and use it in GitHub Desktop.
PATCH error 422
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"startedDateTime": "2018-05-16T14:55:41.910Z", | |
"time": 53.857722962566186, | |
"request": { | |
"method": "PATCH", | |
"url": "https://alpha.caliopen.org/api/v1/messages/4ad121fd-9ca1-4cb7-8a42-ee318d66da76", | |
"httpVersion": "HTTP/1.1", | |
"headers": [ | |
{ | |
"name": "Cookie", | |
"value": "caliopen.web=soRBk7DQd3CQu9QD8WLIc%2B%2BU8VGVFl2Ei%2FwWIL8MW4" | |
}, | |
{ | |
"name": "Origin", | |
"value": "https://alpha.caliopen.org" | |
}, | |
{ | |
"name": "Accept-Encoding", | |
"value": "gzip, deflate, br" | |
}, | |
{ | |
"name": "X-Caliopen-IL", | |
"value": "-10;10" | |
}, | |
{ | |
"name": "Accept-Language", | |
"value": "fr,en;q=0.9" | |
}, | |
{ | |
"name": "X-Caliopen-PI", | |
"value": "0;100" | |
}, | |
{ | |
"name": "X-Requested-With", | |
"value": "XMLHttpRequest" | |
}, | |
{ | |
"name": "Connection", | |
"value": "keep-alive" | |
}, | |
{ | |
"name": "Content-Length", | |
"value": "612" | |
}, | |
{ | |
"name": "Pragma", | |
"value": "no-cache" | |
}, | |
{ | |
"name": "Host", | |
"value": "alpha.caliopen.org" | |
}, | |
{ | |
"name": "User-Agent", | |
"value": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/66.0.3359.139 Safari/537.36" | |
}, | |
{ | |
"name": "Content-Type", | |
"value": "application/json;charset=UTF-8" | |
}, | |
{ | |
"name": "Accept", | |
"value": "application/json, text/plain, */*" | |
}, | |
{ | |
"name": "Cache-Control", | |
"value": "no-cache" | |
}, | |
{ | |
"name": "Referer", | |
"value": "https://alpha.caliopen.org/compose/9db2090f-f2af-4ab9-bdf6-c9820f95ead9" | |
} | |
], | |
"queryString": [], | |
"cookies": [ | |
{ | |
"name": "caliopen.web", | |
"value": "W4", | |
"expires": null, | |
"httpOnly": false, | |
"secure": false | |
} | |
], | |
"headersSize": 1360, | |
"bodySize": 0, | |
"postData": { | |
"mimeType": "application/json;charset=UTF-8", | |
"text": "{\"current_state\":{\"date\":\"2018-05-16T14:52:17.213Z\",\"date_sort\":\"2018-05-16T14:52:17.213Z\",\"discussion_id\":\"9dbdd401-4f0b-4fca-a3eb-549bc88729f9\",\"participants\":[{\"address\":\"stan@mailden.net\",\"label\":\"stan@mailden.net\",\"protocol\":\"email\",\"type\":\"To\"},{\"address\":\"stanos@alpha.caliopen.org\",\"contact_ids\":[\"d3aaf166-9b53-4cfb-ae0d-0dfcb8a79b23\"],\"label\":\"stanos\",\"protocol\":\"email\",\"type\":\"From\"}]},\"date\":\"0001-01-01T00:00:00.000Z\",\"date_sort\":\"0001-01-01T00:00:00.000Z\",\"participants\":[{\"address\":\"stan@mailden.net\",\"protocol\":\"email\",\"label\":\"stan@mailden.net\",\"contact_ids\":[],\"type\":\"To\"}],\"subject\":\"sujet\"}" | |
} | |
}, | |
"response": { | |
"status": 422, | |
"statusText": "Unprocessable Entity", | |
"httpVersion": "HTTP/1.1", | |
"headers": [ | |
{ | |
"name": "Date", | |
"value": "Wed, 16 May 2018 14:55:17 GMT" | |
}, | |
{ | |
"name": "Server", | |
"value": "nginx/1.6.2" | |
}, | |
{ | |
"name": "Connection", | |
"value": "keep-alive" | |
}, | |
{ | |
"name": "X-Powered-By", | |
"value": "Express" | |
}, | |
{ | |
"name": "ETag", | |
"value": "W/\"ec-ANf0YosoboO5y4hIN/r+nRt0gGA\"" | |
}, | |
{ | |
"name": "Content-Length", | |
"value": "236" | |
}, | |
{ | |
"name": "Content-Type", | |
"value": "application/json; charset=UTF-8" | |
} | |
], | |
"cookies": [], | |
"content": { | |
"size": 236, | |
"mimeType": "application/json", | |
"compression": 0, | |
"text": "{\"errors\": [{\"code\": 422, \"description\": \"Application encountered an error when applying patch\", \"component\": \"message\", \"values\": 422, \"message\": \"{u'date_sort': u'Rogue field'}\", \"property\": \"MergePatchError\", \"type\": \"Patch Error\"}]}" | |
}, | |
"redirectURL": "", | |
"headersSize": 252, | |
"bodySize": 236, | |
"_transferSize": 488 | |
}, |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment