jyxo / php

Jyxo PHP Library
http://jyxo.github.com/php/
BSD 3-Clause "New" or "Revised" License
65 stars 72 forks source link

Cannot get http_user_agent when send() #33

Open bimbaim opened 2 years ago

bimbaim commented 2 years ago

I use jyxo to connect with otys API when I send(). I got an error

[22-Jul-2022 09:15:00 UTC] PHP Fatal error: Uncaught Jyxo\Rpc\Xml\Exception: Db.kvdbiQueryException: MySQL query failed: [Duplicate column name 'NULL'] [INSERT INTO otys_system.ows_sessions (klantid,consultantid,session_id,ip,http_user_agent,source,location) SELECT * FROM (SELECT 2519, 55007, 'j4f0crccoeeavh213crjl16on2', '128.199.182.51', NULL, NULL, 'Singapore (SG)') as tmp WHERE NOT EXISTS (SELECT * FROM otys_system.ows_sessions WHERE klantid = 2519 AND consultantid = 55007 AND session_id = 'j4f0crccoeeavh213crjl16on2') /* ORIGIN: /var/www/otys-webservices/src/Otys/Services/AuthService.php[357] SQLDEBUG:OWS */] in /home/bringatwork/web/bringatwork.whellolab.nl/public_html/wp-content/plugins/whello-jyxo/vendor/jyxo/php/Jyxo/Rpc/Xml/Client.php:82

in that error the api can not get http_user_agent and source. is there any way to send manually to orevent null?