• Recent
    • Unsolved
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login

    API task "Image is not valid"

    Scheduled Pinned Locked Moved
    FOG Problems
    2
    3
    316
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • C
      cminus
      last edited by

      I am getting the following error when attempting an API call to start an imaging task. Any idea on what could be causing this? Thanks for any pointers.

      POST /fog/host/34/task HTTP/1.1
      Host: x.x.x.x
      User-Agent: python-requests/2.23.0
      Accept-Encoding: gzip, deflate
      Accept: */*
      Connection: keep-alive
      fog-api-token: xxxxxxxxxxx
      fog-user-token: xxxxxxxxxxx
      Content-Length: 76
      
      {"taskTypeID": 1, "taskName": "34-L-testlaptop", "hostname": "L-testlaptop"}
      
      HTTP/1.1 500 Internal Server Error
      Date: Thu, 12 Aug 2021 22:23:40 GMT
      Server: Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/7.2.21
      X-Powered-By: PHP/7.2.21
      X-Frame-Options: sameorigin
      X-XSS-Protection: 1; mode=block
      X-Content-Type-Options: nosniff
      Strict-Transport-Security: max-age=31536000
      Content-Security-Policy: default-src 'none';script-src 'self' 'unsafe-eval';connect-src 'self';img-src 'self' data:;style-src 'self' 'unsafe-inline';font-src 'self';
      Access-Control-Allow-Origin: *
      Connection: close
      Transfer-Encoding: chunked
      Content-Type: application/json
      
      { "error": "Image is not valid"
      }
      
      Tom ElliottT 1 Reply Last reply Reply Quote 0
      • Tom ElliottT
        Tom Elliott @cminus
        last edited by

        @cminus does l-testlaptop have an image assigned to it?

        Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG! Get in contact with me (chat bubble in the top right corner) if you want to join in.

        Web GUI issue? Please check apache error (debian/ubuntu: /var/log/apache2/error.log, centos/fedora/rhel: /var/log/httpd/error_log) and php-fpm log (/var/log/php*-fpm.log)

        Please support FOG if you like it: https://wiki.fogproject.org/wiki/index.php/Support_FOG

        C 1 Reply Last reply Reply Quote 0
        • C
          cminus @Tom Elliott
          last edited by cminus

          @tom-elliott Ahhh, thank you. Yes, that seemed to be my problem. Can that be sent along with the API request, out of curiosity?

          1 Reply Last reply Reply Quote 0
          • 1 / 1
          • First post
            Last post

          161

          Online

          12.1k

          Users

          17.3k

          Topics

          155.3k

          Posts
          Copyright © 2012-2024 FOG Project