Tous les projets

ID Projet Ouverte Type Catégorie État Résumé
 37810 Freebox Server (Ultra V9/ Pop V8/ Delta V7 / Revolution V6 / Mini 4K)09/03/2023AnomalieAPIFermée réponse internal_error lors de l'appel à l'api login/au ... Description de la tâche

Bonjour,

Je tente d’exploiter l’API de mes deux Révolution. Sur la plus récente, je peux faire la demande de token, mais pas sur la plus ancienne.

Pour la nouvelle freebox

        cedric@Mnementh6 / $ curl -sk https://mafreebox.freebox.fr/api_version |jq .
        {
          "box_model_name": "Freebox Server (r1)",
          "api_base_url": "/api/",
          "https_port": 456,
          "device_name": "Freebox Server",
          "https_available": true,
          "box_model": "fbxgw-r1/full",
          "api_domain": "domain.fbxos.fr",
          "uid": "bbb",
          "api_version": "10.2",
          "device_type": "FreeboxServer1,1"
        }

        cedric@Mnementh6 / $ curl -sk https://mafreebox.freebox.fr/api/v4/login/authorize/ -X POST -d '{ "app_id": "fr.cedric.watcher", "app_name": "JuizWatcher", "app_version": "0.0.1", "device_name": "Mnementh6" }' | jq .
        {
          "success": true,
          "result": {
            "app_token": "xxx",
            "track_id": 0
          }
        }

        cedric@Mnementh6 / $ curl -sk https://mafreebox.freebox.fr/api/v4/login/authorize/0 -X GET | jq .
        {
          "success": true,
          "result": {
            "status": "pending",
            "challenge": "yyy",
            "password_salt": "zzz"
          }
        }

Pour l'ancienne

        cedric@Mnementh6 / $ curl -sk https://mafreebox.freebox.fr/api_version |jq .
        {
          "box_model_name": "Freebox Server (r1)",
          "api_base_url": "/api/",
          "https_port": 123,
          "device_name": "Freebox Server",
          "https_available": true,
          "box_model": "fbxgw-r1/full",
          "api_domain": "domain.fbxos.fr",
          "uid": "aaa",
          "api_version": "10.2",
          "device_type": "FreeboxServer1,1"
        }

        cedric@Mnementh6 / $ curl -sk https://mafreebox.freebox.fr/api/v4/login/authorize/ -X POST -d '{ "app_id": "fr.cedric.watcher", "app_name": "JuizWatcher", "app_version": "0.0.1", "device_name": "Mnementh6" }' | jq .
        {
          "msg": "Erreur interne",
          "success": false,
          "error_code": "internal_error"
        }

Auriez-vous une idée ? Ai-je manqué quelque chose ?
J’ai testé en v4 ou v10, j’ai exactement le même comportement pour les deux machines.

Merci
Cédric

Tâches 1 - 1 sur 1 Page 1 sur 1

Activer les raccourcis clavier

Liste des tâches

Détails de la tâche

Édition de la tâche