mailjet / mailjet-gem

[API v3] Mailjet official Ruby GEM

Home Page:https://dev.mailjet.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Random 404 Errors

netwire88 opened this issue · comments

Hi,
I've been getting random 404 errors on Mailjet::Contact_managecontactslists.create. It's difficult to replicate since if I run it again, it might or might not work. Are others seeing this?

JSON::ParserError: 783: unexpected token at '<html> <head><title>404 Not Found</title></head> <body bgcolor="white"> <center><h1>404 Not Found</h1></center> <hr><center>nginx</center> </body> </html> '

Sorry, but this is not the optimal way to put the retry business logic in the library. The application is responsible for this retry logic. Gem should only provide a connection for a third-party service or API.