Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Self-hosted exception: 1st argument: not an iodata term erlang.iolist_to_binary... #4

Open
eracle opened this issue Aug 27, 2022 · 1 comment

Comments

@eracle
Copy link

eracle commented Aug 27, 2022

I copy paste here so it can be useful for self-hosted instances:
plausible/analytics#1570

@eracle eracle changed the title 1st argument: not an iodata term erlang.iolist_to_binary(%{"method" => "http"}) 1st argument: not an iodata term erlang.iolist_to_binary... Aug 27, 2022
@eracle eracle changed the title 1st argument: not an iodata term erlang.iolist_to_binary... Self-hosted exception: 1st argument: not an iodata term erlang.iolist_to_binary... Aug 27, 2022
@eracle
Copy link
Author

eracle commented Aug 27, 2022

In other words, when sending props to a self-hosted instance during a custom event, the server returns a 500 error.
I solved using JSON dumps:

import json
props = json.dumps(props)
ok = send_custom_event(request, name="Event", props=props)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant