Skip to content

JSON quoted comma not ignored #578

@codeFarmerJ

Description

@codeFarmerJ

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",addr1@example.com,54321
"User, Joe",addr2@example.com,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:

  • sendgrid-python 5.3.0
  • Python Version: 2.7.3

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions