We are testing our partner app and it failed during the following snippet:
const { shopifyApi, Session, DeliveryMethod, LogSeverity, CookieNotFound } = require(‘@shopify/shopify-api’);
const { restResources } = require(‘@shopify/shopify-api/rest/admin/2023-10’);
…
const shopify = shopifyApi({
apiKey: SHOPIFY_API_KEY,
apiSecretKey: SHOPIFY_API_SECRET_KEY,
scopes: [‘read_products’, ‘read_orders’, ‘read_all_orders’, ‘read_locations’],
hostName: SHOPIFY_APP_HOSTNAME,
hostScheme: ‘https’,
isEmbeddedApp: false,
restResources,
logger: shopifyLoggerConfig,
});
…
const sessionParams = {
“_id”:{“$oid”:},
“shop”:,
“accessToken”:,
“created_at”:{“$date”:“2024-02-28T14:11:40.999Z”},
“id”:,
“isOnline”:false,
“scope”:“read_products,read_orders,read_all_orders,read_locations”,
“state”:,
“updated_at”:{“$date”:“2024-02-28T20:03:16.134Z”}}.toObject();
const session = new Session(sessionParams);
const response = await shopify.rest.Shop.all({ session });
We get a response code 503 Service Unavailable and this error from the nodejs shopify library
Error: Shopify internal error:
If you report this error, please include this id: f4f5483b-4bf9-4bc3-b463-40ac4b525cec