Apify and Crawlee Official Forum

Updated 2 months ago

Standby python actor throws when accessing the Actor.config object

Plain Text
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
o
c
4 comments
Hey, could you share your actor id/run id?
here's a run ID: L1Yxu3hAth1Bx77n9
Thanks, I'll send it to our python devs and will get back to you
hey, you can follow the progress here
Add a reply
Sign up and join the conversation on Discord