-
Notifications
You must be signed in to change notification settings - Fork 5
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
Unhelpful Error when inserting via Ecto Ch: "1st argument: not an iodata term" #166
Comments
In this particular query the problem is For better errors we can do type checks on the supplied values in Ch, right now it just "dumps" UInt8 as a byte for the sake of "performance" :) |
Woah! How'd you figure that out? To start figuring this out in the |
Sorry, it's not an
|
You'd need to check your Here's what seems to be inserted in your query: [
{"empty_cards_count", "UInt8", 5},
{"standards_added", "UInt8", 0},
{"words_deleted", "UInt16", <<13, 0>>},
{"links_unchanged", "UInt8", 0},
{"cards_of_any_type_edited", "UInt8", 6},
{"version", "UInt32", <<12, 0, 0, 0>>},
{"google_classroom_cards_unchanged", "UInt8", 0},
{"text_cards_added", "UInt8", 0},
{"attachments_unchanged", "UInt8", 0},
{"standard_cards_edited", "UInt8", 0},
{"google_classroom_cards_edited", "UInt8", 0},
{"google_classroom_cards_added", "UInt8", 0},
{"day_cards_count", "UInt8", 0},
{"standards_deleted", "UInt8", 0},
{"attachments_added", "UInt8", 0},
{"date_plan_scheduled_for", "Date", <<90, 77>>},
{"google_classroom_cards_deleted", "UInt8", 0},
{"comments_added", "UInt8", 0},
{"words_in_title_count", "UInt16", <<5, 0>>},
{"words_count", "UInt16", <<44, 0>>},
{"card_stack_id", "FixedString(24)", "65ef6b1c710c040fc2000010"},
{"standards_unchanged", "UInt8", 0},
{"text_cards_edited", "UInt8", 1},
{"words_added", "UInt16", <<42, 0>>},
{"standard_cards_deleted", "UInt8", 0},
{"standard_cards_added", "UInt8", 0},
{"standard_cards_unchanged", "UInt8", 0},
{"date_action_performed", "Date", "RM"},
{"comments_deleted", "UInt8", 0},
{"comments_unchanged", "UInt8", 0},
{"text_cards_deleted", "UInt8", 5},
{"links_count", "UInt8", 1},
{"attachments_count", "UInt8", 0},
{"comments_count", "UInt8", 0},
{"standard_cards_with_comments_count", "UInt8", 0},
{"words_in_body_count", "UInt16", <<39, 0>>},
{"text_cards_unchanged", "UInt8", 0},
{"standard_cards_count", "UInt8", 0},
{"attachments_deleted", "UInt8", 0},
{"links_added", "UInt8", 1},
{"planbook_id", "FixedString(24", "65982e230e6ea60001d8147e"},
{"percentage_of_empty_cards", "UInt8", 500}, # <= problem
{"cards_of_any_type_deleted", "UInt8", 5}
# etc.
] And I'd need to add some kind of check in Line 198 in 419db47
|
Hi! I really appreciate the work on this driver! It's been working great (I'm using it via ecto_ch). However, we're seeing an error occasionally pop up in production that we can't get to the bottom of. We're not sure if we're doing something wrong or if it's a bug in the driver. Here's the error.
Any idea what's going on here?
The text was updated successfully, but these errors were encountered: