镜像站点 · 本页由第三方 GitHub 只读镜像提供,非 GitHub 官方站点,不接受任何登录或凭据输入。前往 github.com
Skip to content

Intercom::BadRequestError: found unpermitted parameter #607

Description

@ortizedgar-buda

Version info

  • intercom-ruby version: 3.5.26
  • Ruby version: 2.7.8p225

Expected behavior

The tracking should pass normally.

Actual behavior

It fails because in the metadata there are parameters called base_amount and quote_amount that it doesn't seem to like.

Steps to reproduce

    def intercom
      @intercom ||= Intercom::Client.new(token: ENV['INTERCOM_ACCESS_TOKEN'])
    end

    intercom.events.create(
      user_id: 123,
      event_name: 'event',
      created_at: Time.now.to_i,
      metadata: {
          base_amount: [2_000, 'A'],
          quote_amount: [2_000, 'B'],
        }
    )

Logs

Intercom::BadRequestError
found unpermitted parameters: :base_amount, :quote_amount

No activity

Activity on this issue will appear here.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions