Shopify / Shopify/shopify-app-template-node
There's no page at this address
Open
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 1k
- Forks
- 434
- PR merge metrics
- No merged PRs in 30d
Description
Here is my shopify.js configs:
import { BillingInterval, LATEST_API_VERSION } from "@shopify/shopify-api";
import { shopifyApp } from "@shopify/shopify-app-express";
import { SQLiteSessionStorage } from "@shopify/shopify-app-session-storage-sqlite";
import { restResources } from "@shopify/shopify-api/rest/admin/2023-07";
const DB_PATH = `${process.cwd()}/database.sqlite`;
// The transactions with Shopify will always be marked as test transactions, unless NODE_ENV is production.
// See the ensureBilling helper to learn more about billing in this template.
const billingConfig = {
"My Shopify One-Time Charge": {
// This is an example configuration that would do a one-time charge for $5 (only USD is currently supported)
amount: 5.0,
currencyCode: "USD",
interval: BillingInterval.OneTime,
},
};
const scopes =
"read_customers,read_orders,read_products,write_customers,write_products";
const hostName = "https://appname.domain.com";
const SHOPIFY_API_KEY = "#########";
const SHOPIFY_API_SECRET = "#######";
const shopify = shopifyApp({
useOnlineTokens: true,
api: {
apiKey: SHOPIFY_API_KEY,
apiSecretKey: SHOPIFY_API_SECRET,
scopes: scopes.split(","),
// hostName: hostName.replace(/https?:\/\//, ""),
apiVersion: LATEST_API_VERSION,
restResources,
billing: undefined, // or replace with billingConfig above to enable example billing
},
auth: {
path: "/api/auth",
callbackPath: "/api/auth/callback",
},
webhooks: {
path: "/api/webhooks",
},
// This should be replaced with your preferred storage strategy
sessionStorage: new SQLiteSessionStorage(DB_PATH),
});
When installing the app it shows the dashboard for a second and then display the error message as There's no page at this address
@tobi @macournoyer @methodmissing @ericflo
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the shopify.js configuration shown in the report, especially the authentication paths and host settings. Reproduce the installation flow and trace the redirect that leads to the reported Shopify error page. Done means a newly installed app reaches its dashboard without showing “There's no page at this address”.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- api, backend
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100