telegrambot icon indicating copy to clipboard operation
telegrambot copied to clipboard

Still not working with 9.4

Open reinethernal opened this issue 5 years ago • 33 comments

Come on! How long would it take you to upgrade to 9.4 support?

reinethernal avatar Nov 08 '19 11:11 reinethernal

it working fine...

mecmav avatar Nov 11 '19 12:11 mecmav

You must be joking. 9.4.4 glpi + this plugin = system errors

reinethernal avatar Nov 11 '19 12:11 reinethernal

working on 9.4.2 + telegrambot 2.0.0

mecmav avatar Nov 11 '19 12:11 mecmav

image And you say it is working? Than happens when i try to create new ticket, add followup, etc.

reinethernal avatar Nov 11 '19 13:11 reinethernal

there's can be a lot of error of server-side, or some blocks in your ethernet, or some of returns from API... I already had many problems with error 500, from the most varied possible causes.

mecmav avatar Nov 11 '19 13:11 mecmav

There're some interactions with glpi api? No, nothing blocks glpiapi on my server-side.

reinethernal avatar Nov 11 '19 13:11 reinethernal

I am talking about network lock. I've had it, this could be it, I'm not saying that's it. what status shows in messagelistener at run manually the task?

mecmav avatar Nov 11 '19 13:11 mecmav

image That what i have at status when run it manually

reinethernal avatar Nov 11 '19 13:11 reinethernal

click on date/hour, will show description of log

mecmav avatar Nov 11 '19 13:11 mecmav

image

reinethernal avatar Nov 11 '19 13:11 reinethernal

your error is the return from telegram API, review it !

mecmav avatar Nov 11 '19 13:11 mecmav

you need set the cron of your system to use CLI instead GLPI mode

mecmav avatar Nov 11 '19 13:11 mecmav

changed at plugin to use CLI instead of glpi - same error, still uses glpi according to error log.

reinethernal avatar Nov 11 '19 13:11 reinethernal

have a crontask running ? I believe you having troubles to implement the plugin.

mecmav avatar Nov 11 '19 13:11 mecmav

crontask is enabled image

reinethernal avatar Nov 11 '19 13:11 reinethernal

set */5 * * * * ...... that way, every 5 minutes cron will run , the logs of messagelistener in GLPI should be "CLI mode". With that do some tests remember of review your API key on telegram, if necessary reset the API token for bot.

mecmav avatar Nov 11 '19 13:11 mecmav

Is there any way i can force this plugin to use CLI mode?

reinethernal avatar Nov 11 '19 14:11 reinethernal

*/5 * * * * /usr/bin/php7.2 /var/www/glpi/front/cron.php --force messagelistener &> /dev/null

mecmav avatar Nov 11 '19 14:11 mecmav

thx

reinethernal avatar Nov 11 '19 14:11 reinethernal

you did it ?

mecmav avatar Nov 11 '19 14:11 mecmav

Changed, but no effect. In action logs i receive same error.

reinethernal avatar Nov 11 '19 14:11 reinethernal

reset api key for bot

mecmav avatar Nov 11 '19 14:11 mecmav

i need to add restapi key? or bot key?

reinethernal avatar Nov 11 '19 14:11 reinethernal

if bot key - checked twice.

reinethernal avatar Nov 11 '19 14:11 reinethernal

reset api key for bot in telegram. use botfather for that after reset api key, change bot token in glpi Notifications>Telegram Followups Config. with that, the log of messagelistener can't have any error

mecmav avatar Nov 11 '19 14:11 mecmav

Did it for three or four times. No effect.

reinethernal avatar Nov 11 '19 14:11 reinethernal

So, I can't help you with that. Sorry

mecmav avatar Nov 11 '19 14:11 mecmav

Thank you any way

reinethernal avatar Nov 11 '19 14:11 reinethernal

hi, how is your plugin configuration?

xpedroaugustox avatar Nov 24 '19 02:11 xpedroaugustox

working on 9.4.2 + telegrambot 2.0.0 How did you do?, I get error Error. Telegram returned an invalid response! Please review your bot name and API key.

jcrosasv avatar Nov 27 '19 01:11 jcrosasv