aws / aws-cli

Universal Command Line Interface for Amazon Web Services
Other
15.55k stars 4.13k forks source link

(ResourceNotFoundException) when calling the UpdateImageGenerationConfiguration operation #7159

Closed xiaoyaodingchunqiu closed 2 years ago

xiaoyaodingchunqiu commented 2 years ago

Describe the bug

galen@galen-RedmiBook-Pro-14S:~/s3cmdtest$ aws kinesisvideo update-image-generation-configuration --cli-input- --cli-input-json --cli-input-yaml
galen@galen-RedmiBook-Pro-14S:~/s3cmdtest$ aws kinesisvideo update-image-generation-configuration --cli-input-json help

Error parsing parameter 'cli-input-json': Invalid JSON received. galen@galen-RedmiBook-Pro-14S:~/s3cmdtest$

Expected Behavior

aws kinesisvideo update-image-generation-configuration --cli-input-json ./update-image-generation-input.json i wish this command can work

Current Behavior

galen@galen-RedmiBook-Pro-14S:~/s3cmdtest$ aws kinesisvideo update-image-generation-configuration --cli-input-json ./update-image-generation-input.json

Error parsing parameter 'cli-input-json': Invalid JSON received. galen@galen-RedmiBook-Pro-14S:~/s3cmdtest$ aws kinesisvideo update-image-generation-configuration --cli-input- --cli-input-json --cli-input-yaml
galen@galen-RedmiBook-Pro-14S:~/s3cmdtest$ aws kinesisvideo update-image-generation-configuration --cli-input-json help

Error parsing parameter 'cli-input-json': Invalid JSON received. galen@galen-RedmiBook-Pro-14S:~/s3cmdtest$ aws --version aws-cli/2.7.20 Python/3.9.11 Linux/5.15.0-25-generic exe/x86_64.ubuntu.22 prompt/off galen@galen-RedmiBook-Pro-14S:~/s3cmdtest$

Reproduction Steps

the json message: { "StreamName": "ExampleStream", "ImageGenerationConfiguration": { "Status": "ENABLED", "DestinationConfig": { "DestinationRegion": "ap-southeast-1", "Uri": "s3://0803picfromkvs" },
"SamplingInterval": 3000, "ImageSelectorType": "PRODUCER_TIMESTAMP", "Format": "JPEG", "FormatConfig": { "JPEGQuality": "80" }, "WidthPixels": 640, "HeightPixels": 480 } }

Possible Solution

fix the bug

Additional Information/Context

No response

CLI version used

aws-cli/2.7.20 Python/3.9.11 Linux/5.15.0-25-generic exe/x86_64.ubuntu.22 prompt/off

Environment details (OS name and version, etc.)

ubuntu 22.04

xiaoyaodingchunqiu commented 2 years ago

galen@galen-RedmiBook-Pro-14S:~/s3cmdtest$ aws kinesisvideo update-image-generation-configuration --cli-input-json file://./update-image-generation-input.json

An error occurred (ResourceNotFoundException) when calling the UpdateImageGenerationConfiguration operation: The requested stream is not found or not active. galen@galen-RedmiBook-Pro-14S:~/s3cmdtest$

after i change the encode from utf-8 to ansi, it works, but get new err: An error occurred (ResourceNotFoundException) when calling the UpdateImageGenerationConfiguration operation: The requested stream is not found or not active.

github-actions[bot] commented 2 years ago

⚠️COMMENT VISIBILITY WARNING⚠️

Comments on closed issues are hard for our team to see. If you need more assistance, please open a new issue that references this one. If you wish to keep having a conversation with other community members under this issue feel free to do so.

tim-finnigan commented 2 years ago

Hi @xiaoyaodingchunqiu thanks for reaching out. A ResourceNotFoundException is often caused when your configured region does not match the region where your resource resides. Can you confirm that your AWS CLI environment is configured to use the same region where your resource is located?

xiaoyaodingchunqiu commented 2 years ago

i have solved this problem

github-actions[bot] commented 2 years ago

⚠️COMMENT VISIBILITY WARNING⚠️

Comments on closed issues are hard for our team to see. If you need more assistance, please open a new issue that references this one. If you wish to keep having a conversation with other community members under this issue feel free to do so.