Giter Site home page Giter Site logo

Comments (6)

tyrauber avatar tyrauber commented on August 27, 2024

Hi @davydav, that's odd. !!(result.body) should catch an empty body. That line was added in #61 to address this exact problem. Can you confirm you are on version 3.0.0?

from sendgrid-actionmailer.

davydav avatar davydav commented on August 27, 2024

Yes I am, but I'm also on an old ruby 2.3.1 / rails 4.2.11.1, maybe that's the issue ? Anyway not too much trouble, I just removed the parsing part of the body and everything is fine :)

from sendgrid-actionmailer.

tyrauber avatar tyrauber commented on August 27, 2024

Possibly? 3.0.0 requires Mail 2.7 as a dependency. You could try locking sendgrid-actionmailer to version 2.6.0 and see if that resolves the issue.

from sendgrid-actionmailer.

davydav avatar davydav commented on August 27, 2024

Did some digging, as you can see !!(result.body) returns true in the case of an empty string. Is that behaviour different for you ?
Again, not to worry, just wanted to let you know :) thanks again !
https://i.imgur.com/0bcKAT6.png

from sendgrid-actionmailer.

tyrauber avatar tyrauber commented on August 27, 2024

hmrph, ok. !(response.body.empty?) it is.

Version bump to 3.0.1. Should resolve this issue. Thanks for digging.

from sendgrid-actionmailer.

tyrauber avatar tyrauber commented on August 27, 2024

I'm going to close this. Let me know if you have any additional problems.

from sendgrid-actionmailer.

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.