Comments (6)
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.
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.
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.
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.
hmrph, ok. !(response.body.empty?)
it is.
Version bump to 3.0.1. Should resolve this issue. Thanks for digging.
from sendgrid-actionmailer.
I'm going to close this. Let me know if you have any additional problems.
from sendgrid-actionmailer.
Related Issues (20)
- Testing in development with letter_opener? HOT 3
- Renaming master branch to main HOT 1
- Migrate off Travis CI HOT 1
- Actionmailer test helper not working with sandbox HOT 1
- How do I send attachments?
- NoMethodError: undefined method `unparsed_value' for #<Mail::OptionalField:0x007fbc2ad7b318> HOT 1
- Having troubles with attachments
- Setup global retry using mail settings
- Error message: A JSON text must at least contain two octets! HOT 3
- Release tags after v2.6.0 are missing or are inconsistent HOT 1
- Git tags are missing or inconsistent HOT 1
- Does not load when Rails inflection has been set for 'SendGrid' HOT 4
- asm parameter does not work HOT 2
- How do I enable sandbox mode in environment file? HOT 3
- Not attaching files HOT 2
- emails not delivered - 400 bad request HOT 1
- Bcc extension for multiple addresses HOT 1
- Feature request: Make it possible to config request timeout HOT 2
- Clarify how to test HOT 5
- undefined method `unparsed_value' for #<Mail::OptionalField:0x0055bc96f25960> HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sendgrid-actionmailer.