-
Notifications
You must be signed in to change notification settings - Fork 698
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
Configuring the script tags is causing errors #1128
Comments
Hey @yehiasalam, thank you for reporting this. We'll look into it! |
Does this happen in all browsers? Was authentication seemingly successful before this error? |
Just got pretty much the same exception: I'm using JWT authentication (in process of migration from OAuth), Rails 6.1, shopify_app 16.1.0. We use Here's my initialiser: ShopifyApp.configure do |config|
config.application_name = 'App name'
config.api_key = ENV['SHOPIFY_CLIENT_API_KEY'].presence || Rails.application.credentials.shopify_client_api_key
config.secret = ENV['SHOPIFY_CLIENT_API_SECRET'].presence || Rails.application.credentials.shopify_client_api_secret
config.scope = 'read_themes, write_themes, read_products, write_products, read_content, write_content'
config.embedded_app = true
config.shop_session_repository = Shop
config.api_version = '2020-01'
config.allow_jwt_authentication = true
config.allow_cookie_authentication = false
config.webhooks = [
{ format: 'json', topic: 'app/uninstalled', address: "https://#{ ENV['SHOPIFY_DOMAIN'].presence || Rails.application.secrets.domain }/uninstall" },
]
end |
@tanema Hi Tim, yes i check on Chrome/Firefox/Edge, authentication was happening successfully right before I added the script tag. |
I'm having the same issue when trying to add webhooks to the initializer. Referenced in #1145. |
I am having this same issue. Rails 6.0.3.4, Shopify App 17.0.1
Error in code block:
|
Seems pretty clear this has to do with JWT and oAuth. The JWT Shopify domain object is nil all the time coming from no value at request.env['jwt.shopify_domain'] So what's up with that? |
Hi,
I ran my custom app using the shopify-cli and shopify_app, and everything was working fine. I'm trying right now to add an external js file to the frontstore, using the config.scripttags as instructed in the docs:
However, whenever I install the app i keep getting the following error, and this happens after adding:
Not sure what might the problem might be. It shouldn't be related to Auth i guess since it was working fine before adding the scripttags config.
The text was updated successfully, but these errors were encountered: