Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Requests hanging in Rails? #83

Closed
nneal opened this issue Apr 14, 2014 · 6 comments
Closed

Requests hanging in Rails? #83

nneal opened this issue Apr 14, 2014 · 6 comments

Comments

@nneal
Copy link

nneal commented Apr 14, 2014

I am attempting to add some Mailchimp integration to a Rails app. However, all of the requests I make inside of Rails hang indefinitely.

I made the same call (directly from the docs) gb.campaigns.list({:start => 0, :limit => 100}) which works in irb but does not work inside of Rails. I am using the same code in both to make the calls, and I also ensured that API keys are set correctly.

Any ideas why it might not work inside of Rails?

@amro
Copy link
Owner

amro commented Apr 14, 2014

Hi @nneal, No, I'm not sure why that might be. Many folks use Gibbon with Rails (myself included). Mind trying a limit of 1? Please also try loading up a Rails console and running the call there to see if it's any different.

@nneal
Copy link
Author

nneal commented Apr 14, 2014

Thanks for the super quick response! It works totally fine in rails console, but it's still hanging inside the application.

@nneal
Copy link
Author

nneal commented Apr 14, 2014

Also -- when I try to call:

gb.subscribe({id: list_id, email: { email: email }})

even in the console, it just returns an APICategory -- it doesn't seem to make a call to Mailchimp. Am I doing something funky that it making it not send the requests correctly?

@amro
Copy link
Owner

amro commented Apr 14, 2014

Should be gb.lists.subscribe - lists maps onto /lists in the MC API

On Apr 14, 2014, at 3:14 PM, Neal notifications@github.com wrote:

Also -- when I try to call:

gb.subscribe({id: list_id, email: { email: email }})
even in the console, it just returns an APICategory -- it doesn't seem to make a call to Mailchimp. Am I doing something funky that it making it not send the requests correctly?


Reply to this email directly or view it on GitHub.

@nneal
Copy link
Author

nneal commented Apr 14, 2014

/facepalm

thank you. subscribe is now working 👍

@nneal nneal closed this as completed Apr 14, 2014
@amro
Copy link
Owner

amro commented Apr 14, 2014

No problem. Glad it works!

Thanks,
Amro

Sent from my iPhone

On Apr 14, 2014, at 5:20 PM, Neal notifications@github.com wrote:

Closed #83.


Reply to this email directly or view it on GitHub.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants