urfaclient
# /netup/utm5/bin/utm5_urfaclient -c /netup/utm5/urfaclient_users.cfg -l user1 -P password -a user5_services_report -time_start 1228078800 -time_end 18363523500853 -d
Notice: Dec 09 12:26:37 UTM5 Config: Processing config file: /netup/utm5/utm5_urfaclient_users.cfg
Processing action: user5_services_report
error : xmlEncodeEntitiesReentrant : input not UTF-8
encoding error : output conversion failed due to conv error, bytes 0xB2 0x22 0x2F 0x3E
I/O error : encoder error
чо-то с базой? или я чота не так делаю? в админке отчет формируется нормально
Notice: Dec 09 12:26:37 UTM5 Config: Processing config file: /netup/utm5/utm5_urfaclient_users.cfg
Processing action: user5_services_report
error : xmlEncodeEntitiesReentrant : input not UTF-8
encoding error : output conversion failed due to conv error, bytes 0xB2 0x22 0x2F 0x3E
I/O error : encoder error
чо-то с базой? или я чота не так делаю? в админке отчет формируется нормально
по всей видимости грабли в кодировке.Pulse писал(а):# /netup/utm5/bin/utm5_urfaclient -c /netup/utm5/urfaclient_users.cfg -l user1 -P password -a user5_services_report -time_start 1228078800 -time_end 18363523500853 -d
Notice: Dec 09 12:26:37 UTM5 Config: Processing config file: /netup/utm5/utm5_urfaclient_users.cfg
Processing action: user5_services_report
error : xmlEncodeEntitiesReentrant : input not UTF-8
encoding error : output conversion failed due to conv error, bytes 0xB2 0x22 0x2F 0x3E
I/O error : encoder error
чо-то с базой? или я чота не так делаю? в админке отчет формируется нормально
Код: Выделить всё
error : xmlEncodeEntitiesReentrant : input not UTF-8
input в данном случае, насколько я понимаю, это то, что выдаёт ядро урфаклиенту.
в запросе только
в запросе только
Код: Выделить всё
<?xml version="1.0"?>
<urfa>
<parameter name="time_start" />
<parameter name="time_end" />
<call function="rpcf_user5_service_report"/>
</urfa>
какая у него система исчисления ваще?
если account_id 131
но если account_id 0131
если account_id 131
Код: Выделить всё
# utm5_urfaclient -a get_user_by_acc -account_id 131
Notice: Dec 17 16:34:00 UTM5 Config: Processing config file: /netup/utm5/utm5_urfaclient.cfg
Processing action: get_user_by_acc
<?xml version="1.0"?>
<urfa>
<session key="c8ff4849d723297e929fee749770c476"/>
<call function="rpcf_get_user_by_account">
<output>
<integer name="user_id" value="130"/>
</output>
</call>
</urfa>
Код: Выделить всё
# utm5_urfaclient -a unity_get_user_by_acc -account_id 0131
Notice: Dec 17 16:34:06 UTM5 Config: Processing config file: /netup/utm5/utm5_urfaclient.cfg
Processing action: unity_get_user_by_acc
<?xml version="1.0"?>
<urfa>
<session key="ceff48490958ff25f25cae460b464868"/>
<call function="rpcf_get_user_by_account">
<output>
<integer name="user_id" value="88"/>
</output>
</call>
</urfa>
- Lex
- NetUP Team
- Сообщения: 623
- Зарегистрирован: Ср мар 09, 2005 12:12
- Откуда: НетАП
- Контактная информация:
В соответствии со стандартом, если число начинается с нуля, считается что оно записано в восьмеричной системе счисления.Pulse писал(а):какая у него система исчисления ваще?
если account_id 131но если account_id 0131Код: Выделить всё
# utm5_urfaclient -a get_user_by_acc -account_id 131 Notice: Dec 17 16:34:00 UTM5 Config: Processing config file: /netup/utm5/utm5_urfaclient.cfg Processing action: get_user_by_acc <?xml version="1.0"?> <urfa> <session key="c8ff4849d723297e929fee749770c476"/> <call function="rpcf_get_user_by_account"> <output> <integer name="user_id" value="130"/> </output> </call> </urfa>
Код: Выделить всё
# utm5_urfaclient -a unity_get_user_by_acc -account_id 0131 Notice: Dec 17 16:34:06 UTM5 Config: Processing config file: /netup/utm5/utm5_urfaclient.cfg Processing action: unity_get_user_by_acc <?xml version="1.0"?> <urfa> <session key="ceff48490958ff25f25cae460b464868"/> <call function="rpcf_get_user_by_account"> <output> <integer name="user_id" value="88"/> </output> </call> </urfa>
У мну нормально все:Pulse писал(а):# /netup/utm5/bin/utm5_urfaclient -c /netup/utm5/urfaclient_users.cfg -l user1 -P password -a user5_services_report -time_start 1228078800 -time_end 18363523500853 -d
Notice: Dec 09 12:26:37 UTM5 Config: Processing config file: /netup/utm5/utm5_urfaclient_users.cfg
Processing action: user5_services_report
error : xmlEncodeEntitiesReentrant : input not UTF-8
encoding error : output conversion failed due to conv error, bytes 0xB2 0x22 0x2F 0x3E
I/O error : encoder error
чо-то с базой? или я чота не так делаю? в админке отчет формируется нормально
bin\utm5_urfaclient -c bin\utm5_urfaclient.cfg -u -l "user" -P "111111" -a user5_services_report -time_start 1008078800 -time_end 1228078801
с блокировками тоже самое

