Closed BatuhanUsluel closed 1 year ago
This issue seems inactive. If it's still relevant, please add a comment saying so. Otherwise, take no action. → If there's no activity within a week, then a bot will automatically close this. Thanks for helping to improve Shopify's dev tooling and experience.
P.S. You can learn more about why we stale issues here.
Please confirm that you have:
In which of these areas are you experiencing a problem?
App
Expected behavior
Opening the app page inside Shopify is done in a reasonable timeframe and a single request to index.js is made
Actual behavior
Takes ~10 seconds to load.
app.use("/*", ...) is called twice each time (added a print statement inside index.js).
This is in response to a single refresh. Refresh is done at 20 seconds past, page loads at 37 seconds past.
2023-06-21 01:27:27 │ backend │ [shopify-app/INFO] Running ensureInstalledOnShop 2023-06-21 01:27:27 │ backend │ [shopify-app/INFO] App is installed and ready to load | {shop: testingdevstore1.myshopify.com} 2023-06-21 01:27:27 │ backend │ Serving index.html 2023-06-21 01:27:28 │ backend │ [shopify-app/INFO] Running ensureInstalledOnShop 2023-06-21 01:27:28 │ backend │ [shopify-app/INFO] App is installed and ready to load | {shop: testingdevstore1.myshopify.com} 2023-06-21 01:27:28 │ backend │ Serving index.html 2023-06-21 01:27:35 │ backend │ [shopify-app/INFO] Running validateAuthenticatedSession 2023-06-21 01:27:36 │ backend │ [shopify-app/INFO] Request session has a valid access token | {shop: testingdevstore1.myshopify.com}
Verbose output
Reproduction steps
Issue wasn't happening initially with my project. Once it started happening, couldn't fix it. Tried cloning and running with the example project and saw it faced the same error. Tried with node 16, faced same issue.
NOTE: Cut off the Verbose output because of github issue character limit. It only includes up to the app loading, doesn't contain messages related to my refresh. Cut off at about line ~1000, which is when the loading finishes. Refreshing the page causes it to go to ~180k lines. Included first ~4000 lines here https://pastebin.com/QynUFGqH
Operating System
Windows 10
Shopify CLI version (check your project's
package.json
if you're not sure)3.46.5
Shell
Command Prompt
Node version (run
node -v
if you're not sure)v18.16.1
What language and version are you using in your application?
Node 18.16.1