So, got error when sending Content-Type: application/json post request
the error isCode:webrequest.EnqueuePost(url, data, (code2, response2) => { PrintWarning(String.Format("{0}: {1}", code2, response2)); }, this, headers);
by the API specification the server returns empty result with 204 http code, checked the same request in browser, all working, in the c# plugin - don't
![]()
Webrequest post with empty response fires error
Discussion in 'Rust Development' started by wazzzup, Jan 14, 2018.
-
Wulf Community Admin
Are you using HTTPS? Mono (what Unity uses and our webrequests) do not work with a lot of modern SSL certs.
-
no, thats http url
-
Wulf Community Admin
-
strange, because only two api methods are not working, other are, about 10-15 tried
-
Wulf Community Admin
-
I'm writing discord api plugin, so I meant it's API, delete and bulk-delete methods can't be called
Last edited by a moderator: Jan 14, 2018 -
well, don't know what i've done or what was wrong with code/api, but it seems all working now, omg
sorry