ticgal / gapp

Bug reporting for Gapp
https://tic.gal/gapp/
4 stars 2 forks source link

formatexception unexpected character (at character 1) #58

Closed CLcdiazp closed 1 year ago

CLcdiazp commented 1 year ago

When configuring the AP parameters, I get this error message formatexception unexpected character (at character 1) blob:https://web.telegram.org/0d28c6c9-b746-4bc5-a2db-6fc9e4ca5c2d

OscarBeiro commented 1 year ago

Hi, Could you please review #42 y #46? They had similar issues, and apparently, they were fixed.

Regards?

CLcdiazp commented 1 year ago

Modify the file \glpi\marketplace\gappessentials\apirest.php with the patch indicating in the publication that you gave me

use Glpi\Cache\CacheManager;

/define('GLPI_ROOT', substr(DIR,0,strpos(DIR,"/marketplace")));/ define('GLPI_ROOT', substr(DIR,0,(strpos(DIR,"marketplace")-1))); define('DO_NOT_CHECK_HTTP_REFERER', 1); ini_set('session.use_cookies', 0);

include_once(GLPI_ROOT . "/inc/based_config.php"); include_once(GLPI_ROOT."/marketplace/gappessentials/inc/apirest.class.php");

then restart the services and the app, but the same message still appears

OscarBeiro commented 1 year ago

Can you test the app against the GLPI demo instance? Does it work? If so, it is something either on your instance.

There are over 6000 Gapp installed devices; I don't think the problem is within the app but in your GLPI instance. By the way, which version of GLPI are you using? Also, please share your Gapp Setup screen.

CLcdiazp commented 1 year ago

¿Puede probar la aplicación con la instancia de demostración de GLPI? ¿Funciona? Si es así, es algo en su instancia.

Yes, I tried it in demo and the application works

Hay más de 6000 dispositivos Gapp instalados; No creo que el problema esté dentro de la aplicación, sino en su instancia GLPI. Por cierto, ¿qué versión de GLPI estás usando? Además, comparta su pantalla de configuración de Gapp.

maybe it's a configuration problem with the api url

this is the api url http://localhost/glpi/marketplace/gappessentials/apirest.php

GLPI 10.0.6 Copyright (C) 2015-2023 Teclib' and contributors

CLcdiazp commented 1 year ago

I will try to give you all the information:

GAPP version 2.2.2. (0000303)

connection protocol http Server address xx.xx.xx.xxx/glpi

GLPI 10.0.6 I already applied the patch in the apirest.php file located at glpi\marketplace\gappessentials

Plugins installed and activated API URL http://localhost/glpi/marketplace/gappessentials/apirest.php Activate Rest API yes Enable access with credentials Yes Activate access with external credential token no API client is added API client name active yes Log connections disabled filter access empty parameters

PedroTicGal commented 1 year ago

Hi @CLcdiazp ,

I think we lack information on this matter.

We need you to tell us what version of Gapp Essentials you are using and if possible, can you send us the photo of the first message again? It is not accessible and we cannot see it.

Thank you.

CLcdiazp commented 1 year ago

GAPP 2.2.2 (00000303)

https://ibb.co/nR1RTWx https://ibb.co/hmXcG1g

El jue, 30 mar 2023 a la(s) 02:18, Pedro Muñoz @.***) escribió:

Hi @CLcdiazp https://github.com/CLcdiazp ,

I think we lack information on this matter.

We need you to tell us what version of Gapp Essentials you are using and if possible, can you send us the photo of the first message again? It is not accessible and we cannot see it.

Thank you.

— Reply to this email directly, view it on GitHub https://github.com/ticgal/gapp/issues/58#issuecomment-1489889628, or unsubscribe https://github.com/notifications/unsubscribe-auth/A6ZBQD5IRK6RALZUDSK532LW6U6W5ANCNFSM6AAAAAAWJSG43Y . You are receiving this because you were mentioned.Message ID: @.***>

--

Atte. Cristian Diaz

PedroTicGal commented 1 year ago

Hi @CLcdiazp,

We have a feature on Gapp to help any user having issues with the server connection.

This feature enables a new screen to help diagnose server connections.

To open this screen you have to:

Screenshot_20220627-124532

Remember that you must set the server address before using this function.

Could you please send us the report, and include the issue number? That way we can quickly identify where the problem is.

Cheers!

CLcdiazp commented 1 year ago

I already uninstalled the app, anyway thank you very much

alekyxander commented 1 year ago

Erro encotrado no selftest image