CA
Crawlee & Apify8mo ago
harsh-harlequin

Standby python actor throws when accessing the Actor.config object

2024-10-12T21:25:30.211Z ACTOR: Pulling Docker image of build IDpW06CSNrW8Wjb9L from repository.
2024-10-12T21:25:30.433Z ACTOR: Starting Docker container.
2024-10-12T21:25:31.942Z File "/usr/src/app/src/main.py", line 76, in main
2024-10-12T21:25:31.944Z site = web.TCPSite(runner, '0.0.0.0', Actor.config.standby_port)
2024-10-12T21:25:31.945Z ^^^^^^^^^^^^
2024-10-12T21:25:31.947Z File "/usr/local/lib/python3.12/site-packages/apify/_actor.py", line 65, in __init__
2024-10-12T21:25:31.949Z self._configuration = configuration or Configuration.get_global_configuration()
2024-10-12T21:25:31.950Z ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2024-10-12T21:25:31.952Z File "/usr/local/lib/python3.12/site-packages/crawlee/configuration.py", line 216, in get_global_configuration
2024-10-12T21:25:31.954Z service_container.set_configuration(cls())
2024-10-12T21:25:31.955Z ^^^^^
2024-10-12T21:25:31.957Z File "/usr/local/lib/python3.12/site-packages/pydantic_settings/main.py", line 152, in __init__
2024-10-12T21:25:31.958Z super().__init__(
2024-10-12T21:25:31.960Z File "/usr/local/lib/python3.12/site-packages/pydantic/main.py", line 209, in __init__
2024-10-12T21:25:31.962Z validated_self = self.__pydantic_validator__.validate_python(data, self_instance=self)
2024-10-12T21:25:31.963Z ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2024-10-12T21:25:31.965Z pydantic_core._pydantic_core.ValidationError: 1 validation error for Configuration
2024-10-12T21:25:31.967Z actor_timeout_at
2024-10-12T21:25:31.968Z Input should be a valid datetime or date, input is too short [type=datetime_from_date_parsing, input_value='', input_type=str]
2024-10-12T21:25:31.970Z For further information visit https://errors.pydantic.dev/2.9/v/datetime_from_date_parsing
2024-10-12T21:25:30.211Z ACTOR: Pulling Docker image of build IDpW06CSNrW8Wjb9L from repository.
2024-10-12T21:25:30.433Z ACTOR: Starting Docker container.
2024-10-12T21:25:31.942Z File "/usr/src/app/src/main.py", line 76, in main
2024-10-12T21:25:31.944Z site = web.TCPSite(runner, '0.0.0.0', Actor.config.standby_port)
2024-10-12T21:25:31.945Z ^^^^^^^^^^^^
2024-10-12T21:25:31.947Z File "/usr/local/lib/python3.12/site-packages/apify/_actor.py", line 65, in __init__
2024-10-12T21:25:31.949Z self._configuration = configuration or Configuration.get_global_configuration()
2024-10-12T21:25:31.950Z ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2024-10-12T21:25:31.952Z File "/usr/local/lib/python3.12/site-packages/crawlee/configuration.py", line 216, in get_global_configuration
2024-10-12T21:25:31.954Z service_container.set_configuration(cls())
2024-10-12T21:25:31.955Z ^^^^^
2024-10-12T21:25:31.957Z File "/usr/local/lib/python3.12/site-packages/pydantic_settings/main.py", line 152, in __init__
2024-10-12T21:25:31.958Z super().__init__(
2024-10-12T21:25:31.960Z File "/usr/local/lib/python3.12/site-packages/pydantic/main.py", line 209, in __init__
2024-10-12T21:25:31.962Z validated_self = self.__pydantic_validator__.validate_python(data, self_instance=self)
2024-10-12T21:25:31.963Z ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2024-10-12T21:25:31.965Z pydantic_core._pydantic_core.ValidationError: 1 validation error for Configuration
2024-10-12T21:25:31.967Z actor_timeout_at
2024-10-12T21:25:31.968Z Input should be a valid datetime or date, input is too short [type=datetime_from_date_parsing, input_value='', input_type=str]
2024-10-12T21:25:31.970Z For further information visit https://errors.pydantic.dev/2.9/v/datetime_from_date_parsing
8 Replies
Hall
Hall8mo ago
View post on community site
This post has been pushed to the community knowledgebase. Any replies in this thread will be synced to the community site.
Apify Community
ondro_k
ondro_k8mo ago
Hey, could you share your actor id/run id?
harsh-harlequin
harsh-harlequinOP8mo ago
here's a run ID: L1Yxu3hAth1Bx77n9
ondro_k
ondro_k8mo ago
Thanks, I'll send it to our python devs and will get back to you
Kaito
Kaito6mo ago
run ID:CaObvSNlBhkkfbeMN Log:https://api.apify.com/v2/logs/CaObvSNlBhkkfbeMN I encountered the same issue, can you help me take a look? I checked the GitHub link but don't know how to solve the problem. @ondro_k And my actor is not [Actor Standby mode]
Pepa J
Pepa J5mo ago
Hi @Kaito, wanted to check your Run but unfortunatelly it doesn't exist anymore.
Kaito
Kaito5mo ago
Hello. Maybe too much time has passed and it was deleted. Later, I created a new "act" and didn't pay attention to this problem anymore.

Did you find this page helpful?