Using curl 7.53.1 under Windows7 I get the following error:
{“id”:“web.incoming_webhook.parse.app_error”,“message”:“Konnte eingehende Daten
nicht verarbeiten”,“detailed_error”:"",“request_id”:“c6okeourhjf4zgygygmwhgthcw”
,“status_code”:400}* Connection #0 to host my.ser.ver left intact
The german string “Konnte eingehende Daten nicht verabeiten” means “couldn’t process/parse incoming data”.
By communication library, I meant that windows and linux use different libraries not about mattermost, that was to illustrate the difference curl have from windows to linux.
No, if you look closely the inner single and double quotes in YOUR example looks different then mine.
Seems I can’t upload a screenshot oder hexdump of the above line. The single quotes I’m using have a hex value of 27 and the double quotes are hex 22.
The windows curl complains “curl: (3) [globbing] unmatched close brace/bracket in column 6”.
If one counts multiple spaces as 1 column, that is the first “-” (hyphen ?). Substituting “-” with
"/" treats them als (malformed) urls.
upload completely sent off: 15 out of 15 bytes
< HTTP/1.1 400 Bad Request
< Server: nginx/1.4.6 (Ubuntu)
< Date: Thu, 31 Aug 2017 05:56:17 GMT
< Content-Type: application/json
< Content-Length: 179
< Connection: keep-alive
< Access-Control-Allow-Origin:
< X-Request-Id: 3qn34pacb7g68d1q3ese1pmwha
< X-Version-Id: 4.1.0.4.1.0.d4dab482fe7337cd6e0d9619e0685522.false
<
{“id”:“web.incoming_webhook.parse.app_error”,“message”:“Konnte eingehende Daten
nicht verarbeiten”,“detailed_error”:“”,“request_id”:“3qn34pacb7g68d1q3ese1pmwha”
,“status_code”:400}* Connection #0 to host xxx.kreis-steinfurt.lokal left i
ntact
Regarding escaping the double-qoutes: Using “^” (caret) as escape changes nothing.
Using unix-style “\” every string separated by spaces after the first string 'payload={\"Text\":
is treated as a url.
Using double quotes (") for the outer quotes and single quotes (’) for the inner strings, mattermost receives the webhook content but is still unable to parse the content:
[2017/08/31 11:07:18 CEST] [DEBG] POST - /hooks/nfxohn48ijdajpuu6awg93j6sw
[2017/08/31 11:07:18 CEST] [DEBG] Eingehender Webhook erhalten. Inhalt={‘text’: 'Hello this is some text\nThis is more text. '}
[2017/08/31 11:07:18 CEST] [EROR] /hooks/nfxohn48ijdajpuu6awg93j6sw:HandleIncomingWebhook code=400 rid=b1huj9g6mtg9dx7ekrz8kd533o uid= ip=10.45.64.158 Unable to parse incoming data [details: ]