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

Parse error on item_name #71

Open
albcl opened this issue Jul 14, 2022 · 0 comments
Open

Parse error on item_name #71

albcl opened this issue Jul 14, 2022 · 0 comments
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@albcl
Copy link
Contributor

albcl commented Jul 14, 2022

"errorMessage": "Parse error on \"\" (STRING)",

Both create_item and create_subitem have the same issue. If the item/subitem name contains double quotes, it will fail when parsing the string.

query = '''mutation
{
create_item (
board_id: %s,
group_id: "%s",
item_name: "%s",
column_values: %s,
create_labels_if_missing: %s
) {
id
}
}''' % (board_id, group_id, item_name, monday_json_stringify(column_values),
str(create_labels_if_missing).lower())

Momentarily I have fixed it by replacing any " on an item's name with single quotes ' but I can imagine confusing strings when the item makes use of single quotes on its name...

@rhymiz rhymiz added good first issue Good for newcomers enhancement New feature or request labels Sep 2, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

2 participants