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

ActionDispatch::Cookies::CookieOverflow in Rails SPA with Shopify Polaris #894

Closed
eebasadre20 opened this issue Feb 8, 2020 · 4 comments

Comments

@eebasadre20
Copy link

eebasadre20 commented Feb 8, 2020

Hi here,

Currently developing a new app using Shopify Polaris ( Rails SPA ).
Along the way, I encountered this issue

Screen Shot 2020-02-08 at 11 20 23 AM

Screen Shot 2020-02-08 at 11 20 48 AM

Here's my Shopify config

ShopifyApp.configure do |config|
  config.application_name = "My App"
  config.api_key = ENV['SHOPIFY_API_KEY']
  config.secret = ENV['SHOPIFY_API_SECRET']
  config.old_secret = ""
  config.scope = "read_products" # Consult this page for more scope options:
                                 # https://help.shopify.com/en/api/getting-started/authentication/oauth/scopes
  config.embedded_app = true
  config.after_authenticate_job = false
  config.api_version = "2020-01"
  config.session_repository = Shop
end

I'm not sure what causes this issue. I've researched regarding the issue and it suggested to use gem 'activerecord-session_store'. I haven't tried this and hesitant to use it as I prefer to not use another gem.

Is this the only solution? and may I know what's the cause of this?

@eebasadre20
Copy link
Author

I'll close this issue as I already figured out how to solve it.

@JuanseGimenez
Copy link

I'll close this issue as I already figured out how to solve it.

Hi @eebasadre20 how did you fix the issue? I've this problem on two applications

@rorong
Copy link

rorong commented Oct 11, 2024

@JuanseGimenez @eebasadre20 , How to fix this error ?

@JuanseGimenez
Copy link

JuanseGimenez commented Oct 12, 2024

@JuanseGimenez @eebasadre20 , How to fix this error ?

@rorong

I think using activerecord-session_store gem and replacing the session_store Rails.application.config.session_store from cookie_store to active_record_store

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