-
Notifications
You must be signed in to change notification settings - Fork 714
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
JSON quoted comma not ignored #578
Comments
Hello @codeFarmerJ, Yes, this is a known bug at the API level and a workaround has not been added to this SDK yet. However, we do have a workaround implemented in our PHP SDK that should help. I'll leave this issue open so that we can get that patch implemented here also. Thanks! With Best Regards, Elmer |
I would like to try to solve this. Any idea where should I start (which files should I focus on)? |
This was |
@cmccandless So the issue is resolved? |
@shubhambhattar yes, that is what I intended to say. Apologies for the typo. |
Note: it was requested that #618 be targeted at the v4 branch instead of the master branch, so the issue keywords did not close this issue. It is probable that when v4 is merged with master, this issue will automatically be closed. |
@cmccandless Okay. Thanks for the clarification. |
Also, possible duplicate of #291 |
Yes, this is the same underlying "commas in recipient display names" API problem as #291, and is not actually related to CSV files or JSON. More info and outline for a fix is in this comment. Just a heads up that the code merged in #618 likely injects a couple of new issues:
|
Since there has been no activity on this issue since March 1, 2020, we are closing this issue. Please feel free to reopen or create a new issue if you still require assistance. Thank you! |
Issue Summary
I'm using a python script to send emails. It mostly works. Comma embedded in quotes are causing the submission to fail.
Steps to Reproduce
The input is a CSV file.
"Joe User",[email protected],54321
"User, Joe",[email protected],55555
The second line fails.
Python correctly parses the line and formats it as JSON, but it fails on submission. Apparently the quotes on name field are ignored and sees the embedded comma as a delimiter. It then uses User as the name and Joe as the email address and fails.
Is this a known bug? Is there a work-around?
Technical details:
The text was updated successfully, but these errors were encountered: