Bonjour, du jours au lendemain la connexion JsonAPI Site/Serveur ne fonctionne plus,
Chaque requette, JsonAPI envoie à la console:
Ensuite, j'ai essayé d'afficher un array pour voir si il y avait une erreur, oui... il me dit:
You had the correct username, password and salt but you just aren't allowed to use this API method.
Voici le fichier users.yml
Voici le fichier config.yml :
Merci !
Chaque requette, JsonAPI envoie à la console:
- Notice: Undefined index: success in /var/www/wh4o70/www/v2/include/haut.php on line 57
Ensuite, j'ai essayé d'afficher un array pour voir si il y avait une erreur, oui... il me dit:
You had the correct username, password and salt but you just aren't allowed to use this API method.
Array
(
[0] => Array
(
[result] => error
[source] => players.online
[is_success] =>
[error] => Array
(
[co---de] => 9
[message] => You had the correct username, password and salt but you just aren't allowed to use this API method.
)
)
)
(
[0] => Array
(
[result] => error
[source] => players.online
[is_success] =>
[error] => Array
(
[co---de] => 9
[message] => You had the correct username, password and salt but you just aren't allowed to use this API method.
)
)
)
Voici le fichier users.yml
users:
- username: JayeGame
password: non
logging: true
groups:
- full_control
- username: JayeGame
password: non
logging: true
groups:
- full_control
Voici le fichier config.yml :
# API methods on the method-whitelist will be
# able to called without any sort of authentication
method-whitelist:
- getPlayerLimit
- dynmap.getPort
options:
stream_pusher:
max_queue_age: 30
max_queue_length: 500
startup-delay: 2000
port: 21555
ip-whitelist: []
log-to-console: true
log-to-file: 'false'
anyone-can-use-calladmin: true
use-new-api: true
adminium-push-enabled: true
# able to called without any sort of authentication
method-whitelist:
- getPlayerLimit
- dynmap.getPort
options:
stream_pusher:
max_queue_age: 30
max_queue_length: 500
startup-delay: 2000
port: 21555
ip-whitelist: []
log-to-console: true
log-to-file: 'false'
anyone-can-use-calladmin: true
use-new-api: true
adminium-push-enabled: true
Merci !