Hey guys, do anyone have a code snippet example of...
# support
r
Hey guys, do anyone have a code snippet example of how to send an anonymous event from the Python SDK without setting the user_id. I've been trying different ways of doing so, but without success yet. The documentation says user_id should always be present but only if anonymous_id is not set, but if I try to not pass the user_id as an argument I get the same error once again:
Copy code
AssertionError: user_id or anonymous_id must have (<class 'numbers.Number'>, (<class 'str'>,)), got: None
s
Hey There! 👋 Your message has been received by the RudderStack team. Our standard customer support hours are 9-6 PM EST, but we will forward this request to your Technical Account Manager, and they will get back to you shortly. Please use the thread for any additional comments.
h
user_id or anonymous_id needs to be sent outside of the props payload
your anon_id is in the wrong place - its not part of properties
✅ 1
🫶 1
r
@hundreds-lifeguard-65770 Thanks for the insight, got it working now!
👍 1
q
Thank you @hundreds-lifeguard-65770. You have been very helpful