通过HTTPS启动下一个待处理的作业执行 -> <未知操作异常/>

0

【以下的问题经过翻译处理】 你好,

我正在尝试通过HTTPS访问IoT任务。 GetPendingJobExecutions和UpdateJobExecution工作正常,但每次调用StartNextPendingJobExecution时,我的响应都是:

<UnknownOperationException/
>```

我尝试了以下curl命令:

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


顺便说一句,CLI可以工作。
有任何想法?

问候,
托马斯
profile picture
EXPERT
asked 6 months ago24 views
1 Answer
0

【以下的回答经过翻译处理】 感谢您的关注。

当使用curl命令时,请将URI用单引号括起来。否则您的shell会将$next替换为空。

希望这能帮到您,

Akank。

profile picture
EXPERT
answered 6 months 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