You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm attempting to use the Jobs HTTP API to manage jobs via a Python v3 (using requests) based Lambda. All requests fail with an error similar to this (depending on the endpoint):
json: cannot unmarshal string into Go value of type api.JobRegisterRequest
However, requests made using curl to the same endpoints, using the same jobspec succeed.
Nomad version
v1.7.7+ent
Operating system and Environment details
RHEL 8 on AWS Cloud
Issue
I'm attempting to use the Jobs HTTP API to manage jobs via a Python v3 (using requests) based Lambda. All requests fail with an error similar to this (depending on the endpoint):
However, requests made using curl to the same endpoints, using the same jobspec succeed.
Reproduction steps
Convert HCL2 jobspec to JSON:
Curl endpoint:
Use Python requests - the request_spec is the content of the job.json used with the curl:
Expected Result
With curl:
Actual Result
With Python:
Job file (if appropriate)
Nomad Server logs (if appropriate)
N/A
Nomad Client logs (if appropriate)
N/A
The text was updated successfully, but these errors were encountered: