Skip to content

Instantly share code, notes, and snippets.

@realadeel
Created October 15, 2015 07:03
Show Gist options
  • Save realadeel/6e3b1457de2f5e647c34 to your computer and use it in GitHub Desktop.
Save realadeel/6e3b1457de2f5e647c34 to your computer and use it in GitHub Desktop.
Stripe::Product#images error
Stripe.api_key = 'sk_live_REDACTED'
product = Stripe::Product.retrieve('prod_7ANlgvTDSwqEsk')
product.images
=> []
product.images = ["https://daqj0hamajdep.cloudfront.net/api/file/rnlqHhGJSxS06buwvelQ+name.jpg", "https://daqj0hamajdep.cloudfront.net/api/file/hXesXSFRJSNyfNcJdiwg+name.jpg", "https://daqj0hamajdep.cloudfront.net/api/file/sbWRFmORRYOglcd5LiT8+name.jpg", "https://daqj0hamajdep.cloudfront.net/api/file/GDXMYn1ITWL9GEBVrVTI+name.jpg", "https://daqj0hamajdep.cloudfront.net/api/file/6AULYuihQZO8Bo6SF6fl+name.jpg"]
product.save
Stripe::InvalidRequestError: (Status 400) (Request req_7APt7XgqEEzmAm) Invalid array
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment