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

NoMethodError (undefined method `tr' for nil:NilClass) #249

Closed
samcambridge opened this issue May 12, 2016 · 3 comments
Closed

NoMethodError (undefined method `tr' for nil:NilClass) #249

samcambridge opened this issue May 12, 2016 · 3 comments

Comments

@samcambridge
Copy link

samcambridge commented May 12, 2016

Version info

  • intercom-ruby version: 3.4.0
  • Ruby version: ruby 2.2.3p173 (2015-08-18 revision 51636) [x86_64-linux]

Expected behavior

We're experiencing this when trying to create an event:

   @intercom.events.create(
       :event_name => "created-venue",
       :created_at => Time.now.to_i,
       :email => current_user.email,
       :metadata => {
          "venue_name" => @venue.name
       }
    )

Actual behavior

Error is raised.

Logs

May 12 10:05:59 project bundle[1978]: NoMethodError (undefined method `tr' for nil:NilClass):
May 12 10:05:59 project bundle[1978]: app/controllers/customer/venues_controller.rb:16:in `create'
@sarahjschultz
Copy link

Accidentally deleted my comment 🤦 -- bumping this, we're seeing the issue as well.

@jonseaberg
Copy link

I had this problem in the past and it was because I forgot to set the the environment variable for my api key. Not saying that is your problem. Just throwing it out there.

@samcambridge
Copy link
Author

@jonseaberg thanks for this - you made me double check my servers envionrment variables and I hadn't added my token like I thought I had!

@sarahjschultz this may also fix your issue.

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