Community
    • Categories
    • Recent
    • Popular
    • Users
    • Search
    • Register
    • Login
    1. Home
    2. smieth
    S
    Offline
    • Profile
    • Following 0
    • Followers 0
    • Topics 1
    • Posts 4
    • Groups 0

    smieth

    @smieth

    0
    Reputation
    2
    Profile views
    4
    Posts
    0
    Followers
    0
    Following
    Joined
    Last Online

    smieth Unfollow Follow

    Latest posts made by smieth

    • RE: Api-Log funktioniert nicht

      @smieth

      ok
      body:
      jsonrpc: "2.0"

      dem Body kann man es so mitgeben. Geht.
      Wie gesagt Log geht nicht

      posted in Allgemein
      S
      smieth
    • RE: Api-Log funktioniert nicht

      Aber essentiell fehlt das Log für die API. Es wird kein Log geschrieben.

      posted in Allgemein
      S
      smieth
    • RE: Api-Log funktioniert nicht

      @MartinV
      Ja, ich versuche es allerdings über ansible.
      Bin jetzt aber einen Schritt weiter.

      Fehler ist jetzt: message": "Invalid request: Invalid JSON-RPC Version. Use version 2.0"

      Playbook:

      • name: API-Call
        hosts: all
        connection: local
        gather_facts: no

        vars:
        ido_it_api_endpoint: XXX
        ido_it_api_key: YYY
        tasks:

        • name: Send System Information to i-doit API
          uri:
          url: "{{ ido_it_api_endpoint }}"
          method: POST
          headers:
          Content-Type: "application/json"
          jsonrpc: "2.0"
          body_format: json
          body:
          method: "idoit.version"
          params:
          api_key: "{{ ido_it_api_key }}"
          language: "de"
          return_content: yes
          register: api_response

        • name: Show response from API
          debug:
          var: api_response.content

      posted in Allgemein
      S
      smieth
    • Api-Log funktioniert nicht

      Ich versuche derzeit die PI einzurichten und bekomme Fehler.
      " This is not a JSON-RPC. The content-type should be application\/json, request method should be "post" and the http body should be a valid json-rpc 2.0 package"

      Aber das Grundproblem ist, dass die API trotz Debug nichts ins Log schreibt.

      Was kann die Ursache dafür sein ?

      posted in Allgemein
      S
      smieth