StartNextPendingJobExecution via HTTPS -> <UnknownOperationException/>

0

Hi,

I am trying to access the IoT Jobs via HTTPS. The GetPendingJobExecutions and UpdateJobExecution work fine but each time I call the StartNextPendingJobExecution I receive the response:

<UnknownOperationException/
>```

I tried the following curl commands:

curl -s --tlsv1.2 --cacert AmazonRootCA1.pem --cert certificate.pem.crt --key private.pem.key -X PUT -d "{ "stepTimeOutInMinutes": 60 }" "https://aabbcc.jobs.iot.eu-west-1.amazonaws.com:8443/things/myThingName/jobs/$next" 2>&1 | cat




curl -s --tlsv1.2 --cacert AmazonRootCA1.pem --cert certificate.pem.crt --key private.pem.key -X PUT -d "{ "statusDetails": { "mystring": "string"}, "stepTimeOutInMinutes": 60}" "https://aabbcc.jobs.iot.eu-west-1.amazonaws.com:8443/things/myThingName/jobs/$next" 2>&1 | cat


The StartNextPendingJobExecution works with the CLI by the way.  
  
Any idea?  
  
Regards,  
Thomas
asked 5 years ago214 views
1 Answer
0
Accepted Answer

Thank you for your interest.

While using curl, try using single quotes for URI. Your shell would be substituting $next to empty.

'https://aabbcc.jobs.iot.eu-west-1.amazonaws.com:8443/things/myThingName/jobs/$next'

Hope this helps,
Akank

AWS
answered 5 years ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions