Comments (12)
Looks like the problem could be coming from the fact that if I do (after having tried at least once to save the contact):
contact = Mailjet::Contactslist_managecontact.new(contact_params)
contact.class.properties
I get: {}
Meaning that https://github.com/mailjet/mailjet-gem/blob/master/lib/mailjet/resource.rb#L235 then erase all the properties while formating the payload...
from mailjet-gem.
Hi @EtienneDepaulis !
thank you for using Mailjet ! I faced the issue a few days ago! strangely, it doesn't happen without rails. I will investigate and get back to you ! Thank you !
Best,
Guillaume
from mailjet-gem.
Here is the dirty fix I found:
contact_params = {id: main_contact_list_id, action: "addnoforce", email: user.email}
contact = Mailjet::Contactslist_managecontact.create(contact_params)
Mailjet::Contactslist_managecontact.properties = [:email, :name, :action, :properties]
Mailjet::Contactdata.create(:contact_id => contact.contact_id, :data => [...])
from mailjet-gem.
Hahah ! dirty indeed ! I guess you could use that until I come up with a solution !
from mailjet-gem.
I had too, looks like Mailjet support don't give a shit about support request sadly :/
from mailjet-gem.
Sorry you have this feeling.
we're working hard on this issue. I manage to identify the bug. I'll keep you up to date on that !
Best,
Guillaume
from mailjet-gem.
I found out why it didn't work. A naming conflict in our wrapper. Could you tell me if this works for you on the rails_fix: branch ?
from mailjet-gem.
Thanks for looking into it.
However, we already lost 3 hours today (and few more 2 weeks ago) with this bug.
This gem should really have specs in my opinion ...
from mailjet-gem.
Hey !
I started implementing specs to test the wrapper. Thank you for your time. If you need anything else, I would be happy to help, otherwise, can you please close the issue ?
Best,
Guillaume
from mailjet-gem.
Has this gem been updated on Rubygems ?
If not, the issue still exists ...
from mailjet-gem.
Hey ! @EtienneDepaulis
I am just letting you know that we released a new version on RubyGem with specs this time, and the rails_fix branch is now merged into master. We are planning to constantly grow our tests over time. Feel free to contribute if you think it lacks some useful checks !
Best,
Guillaume from Mailjet !
from mailjet-gem.
awesome thx :)
from mailjet-gem.
Related Issues (20)
- FATAL -- : [12421295-5b4a-4afa-828e-166f88779600] Net::OpenTimeout (execution expired): HOT 2
- Random 404 Errors HOT 1
- undefined method `merge' for nil:NilClass HOT 1
- Autoloading and Reloading Constants HOT 1
- error 400 while sending HOT 1
- Send a mail with template: error in template language HOT 1
- Rails integration causes an "Initialization autoloaded the constants ActionText::ContentHelper" warning HOT 1
- ActionMailer + Campaigns? HOT 1
- formatted_payload in resource.rb returns incomplete hash HOT 1
- Cannot change delivery method options after initialization of APIMailer HOT 2
- Setting `from` and `reply_to` to `nil` or `''` causes 400 Bad Request HOT 1
- Support for API v4 - SMS API HOT 2
- Possible bug in the `Mailjet::Send.create` method HOT 1
- Read only attribute causing NoMethodError (undefined method `map' for nil:NilClass) HOT 2
- I'm facing the same issue with just a basic hello world email template. HOT 1
- How to use Send API v3.1 and REST API v3 at the same time? HOT 1
- Remove password and API key from exception
- YAJL/json_gem replaces `JSON` in the whole application (not only in the mailjet-gem's context) HOT 2
- Issues using this gem outside of Rails HOT 1
- Ruby on Rails webhook not receiving any events notification
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 mailjet-gem.