-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Closed
Labels
Description
Description:
When running sam sync --stack-name [my stack name] --watch, the stack update success, but then the following error is returned:
Stack update succeeded. Sync infra completed.
Error: BaseObserver.schedule() takes 3 positional arguments but 4 were given
Traceback:
File "click/core.py", line 1078, in main
File "click/core.py", line 1688, in invoke
File "click/core.py", line 1434, in invoke
File "click/core.py", line 783, in invoke
File "samcli/cli/cli_config_file.py", line 347, in wrapper
File "click/decorators.py", line 92, in new_func
File "click/core.py", line 783, in invoke
File "samcli/lib/telemetry/metric.py", line 185, in wrapped
File "samcli/lib/telemetry/metric.py", line 150, in wrapped
File "samcli/lib/telemetry/event.py", line 376, in wrapped
File "samcli/lib/telemetry/event.py", line 368, in wrapped
File "samcli/lib/cli_validation/image_repository_validation.py", line 111, in wrapped
File "samcli/lib/telemetry/metric.py", line 104, in wrapped
File "samcli/lib/utils/version_checker.py", line 43, in wrapped
File "samcli/cli/main.py", line 95, in wrapper
File "samcli/commands/_utils/cdk_support_decorators.py", line 40, in wrapped
File "samcli/commands/_utils/command_exception_handler.py", line 89, in wrapper_command_exception_handler
File "samcli/commands/_utils/command_exception_handler.py", line 69, in wrapper_command_exception_handler
File "samcli/commands/sync/command.py", line 229, in cli
File "samcli/commands/sync/command.py", line 411, in do_cli
File "samcli/commands/sync/command.py", line 572, in execute_watch
File "samcli/lib/sync/watch_manager.py", line 230, in start
File "samcli/lib/sync/watch_manager.py", line 245, in _start
File "samcli/lib/sync/watch_manager.py", line 285, in _execute_infra_sync
File "samcli/lib/sync/watch_manager.py", line 253, in _start_sync
File "samcli/lib/sync/watch_manager.py", line 186, in _add_template_triggers
File "samcli/lib/utils/path_observer.py", line 153, in schedule_handlers
File "samcli/lib/utils/path_observer.py", line 170, in schedule_handler
An unexpected error was encountered while executing "sam sync".
Steps to reproduce:
sam sync --stack-name [my stack name] --watch
I'm running with Python 3.9.16
Observed result:
See above in description.
Expected result:
sam sync should run without error. Internal python code error in the samcli should be resolved.
Additional environment details (Ex: Windows, Mac, Amazon Linux etc)
{
"version": "1.126.0",
"system": {
"python": "3.11.10",
"os": "Linux-6.1.112-122.189.amzn2023.x86_64-x86_64-with-glibc2.34"
},
"additional_dependencies": {
"docker_engine": "25.0.6",
"aws_cdk": "Not available",
"terraform": "Not available"
},
"available_beta_feature_env_vars": [
"SAM_CLI_BETA_FEATURES",
"SAM_CLI_BETA_BUILD_PERFORMANCE",
"SAM_CLI_BETA_TERRAFORM_SUPPORT",
"SAM_CLI_BETA_RUST_CARGO_LAMBDA"
]
}
Add --debug flag to command you are running
See error message above.
Reactions are currently unavailable