Coder Social home page Coder Social logo

Comments (6)

pbyrne avatar pbyrne commented on August 17, 2024 1

We're experiencing the same error. Could you add me to the list of notified people?

In case this helps: in attempt to narrow down the root cause, we've found that we can't reproduce the error when only using sendgrid-ruby in a sample app. After loading active_support/json (which provides a new #to_json method), we can consistently reproduce with certain payloads. I suspect that the trouble seems to be that ActiveSupport's JSON encoding escapes HTML characters like < and >, while Ruby's default JSON encoding doesn't.

Best I can tell, both forms are valid:

# Just plain Ruby
["<foo>"].to_json
# => "[\"<foo>\"]"
JSON.parse(["<foo>"].to_json)
# => ["<foo>"]

# After `require 'active_support/json'`
["<foo>"].to_json
# => "[\"\\u003cfoo\\u003e\"]"
JSON.parse(["<foo>"].to_json)
# => ["<foo>"]

from sendgrid-ruby.

thinkingserious avatar thinkingserious commented on August 17, 2024 1

@ming-relax,

Unfortunately not. This is a server side issue.

That said, as of right now, it looks like this fix is scheduled to be released today.

from sendgrid-ruby.

thinkingserious avatar thinkingserious commented on August 17, 2024

@hipsterelitist ,

This bug is currently being fixed and I have added you to the list of people to be notified when it's done. Thanks!

from sendgrid-ruby.

thinkingserious avatar thinkingserious commented on August 17, 2024

You have been added @pbyrne and thanks for the additional feedback!

from sendgrid-ruby.

ming535 avatar ming535 commented on August 17, 2024

@thinkingserious is there a version that don't have this issue for v3 api?

from sendgrid-ruby.

thinkingserious avatar thinkingserious commented on August 17, 2024

The fix for this has been deployed :)

Thank you for your patience!

from sendgrid-ruby.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.