You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Sep 7, 2018. It is now read-only.
This is more a curb problem than a zendesk-api problem, but posts are submitted twice (because curb does not seem to be handling "100 - Continue" responses well. For deletes this is not a problem (the first works fine and deletes the thing, the second returns a 404), for forum creation is not a problem either (the first one creates the forum fine, the second one returns a 406 "this forum already exists"), but for forum entry it is a problem, both posts work and the entry gets created twice in the forum.
I hacked around the problem replacing curl.http_post(final_body) in main.rb with
system("curl","-v","-u", @username+":"+@password,"-H","Content-Type: application/xml", "-d", final_body, "-X","POST", url) which works for me but assumes that curl is installed and in the path, which will not always be true.
The text was updated successfully, but these errors were encountered:
If you are POSTing data and curb seems to be locking up, try posting it with an explicit 'Expect: 100-continue' header.
You can set this per-request, e.g.
CurbFu.post({:host => 'example.com', :headers => { "Expect" => "100-continue" }}, { "data" => "here" })
or you can configure it as a global header, e.g.
CurbFu.global_headers = { "Expect" => "100-continue" }
This is more a curb problem than a zendesk-api problem, but posts are submitted twice (because curb does not seem to be handling "100 - Continue" responses well. For deletes this is not a problem (the first works fine and deletes the thing, the second returns a 404), for forum creation is not a problem either (the first one creates the forum fine, the second one returns a 406 "this forum already exists"), but for forum entry it is a problem, both posts work and the entry gets created twice in the forum.
I hacked around the problem replacing curl.http_post(final_body) in main.rb with
system("curl","-v","-u", @username+":"+@password,"-H","Content-Type: application/xml", "-d", final_body, "-X","POST", url) which works for me but assumes that curl is installed and in the path, which will not always be true.
The text was updated successfully, but these errors were encountered: