Closed Belserich closed 1 year ago
What am I doing wrong?
Not sure because you didn't explicitly state what exactly you did. Could you paste the exact curl command you used?
It looks on the face of it like you missed like the content-type header or didn't post or something.
The curl command is part of a shell script but it goes like
curl -v -i -X $2 -H "X-Ycm-Hmac:$encoded_hmac" -d "$4" http://localhost:$1"$3"
I call this like
./request $port POST /completion "$data"
$encoded_hmac
must be correct since the message is being validated. You mentioned content-type headers. I didnt specify them, these would be "application/json" right? It's my first time using http for anything
Okay, I solved the issue by adding the corrent content-type-header (which is application/json
)
Hey there, I downloaded ycmd and started the server with a minimal options file (just specified the HMAC). After that I made a request via curl to
/completions
. The message body isThe signal was accepted, meaning hmac validation passed successfully. I'm getting this error now:
I tried manually debugging the problem. It is that
request_json
in line 24 ofrequest_validation.py
isNone
. How come? What am I doing wrong?