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

response in #authenticate returns nil #17

Open
jamesfzhang opened this issue Dec 3, 2014 · 11 comments
Open

response in #authenticate returns nil #17

jamesfzhang opened this issue Dec 3, 2014 · 11 comments

Comments

@jamesfzhang
Copy link

I'm getting "NoMethodError: undefined method [] for nil:NilClass" when running client.authenticate, specifically, resp is nil. I'm a third party connecting to customers' Pardot accounts and I'm assuming some combination of email, password, and user_key is incorrect. Shouldn't this raise an error instead?

@flushentitypacket
Copy link
Contributor

Hey, @jamesfzhang. Fancy seeing you here.

Ran into this as well. Blargh.

@jamesfzhang
Copy link
Author

Haha Ron this is hilarious. Literally a year later and still no response. Faildot.

@flushentitypacket
Copy link
Contributor

Added a PR, but I'm seeing >1-year old PRs with not so much as even a comment. Morale is low.

@jusroberts
Copy link
Contributor

Do you have a way of reproducing this issue? I've tried running the client.authenticate with varying bad parameters, but have only ever gotten a Pardot::ResponseError: Login failed error.

@flushentitypacket
Copy link
Contributor

@jusroberts Unfortunately, impossible to say without divulging private information.

@jusroberts
Copy link
Contributor

Ah, so the issue is specific to certain users/accounts? How often are you getting a nil response back on login?

@flushentitypacket
Copy link
Contributor

@jusroberts Seems to be that way--just looking at the accounts, I don't see anything special, which makes this tough tell you how to to reproduce. This happens consistently for affected accounts--shot in the dark, but maybe this happens for deactivated/deleted accounts or something like that?

Regardless, if the API is able to return a nil response, the code using the response should be equipped to handle it.

@jusroberts
Copy link
Contributor

I agree. I'm working on getting permissions to merge the PR, but wanted to get it happening locally in the meantime.

@flushentitypacket
Copy link
Contributor

👍

@jusroberts
Copy link
Contributor

merged. I'll see what I need to do to get this out to rubygems.

@flushentitypacket
Copy link
Contributor

Great!

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

3 participants