Hi All, I am trying to verify a contract with PUT...
# general
g
Hi All, I am trying to verify a contract with PUT methods, but for all the calls I am getting "Content length missing" error, then after adding content length it is failing with Content Length already present error. Did anyone came across this scenario?
b
What does your test code and your contract look like, and what does the actual response from the provider look like? Also, which bindings are you using? This might be better asked in the language-specific channel
g
Hi @Bas Dijkstra, The contract was generated using JS. The header in the contract looks like below
"headers": {
"Authorization": "Some Token",
"Content-Type": "application/json",
"Content-Length": 0,
"X-Cat-API-Tracking-Id": "99aa372a-1234-66ea-bb37-0242ac131112",
"accept": "*/*"
}
Without Content Length
"headers": {
"Authorization": "Some Token",
"Content-Type": "application/json",
"X-Cat-API-Tracking-Id": "99aa372a-1232-66ea-bb37-0242ac131112",
"accept": "*/*"
},
status: expected status of 204 but was 411
Do you need any other information? Do you need the complete contract? @Bas Dijkstra?
b
No, probably best to ask in #C9VBGLUM9.
g
Okay
m
i’ll answer in that channel, thanks