Open fullset opened 4 years ago
I try to start app with such .toml config:
.toml
[listener] listen = "localhost:8080" n_workers= 4 keep_alive = 300 [channels] [channels.dhi] host = "localhost:10309" keep_alive = 75
After that I try to perform request from README:
curl -v --header "Content-Type: application/json" --request POST --data '{"i000":"0100", "i002":"443322******0961", "i003":"300000", "i004":"000000000000", "i014":"****", "i018":"6011", "i022":"0100", "i023":"000", "i025":"02", "i026":"04", "i032":"999999", "i041":"TERMID01", "i042":"IDDQD MERCH ID", "i043":"IDDQD AM. 341215574 341215574 MSKRU", "i049":"643", "i053":"9801100001000000"}' http://127.0.0.1:8080/dhi
And I get such output:
Connected to localhost:10309 00508<RequestInput><ISO8583-87><i000>0100</i000><i002>443322******0961</i002><i003>300000</i003><i004>000000000000</i004><i007>0905152243</i007><i011>234335</i011><i012>152243</i012><i013>0509</i013><i014>****</i014><i018>6011</i018><i022>0100</i022><i023>000</i023><i025>02</i025><i026>04</i026><i032>999999</i032><i037>139077935951</i037><i041>TERMID01</i041><i042>IDDQD MERCH ID</i042><i043>IDDQD AM. 341215574 341215574 MSKRU</i043><i049>643</i049><i053>9801100001000000</i053></ISO8583-87></RequestInput> Error: Syntax { source: Error { pos: 1:1, kind: Syntax("Unexpected characters outside the root element: \u{0}") } }
Maybe I'm doing something wrong?
Well, your channels.dhi.host entry should point to the actual DHI host. Please try to use the default host from etc/config.toml
I try to start app with such
.toml
config:After that I try to perform request from README:
And I get such output:
Maybe I'm doing something wrong?