什么是';类型与表约束不兼容';Erlang R14B04中的ssl错误?
这是我发出的web服务请求:什么是';类型与表约束不兼容';Erlang R14B04中的ssl错误?,erlang,version,otp,Erlang,Version,Otp,这是我发出的web服务请求: Erlang R14B04 (erts-5.8.5) [smp:4:4] [rq:4] [async-threads:0] Eshell V5.8.5 (abort with ^G) 1> application:start(asn1). ok 2> 2> application:start(inets). ok 3> 3> application:start(crypto). ok 4> 4> applicati
Erlang R14B04 (erts-5.8.5) [smp:4:4] [rq:4] [async-threads:0]
Eshell V5.8.5 (abort with ^G)
1> application:start(asn1).
ok
2>
2> application:start(inets).
ok
3>
3> application:start(crypto).
ok
4>
4> application:start(public_key).
ok
5>
5> application:start(ssl).
ok
6>
6>
6>
6> Method = post,
6>
6> URL = "https://testprosis.belbim.com.tr:1479/HostSwitchTxnService/SearchCardWithAuthP1",
6>
6> Header = [],
6>
6> Type = "application/json",
6>
6> Body = "{ \"clientData\": { \"clientKey\": \"hts_sube1_client2\", \"clientPass\": \"n85uedpbsWJUZsuFnFFrVaEn\", \"clientConnectionIndex\": \"1100\" }, \"uid\": \"04362FBAA53080\", \"txnType\": \"5\", \"voidTransactionId\": \"0\", \"amount\": \"0\" }",
6>
6> HTTPOptions = [],
6>
6> Options = [],
6>
6> R = httpc:request(Method, {URL, Header, Type, Body}, HTTPOptions, Options),
6>
6> {ok, {{"HTTP/1.1",ReturnCode, State}, Head, ResponseBody}} = R.
这在Erlang 18中起作用,我从web请求中得到了答案。但是我在Erlang R14B04上运行服务器。以下是我尝试将数据发布到web服务时得到的结果:
{{badmatch,
{error,
{asn1,
{'Type not compatible with table constraint',
我已经读了很多关于这个错误的书,我得出的结论是这就是Erlang R14B04
的bug。每个人都建议更新Erlang,但由于某些原因,更新并不是我的解决方案
有什么解决办法吗