You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I try to call update_user endpoint and update the session_time, an type mismatch error happens.
Current SDK (2.0.2) expect float
deltas=PropertiesDeltas(
^^^^^^^^^^^^^^^^^
File "/Users/vinter/Projects/tmp/onesignal_be/venv/lib/python3.11/site-packages/onesignal/model_utils.py", line 49, in wrapped_init
return fn(_self, *args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/vinter/Projects/tmp/onesignal_be/venv/lib/python3.11/site-packages/onesignal/model/properties_deltas.py", line 275, in __init__
setattr(self, var_name, var_value)
File "/Users/vinter/Projects/tmp/onesignal_be/venv/lib/python3.11/site-packages/onesignal/model_utils.py", line 190, in __setattr__
self[attr] = value
~~~~^^^^^^
File "/Users/vinter/Projects/tmp/onesignal_be/venv/lib/python3.11/site-packages/onesignal/model_utils.py", line 511, in __setitem__
self.set_attribute(name, value)
File "/Users/vinter/Projects/tmp/onesignal_be/venv/lib/python3.11/site-packages/onesignal/model_utils.py", line 162, in set_attribute
value = validate_and_convert_types(
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/vinter/Projects/tmp/onesignal_be/venv/lib/python3.11/site-packages/onesignal/model_utils.py", line 1595, in validate_and_convert_types
raise get_type_error(input_value, path_to_item, valid_classes,
The actual endpoint except int64
{"errors":[{"title":"Field deltas.session_time was expecting value of type 'int64', received value of type 'number 3.14' instead"}]}
What happened?
When I try to call
update_user
endpoint and update the session_time, an type mismatch error happens.Current SDK (2.0.2) expect float
The actual endpoint except int64
Steps to reproduce?
What did you expect to happen?
Can update the property.
Relevant log output
No response
Code of Conduct
The text was updated successfully, but these errors were encountered: