This is a deep-in-Shopify bug interfacing with the Python Requests library (all of which are part of the dependency stack for your specific Crowdbotics app!)
You can fix this with the solution indicated above: when invoking the Shopify API, encode {api_key}:{password} in base64 and send this value in the headers of your request ie. {'Authorization': 'Basic {token_base_64}'}
The Admin API needs API_KEY and Password. With these I could make the token to use in Authorization header. But, shopify storefront directly provide the token to use in header.
@tipu002, if you look at the environment variables for your production app, neither SHOPIFY_SUBDOMAIN, nor SHOPIFY_API_VERSION exist. Could this be the problem?
It works. I added them again let’s see what happens. But, I added them one by one before deploy the new feature. Sometimes I get error adding new env vars. Thanks a lot
Adding variables only works when you have a successfully deployed backend. If it fails under different circumstances - please post here and we’ll see what’s going on.