ERROR:2026-02-19 10:13:52,731 -- Error during product operation
Traceback (most recent call last):
File "/usr/local/lib/python3.10/site-packages/proto/marshal/rules/message.py", line 36, in to_proto
return self._descriptor(**value)
TypeError: 'str' object cannot be interpreted as an integer
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/lib/python3.10/site-packages/proto/marshal/rules/message.py", line 36, in to_proto
return self._descriptor(**value)
TypeError: 'str' object cannot be interpreted as an integer
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/app/products.py", line 466, in product_update
product_input=ProductInput(product),
File "/usr/local/lib/python3.10/site-packages/proto/message.py", line 728, in __init__
pb_value = marshal.to_proto(pb_type, value)
File "/usr/local/lib/python3.10/site-packages/proto/marshal/marshal.py", line 235, in to_proto
pb_value = self.get_rule(proto_type=proto_type).to_proto(value)
File "/usr/local/lib/python3.10/site-packages/proto/marshal/rules/message.py", line 46, in to_proto
return self._wrapper(value)._pb
File "/usr/local/lib/python3.10/site-packages/proto/message.py", line 728, in __init__
pb_value = marshal.to_proto(pb_type, value)
File "/usr/local/lib/python3.10/site-packages/proto/marshal/marshal.py", line 218, in to_proto
return type(value)(self.to_proto(proto_type, i) for i in value)
File "/usr/local/lib/python3.10/site-packages/proto/marshal/marshal.py", line 218, in <genexpr>
return type(value)(self.to_proto(proto_type, i) for i in value)
File "/usr/local/lib/python3.10/site-packages/proto/marshal/marshal.py", line 235, in to_proto
pb_value = self.get_rule(proto_type=proto_type).to_proto(value)
File "/usr/local/lib/python3.10/site-packages/proto/marshal/rules/message.py", line 46, in to_proto
return self._wrapper(value)._pb
File "/usr/local/lib/python3.10/site-packages/proto/message.py", line 724, in __init__
raise ValueError(
ValueError: Unknown field for Shipping: handling_cutoff_timezone
Determine this is the right repository
Summary of the issue
Context
The type
Shipping(belong in/shopping/merchant_products_v1/types/products_common.py) have two missing fields (handling_cutoff_time&handling_cutoff_timezone) compared to Google Merchant API documentation & Google discovery documentGoogle Merchant Product discovery document : https://merchantapi.googleapis.com/$discovery/rest?version=products_v1
Google Merchant API documentation : https://developers.google.com/merchant/api/reference/rpc/google.shopping.merchant.products.v1#shipping
Expected Behavior:
No error raised when one of those two field is specified to update/insert a product
Actual Behavior:
We can't specify those two fields when a
ProductInputis required in a request, for example insert/update product. AValueErroris raised :ValueError: Unknown field for Shipping: handling_cutoff_timezoneStack Trace
API client name and version
google-shopping-merchant-products = 1.3.0
Reproduction steps: code
Reproduction steps: supporting files
No response
Reproduction steps: actual results
Reproduction steps: expected results
No response
OS & version + platform
Ubuntu 24.04.3 LTS
Python environment
3.10.19
Python dependencies
No response
Additional context
No response