App working in local environment but not on google cloud platform

Topic summary

A developer’s Shopify app has suddenly stopped functioning on Google Cloud Platform after working reliably for 6+ months. The app scrapes website data and updates Shopify inventory using GraphQL.

Key Issue:

  • All cloud functions now fail to connect to Shopify with an “Invalid API key or access token (unrecognized login or wrong password)” error
  • The identical code runs successfully in a local environment
  • The breakdown occurred overnight without any code changes

Technical Details:

  • Uses Python with Shopify Session (SHOP_URL, API_VERSION, PASSWORD parameters)
  • Error occurs during shopify.ShopifyResource.activate_session(session)

Current Status:

  • Problem remains unresolved
  • At least one other developer reports experiencing a similar issue
  • No solution or root cause identified yet
Summarized with AI on November 6. AI used: claude-sonnet-4-5-20250929.

Have had an app working for over 6 months scraping data from websites and updating inventory on Shopify via graphql + google cloud platform. Overnight all of my functions are broken and won’t connect to Shopify from the cloud anymore. I can run the exact same code from a local environment without any issues. Why am I unable to connect to Shopify anymore?

Why would this break overnight?
Why can I run from local machine with the exact same code but not on Google Cloud Platform?

try:
    session = shopify.Session(SHOP_URL, API_VERSION, PASSWORD)
    shopify.ShopifyResource.activate_session(session)
except:
    print("error connecting shopify")
{"errors":"[API] Invalid API key or access token (unrecognized login or wrong password)"}
1 Like

I seem to be running into a similar problem. Please let me know if you found a fix for the problem or not.