ITISFoundation / osparc-issues

🐼 issue-only repo for the osparc project
3 stars 5 forks source link

API: Validation error upon stopping job #958

Open mguidon opened 1 year ago

mguidon commented 1 year ago

Stopping a job works, however the server responds with a 500 an some job validation problems

*   Trying 172.16.8.252:443...
* Connected to api.osparc-master.speag.com (172.16.8.252) port 443 (#0)
* ALPN: offers http/1.1
*  CAfile: /etc/ssl/certs/ca-certificates.crt
*  CApath: /etc/ssl/certs
* SSL connection using TLSv1.3 / TLS_AES_128_GCM_SHA256
* ALPN: server accepted http/1.1
* Server certificate:
*  subject: CN=api.osparc-master.speag.com
*  start date: Apr  4 17:16:51 2023 GMT
*  expire date: Jul  3 17:16:50 2023 GMT
*  subjectAltName: host "api.osparc-master.speag.com" matched cert's "api.osparc-master.speag.com"
*  issuer: C=US; O=Let's Encrypt; CN=R3
*  SSL certificate verify ok.
> POST /v0/solvers/simcore/services/comp/isolve-gpu/releases/2.1.16/jobs/177389db-5bee-4f82-b894-c270b038a05b:stop HTTP/1.1
Host: api.osparc-master.speag.com
Authorization: Basic OGVjMjMwMjYtMzE0Ni01Y2NkLWI4YWEtMTBkZWYzMzEzOTdiOjgzYTYzOWY1LTU4ZDQtNWM4Yi04OWU2LWU1Yzg4ODJmYTU3Mg==
accept: application/json
Content-Length: 0
Content-Type: application/x-www-form-urlencoded

* Mark bundle as not supporting multiuse
< HTTP/1.1 500 Internal Server Error
< Content-Length: 580
< Content-Type: application/json
< Date: Wed, 10 May 2023 12:22:13 GMT
< Server: uvicorn
< Vary: Accept-Encoding
< Vary: Accept-Encoding
< 
* Connection #0 to host api.osparc-master.speag.com left intact
************************* STOPPING
{
    "errors": [
        "8 validation errors for Job\nresponse -> id\n  field required (type=value_error.missing)\nresponse -> name\n  field required (type=value_error.missing)\nresponse -> inputs_checksum\n  field required (type=value_error.missing)\nresponse -> created_at\n  field required (type=value_error.missing)\nresponse -> runner_name\n  field required (type=value_error.missing)\nresponse -> url\n  field required (type=value_error.missing)\nresponse -> runner_url\n  field required (type=value_error.missing)\nresponse -> outputs_url\n  field required (type=value_error.missing)"
    ]
}
mguidon commented 1 year ago

@pcrespov @bisgaard-itis This seems to have been fixed. I dont see it anymore from my curl client. Is that correct?

pcrespov commented 1 year ago

@pcrespov @bisgaard-itis This seems to have been fixed. I dont see it anymore from my curl client. Is that correct?

@mguidon no modifications were done in the stop_job the last 3 monhts. https://github.com/ITISFoundation/osparc-simcore/pull/4407/files#diff-68c417d1a9cf619270287c92924a765b51747e670beb0f668468c8ffb707268dL233-L238

mguidon commented 1 year ago

I wish my bugs would also just disappear without me doing modifications to the code...

pcrespov commented 1 year ago

I do not totally trust this is gone. so let's keep it for the moment open until we address it

bisgaard-itis commented 10 months ago

Update: I see this occasionally, but it is not consistent.