urfaclient

Технические вопросы по UTM 5.0
Pulse
Сообщения: 945
Зарегистрирован: Вт окт 03, 2006 12:58

Сообщение 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

чо-то с базой? или я чота не так делаю? в админке отчет формируется нормально

starchik
Сообщения: 461
Зарегистрирован: Сб ноя 22, 2008 22:07

Сообщение starchik »

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

чо-то с базой? или я чота не так делаю? в админке отчет формируется нормально
по всей видимости грабли в кодировке.

Pulse
Сообщения: 945
Зарегистрирован: Вт окт 03, 2006 12:58

Сообщение Pulse »

кодировке чего? отчет успешно выполняется в админке, кроме того отчет urfaclient функцией rpcf_service_report успешно выполняется, однако пользовательская не работает

starchik
Сообщения: 461
Зарегистрирован: Сб ноя 22, 2008 22:07

Сообщение starchik »

Код: Выделить всё

error : xmlEncodeEntitiesReentrant : input not UTF-8
вроде как вашего запроса, если не ошибаюсь =)

Pulse
Сообщения: 945
Зарегистрирован: Вт окт 03, 2006 12:58

Сообщение Pulse »

input в данном случае, насколько я понимаю, это то, что выдаёт ядро урфаклиенту.
в запросе только

Код: Выделить всё

<?xml version="1.0"?>
<urfa>
    <parameter name="time_start" />
    <parameter name="time_end" />
    <call function="rpcf_user5_service_report"/>
</urfa>

Pulse
Сообщения: 945
Зарегистрирован: Вт окт 03, 2006 12:58

Сообщение Pulse »

какая у него система исчисления ваще?
если account_id 131

Код: Выделить всё

# utm5_urfaclient -a get_user_by_acc -account_id 131
 Notice&#58; Dec 17 16&#58;34&#58;00 UTM5 Config&#58; Processing config file&#58; /netup/utm5/utm5_urfaclient.cfg
Processing action&#58; 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>
но если account_id 0131

Код: Выделить всё

# utm5_urfaclient -a unity_get_user_by_acc -account_id 0131
 Notice&#58; Dec 17 16&#58;34&#58;06 UTM5 Config&#58; Processing config file&#58; /netup/utm5/utm5_urfaclient.cfg
Processing action&#58; 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
Откуда: НетАП
Контактная информация:

Сообщение Lex »

Pulse писал(а):какая у него система исчисления ваще?
если account_id 131

Код: Выделить всё

# utm5_urfaclient -a get_user_by_acc -account_id 131
 Notice&#58; Dec 17 16&#58;34&#58;00 UTM5 Config&#58; Processing config file&#58; /netup/utm5/utm5_urfaclient.cfg
Processing action&#58; 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>
но если account_id 0131

Код: Выделить всё

# utm5_urfaclient -a unity_get_user_by_acc -account_id 0131
 Notice&#58; Dec 17 16&#58;34&#58;06 UTM5 Config&#58; Processing config file&#58; /netup/utm5/utm5_urfaclient.cfg
Processing action&#58; 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>
В соответствии со стандартом, если число начинается с нуля, считается что оно записано в восьмеричной системе счисления.

Аватара пользователя
Magnum72
Сообщения: 1947
Зарегистрирован: Чт сен 22, 2005 06:54
Контактная информация:

Сообщение Magnum72 »

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

Pulse
Сообщения: 945
Зарегистрирован: Вт окт 03, 2006 12:58

Сообщение 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&#58; Dec 24 15&#58;43&#58;36 UTM5 Config&#58; Processing config file&#58; /netup/utm5/utm5_urfaclient_users.cfg
Processing action&#58; user5_blocks_report
error &#58; xmlEncodeEntitiesReentrant &#58; input not UTF-8
encoding error &#58; output conversion failed due to conv error, bytes 0xB2 0x22 0x2F 0x3E
I/O error &#58; encoder error

Fenix
Сообщения: 12
Зарегистрирован: Вт янв 27, 2009 23:50

Сообщение Fenix »

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&#58; Dec 24 15&#58;43&#58;36 UTM5 Config&#58; Processing config file&#58; /netup/utm5/utm5_urfaclient_users.cfg
Processing action&#58; user5_blocks_report
error &#58; xmlEncodeEntitiesReentrant &#58; input not UTF-8
encoding error &#58; output conversion failed due to conv error, bytes 0xB2 0x22 0x2F 0x3E
I/O error &#58; encoder error
проблему решили?

Pulse
Сообщения: 945
Зарегистрирован: Вт окт 03, 2006 12:58

Сообщение Pulse »

нет, жду выхода 007...

Fenix
Сообщения: 12
Зарегистрирован: Вт янв 27, 2009 23:50

Сообщение Fenix »

Pulse писал(а):нет, жду выхода 007...
а нетуп что говорит по этому поводу?
проблемы в базе или у них в скрптах?

Pulse
Сообщения: 945
Зарегистрирован: Вт окт 03, 2006 12:58

Сообщение Pulse »

как видите, они тут ничего не говорят по этому поводу :) хотлайна у меня щас нет...

Fenix
Сообщения: 12
Зарегистрирован: Вт янв 27, 2009 23:50

Сообщение Fenix »

решить проблему можно след. путем:

подправить файл 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>

Pulse
Сообщения: 945
Зарегистрирован: Вт окт 03, 2006 12:58

Сообщение Pulse »

вот спасибо, добрый человек

Ответить