@tom-elliott Ahhh, thank you. Yes, that seemed to be my problem. Can that be sent along with the API request, out of curiosity?
C
Latest posts made by cminus
-
RE: API task "Image is not valid"
-
API task "Image is not valid"
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" }