I meet Internal Server Error when i install my app

Highlighted
Shopify Partner
14 1 0

when i click install and then see the page that show me Internal Server Error

my ngrok console show me: GET /auth/callback 500 Internal Server Error

0 Likes
Highlighted

That sounds like there is an issue with how you are handling the call on your server code.

 

I think more error information may be needed in order to debug the issue.

ui-gab
https://www.uiavenue.ca
We specialize in data analytics. If I've helped you today, please give our give our app a try (15-day free trial) https://apps.shopify.com/ui-ave-analytics and maybe write a good review.
Send me a message if you want a free data analysis consultation.
0 Likes
Highlighted
Shopify Partner
14 1 0
Thanks. But I followed the tutorial to build the environment. Now I can’t go through the installation here. Today i try to clear the cookie.It continues to work. but it show me orther tips."HMAC validation failed"
0 Likes
Highlighted
Shopify Partner
14 1 0

\node_modules\isomorphic-fetch\node_modules\node-fetch\index.js.

I add this code and then success.

if (options.protocol === 'https:') { options.strictSSL = false; options.rejectUnauthorized = false; }

0 Likes
Highlighted
New Member
4 0 0

Please check API_VERSION in .env file and then restart the server. After that delete the previous app in your store and install it again using auth call back URL.

I have resolved this issue using the following API_VERSION;

API_VERSION='2019-10' 


@moziliang wrote:

when i click install and then see the page that show me Internal Server Error

my ngrok console show me: GET /auth/callback 500 Internal Server Error


 

0 Likes
Highlighted
New Member
3 0 0

Has anyone Resolved this yet?

0 Likes
Highlighted
Tourist
3 0 6

Your development store cannot authenticate your app.

  1. Check if your keys are correct in your .env file
  2. Make sure your .env file is called "process.env" or whatever it is named in your code in server.js
    const { SHOPIFY_API_SECRET_KEY, SHOPIFY_API_KEY } = process.env;
  3. Maybe the code cannot recognise the .env file so you'll have to point to it instead (Make sure the .env file is in your root folder). Replace
    dotenv.config();
    with in server.js
    dotenv.config({path:'process.env'});


Hopefully that helps!

4 Likes
Highlighted
New Member
2 0 1

@VineshG Great answer! This is the only one that worked for me.

1 Like
Highlighted
Excursionist
21 1 3

hi there, 

 

i am creating my app from the shopify template one on github.

i am facing the same issue and tried the above solution unsuccessfully. 

i also get the following error in node:

Failed to register webhook {
  errors: [
    {
      message: "Invalid url 'undefined/webhooks/products/create', missing host",
      locations: [Array],
      path: [Array],
      extensions: [Object]
    }
  ]
}
  TypeError: Cannot read property 'appSubscriptionCreate' of undefined
      at getSubscriptionUrl (/shopify-demo-app/server/getSubscriptionUrl.js:48:45)
      at processTicksAndRejections (internal/process/task_queues.js:97:5)
      at async afterAuth (/shopify-demo-app/server.js:57:9)

any other thoughts ?

0 Likes