Open MyBaymax opened 11 months ago
@shopify/shopify-api => v8.1.1 node => v18.18.2
Hi there 👋
We have had a few reports of this, but we have been unable to reproduce it on our side.
Would you have any more details around the actions you took before this started happening?
Was this on a fresh install? Did you uninstall and reinstall? Did you stop the server and uninstall?
If you have any more details or could provide us with code that can consistently reproduce that issue that would be very helpful for debugging.
@lizkenyon
非常感谢您的关注。
对于该问题我使用 shopify-app-remix 替代 shopify-api-js。
在shopify-app-remix不会出现该问题。
import "@shopify/shopify-app-remix/server/adapters/node";
Thank you very much for your attention.
For this issue, I will use shopify-app-remix instead of shopify-api-js.
This issue will not occur in shopify-app-remix
.
Import "@ shopify/shopify-app-remix/server/adapters/node";
Hi there 👋
We have had a few reports of this, but we have been unable to reproduce it on our side.
Would you have any more details around the actions you took before this started happening?
Was this on a fresh install? Did you uninstall and reinstall? Did you stop the server and uninstall?
If you have any more details or could provide us with code that can consistently reproduce that issue that would be very helpful for debugging.
@lizkenyon I have rebuilt the project and this is the project repository connection https://github.com/MyBaymax/remix-shopify Looking forward to your reply 🙏
We're labeling this issue as stale because there hasn't been any activity on it for 60 days. While the issue will stay open and we hope to resolve it, this helps us prioritize community requests.
You can add a comment to remove the label if it's still relevant, and we can re-evaluate it.
@MyBaymax did you ever figure this out? This is still happening to me...
There seems to be a trend of this happening if I tried app installations in quick succession.
There seems to be a trend of this happening if I tried app installations in quick succession.
@jjrise
I found that the problem was request
.
So I use express to handle authentication requests, and this is my solution.
router.use("/login", async (req: Request, res: Response) => {
const shop = shopify.utils.sanitizeShop(req.query.shop as string);
try {
if (!shop) throw new Error("缺少 Shop");
return await shopify.auth.begin({
shop,
callbackPath: process.env.SHOPIFY_APP_CALLBACK_PATH,
isOnline: process.env.SHOPIFY_APP_IS_EMBEDDED,
rawRequest: req,
rawResponse: res,
});
} catch (error) {
res.status(400).json(error);
}
});
We're labeling this issue as stale because there hasn't been any activity on it for 60 days. While the issue will stay open and we hope to resolve it, this helps us prioritize community requests.
You can add a comment to remove the label if it's still relevant, and we can re-evaluate it.
Descriptions
Validating installation request process with "statusCode" undefined error Requesting help. Thanks!🙏
Console Error Info
installation request
shopify.server.ts
auth.login.ts