Jump to content
Free-reseau.fr - Les forums

réponse internal_error lors de l'appel à l'api freebox OS login/authorize


Recommended Posts

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

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...