mailjet / mailjet-gem

[API v3] Mailjet official Ruby GEM
https://dev.mailjet.com
Other
130 stars 72 forks source link

"Could not determine HTTP module for request v3" #115

Closed kennym closed 7 years ago

kennym commented 7 years ago

Hi, I'm running the following command:

variable = Mailjet::Campaigndraft.create(locale: "en_US",sender: "Sender",sender_email: "***@***.com",subject: "Your deals of the week",contacts_list_id: "< LIST ID >",title: "Friday newsletter")

and get the following error:

"{ \"ErrorInfo\" : \"EFPWebError\", \"ErrorMessage\" : \"Could not determine HTTP module for request \\\"v3\\\"\", \"StatusCode\" : 500 }\n"

Any ideas of what's the cause?

kennym commented 7 years ago

I think I found the error: Mailjet::ApiError: error 500 while sending #<RestClient::Resource:0x007fd38dccfc00 @url="https://api.mailjet.com/v3/v3/REST/campaigndraft"

v3 is added in there twice.

kennym commented 7 years ago

@project manager

Constructive criticism... I see the same bug happening all over the place just doing a quick skim. Is V3 production-ready? The client still seems to need some work.

Zhivko-Mailjet commented 7 years ago

@kennym Thanks for your feedback. We will examine the wrapper and will get back to you as soon as we can.

latanasov commented 7 years ago

Hi @kennym my apologies for the inconvenience. I'll accept your PR and soon take the time to revise the whole wrapper. Meanwhile if you find any other issues, feel free to report them.