Error when publishing actor?
GeneralI try to publish my actor which is running fine locally using "apify run" -
But when i publish the actor and try to run it i get this error on apify:
Any idea why this is not working or even what this error means?
Find attache also the full log -
And below the main error message.
But when i publish the actor and try to run it i get this error on apify:
Any idea why this is not working or even what this error means?
Find attache also the full log -
And below the main error message.
View full log
2025-12-18T14:49:13.876Z File "/usr/local/lib/python3.13/site-packages/pydantic/_internal/_model_construction.py", line 566, in set_model_fields
2025-12-18T14:49:13.877Z fields, class_vars = collect_model_fields(cls, config_wrapper, ns_resolver, typevars_map=typevars_map)
2025-12-18T14:49:13.879Z ~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2025-12-18T14:49:13.881Z File "/usr/local/lib/python3.13/site-packages/pydantic/_internal/_fields.py", line 363, in collect_model_fields
2025-12-18T14:49:13.882Z field_info = FieldInfo_.from_annotated_attribute(ann_type, assigned_value, _source=AnnotationSource.CLASS)
2025-12-18T14:49:13.884Z File "/usr/local/lib/python3.13/site-packages/pydantic/fields.py", line 468, in from_annotated_attribute
2025-12-18T14:49:13.886Z field_info = FieldInfo._construct(
2025-12-18T14:49:13.888Z prepend_metadata + metadata if prepend_metadata is not None else metadata, **attr_overrides
2025-12-18T14:49:13.889Z )
2025-12-18T14:49:13.891Z File "/usr/local/lib/python3.13/site-packages/pydantic/fields.py", line 563, in _construct
2025-12-18T14:49:13.893Z merged_field_info = cls(**merged_kwargs)
2025-12-18T14:49:13.894Z File "/usr/local/lib/python3.13/site-packages/pydantic/fields.py", line 252, in __init__
2025-12-18T14:49:13.896Z raise TypeError('cannot specify both default and default_factory')
2025-12-18T14:49:13.898Z TypeError: cannot specify both default and default_factoryView full log
2025-12-18T14:49:13.876Z File "/usr/local/lib/python3.13/site-packages/pydantic/_internal/_model_construction.py", line 566, in set_model_fields
2025-12-18T14:49:13.877Z fields, class_vars = collect_model_fields(cls, config_wrapper, ns_resolver, typevars_map=typevars_map)
2025-12-18T14:49:13.879Z ~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2025-12-18T14:49:13.881Z File "/usr/local/lib/python3.13/site-packages/pydantic/_internal/_fields.py", line 363, in collect_model_fields
2025-12-18T14:49:13.882Z field_info = FieldInfo_.from_annotated_attribute(ann_type, assigned_value, _source=AnnotationSource.CLASS)
2025-12-18T14:49:13.884Z File "/usr/local/lib/python3.13/site-packages/pydantic/fields.py", line 468, in from_annotated_attribute
2025-12-18T14:49:13.886Z field_info = FieldInfo._construct(
2025-12-18T14:49:13.888Z prepend_metadata + metadata if prepend_metadata is not None else metadata, **attr_overrides
2025-12-18T14:49:13.889Z )
2025-12-18T14:49:13.891Z File "/usr/local/lib/python3.13/site-packages/pydantic/fields.py", line 563, in _construct
2025-12-18T14:49:13.893Z merged_field_info = cls(**merged_kwargs)
2025-12-18T14:49:13.894Z File "/usr/local/lib/python3.13/site-packages/pydantic/fields.py", line 252, in __init__
2025-12-18T14:49:13.896Z raise TypeError('cannot specify both default and default_factory')
2025-12-18T14:49:13.898Z TypeError: cannot specify both default and default_factorylog.txt3.63KB
