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

    maxusmaus

    @maxusmaus

    0
    Reputation
    1
    Profile views
    1
    Posts
    0
    Followers
    0
    Following
    Joined
    Last Online

    maxusmaus Unfollow Follow

    Latest posts made by maxusmaus

    • SQL Fehlermeldung bei API "cmdb.condition.read"

      Moin,
      wenn ich über die API "cmdb.condition.read" ausführen möchte, kriege ich folgende Fehlermeldung:

      {
        "id": 1763477213944907450,
        "jsonrpc": "2.0",
        "error": {
          "code": -32099,
          "message": "i-doit system error: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near ')' at line 7",
          "data": null
        }
      }
      

      Mein Code

      resp = CMDB_SESSION.post(CONFIG['IDOIT_API_URL'], json={
          "version": "2.0",
          "method": "cmdb.condition.read",
          "params": {
              "language": "en",
              "apikey": CONFIG['IDOIT_API_KEY'],
              "conditions": [
                  {
                      "comparison": "like",
                      "property": "f_text_c_ipmi_dns",
                      "value": "asdf.de",
                  }
              ]
          },
          "id": time.time_ns(),
      })
      print(json.dumps(resp.json()))
      
      posted in Entwicklung
      M
      maxusmaus