Код: Выделить всё
# /netup/utm5/bin/utm5_urfaclient -c /netup/utm5/utm5_urfaclient_users.cfg -u -l "user" -P "pass" -a user5_blocks_report -time_start 1008078800 -time_end 1228078801
Notice: Dec 24 15:43:36 UTM5 Config: Processing config file: /netup/utm5/utm5_urfaclient_users.cfg
Processing action: user5_blocks_report
error : xmlEncodeEntitiesReentrant : input not UTF-8
encoding error : output conversion failed due to conv error, bytes 0xB2 0x22 0x2F 0x3E
I/O error : encoder error
проблему решили?Pulse писал(а):с блокировками тоже самое![]()
Код: Выделить всё
# /netup/utm5/bin/utm5_urfaclient -c /netup/utm5/utm5_urfaclient_users.cfg -u -l "user" -P "pass" -a user5_blocks_report -time_start 1008078800 -time_end 1228078801 Notice: Dec 24 15:43:36 UTM5 Config: Processing config file: /netup/utm5/utm5_urfaclient_users.cfg Processing action: user5_blocks_report error : xmlEncodeEntitiesReentrant : input not UTF-8 encoding error : output conversion failed due to conv error, bytes 0xB2 0x22 0x2F 0x3E I/O error : encoder error
решить проблему можно след. путем:
подправить файл api.xml
поле комментарий сделать не стринг а integer, поскольку на самом деле это поле роли в данных отчетах не играет
например для услуг:
или для блокировок:
подправить файл api.xml
поле комментарий сделать не стринг а integer, поскольку на самом деле это поле роли в данных отчетах не играет
например для услуг:
Код: Выделить всё
<function name="rpcf_user5_service_report" id="-0x4011">
<input>
<integer name="time_start" />
<integer name="time_end" />
</input>
<output>
<integer name="aids_size" />
<for name="i" from="0" count="aids_size">
<integer name="asr_size" />
<set dst="asr_size_array" src="asr_size" dst_index="i" />
<for name="j" from="0" count="asr_size">
<integer name="account_id" array_index="i,j" />
<integer name="discount_date" array_index="i,j" />
<double name="discount" array_index="i,j" />
<double name="discount_with_tax" array_index="i,j" />
<string name="service_name" array_index="i,j" />
<integer name="service_type" array_index="i,j" />
<integer name="comment" array_index="i,j" /> <!-- edit by fenix -->
</for>
</for>
</output>
</function>
Код: Выделить всё
<function name="rpcf_user5_blocks_report" id="-0x4013">
<input>
<integer name="time_start" />
<integer name="time_end" />
</input>
<output>
<integer name="blocks_size" />
<for name="i" from="0" count="blocks_size">
<integer name="account_id" array_index="i" />
<integer name="start_date" array_index="i" />
<integer name="expire_date" array_index="i" />
<integer name="what_blocked" array_index="i" />
<integer name="block_type" array_index="i" />
<integer name="comment" array_index="i"/> <!-- edit by fenix -->
</for>
</output>
</function>