Hello dear community.
-
I’ve created new AWS Lightsail server with Apache and Laravel 10 app from Kyon147/laravel-shopify.
-
Successfully configured the app according to author guidelines.
-
App is responding in browser with direct GET/POST calls.
Here are the config parameters I’m using for my Shopify App:
I create link for single-merchant installation and while autheticated in the test store follow the link to install my app.
The app installation link looks like this:
https:// .myshopify.com/admin/oauth/install_custom_app?client_id=1e31905ba4b3a1e6eeeef33200c0ca88&signature=eyJfcmFpbHMiOnsibWVzc2FnZSI6ImV5SmxlSEJwY21WelgyRjBJam94TmpnME9EZzNNRFV6TENKd1pYSnRZVzVsYm5SZlpHOXRZV2x1SWpvaWRHVnpkQzB4TFhOMGIzSmxMV2R2Y21SdmJpMXphVzVqYkdGcGNpNXRlWE5vYjNCcFpua3VZMjl0SWl3aVkyeHBaVzUwWDJsa0lqb2lNV1V6TVRrd05XSmhOR0l6WVRGbE5tVmxaV1ZtTXpNeU1EQmpNR05oT0RnaUxDSndkWEp3YjNObElqb2lZM1Z6ZEc5dFgyRndjQ0o5IiwiZXhwIjoiMjAyMy0wNS0zMVQwMDoxMDo1My41ODVaIiwicHVyIjpudWxsfX0%3D–081dfbb30769229435c23f18e7a365fbad3e0f2c
After following the link, I’mgetting redirected to this route:
I see the installation page:
Apache log on app side looks like this
45.144.113.227 - - [18/May/2023:01:58:35 +0000] "GET /?hmac=306f63b94a190e21fda91e40e111930bbbe7bee602c61403b80a3a28d18f3611&host=YWRtaW4uc2hvcGlmeS5jb20vc3RvcmUvdGVzdC0xLXN0b3JlLWdvcmRvbi1zaW5jbGFpcg&shop=********.myshopify.com×tamp=1684375115 HTTP/1.1" 302 610 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/113.0.0.0 Safari/537.36"
45.144.113.227 - - [18/May/2023:01:58:36 +0000] "GET /authenticate?shop=********.myshopify.com HTTP/1.1" 200 2130 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/113.0.0.0 Safari/537.36"
I’m happy and ready to install the app. BUT…
Before clicking the Install App button, I copy the same installation link for my app and open it in Chrome again. Here is the same link:
I’m getting redirected to:
And I see this 404 error screen:
Apache calls log looks like this:
45.144.113.227 - - [18/May/2023:02:04:04 +0000] "GET /?hmac=6e1044405a7ef526164ab8703ddad48672ae75f2894d4ee3a70ca048afcd0366&host=YWRtaW4uc2hvcGlmeS5jb20vc3RvcmUvdGVzdC0xLXN0b3JlLWdvcmRvbi1zaW5jbGFpcg&shop=***********.myshopify.com×tamp=1684375443 HTTP/1.1" 302 1334 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/113.0.0.0 Safari/537.36"
45.144.113.227 - - [18/May/2023:02:04:04 +0000] "GET /authenticate/token?shop=*******.myshopify.com&target=%2F%3Fhost%3DYWRtaW4uc2hvcGlmeS5jb20vc3RvcmUvdGVzdC0xLXN0b3JlLWdvcmRvbi1zaW5jbGFpcg&host=YWRtaW4uc2hvcGlmeS5jb20vc3RvcmUvdGVzdC0xLXN0b3JlLWdvcmRvbi1zaW5jbGFpcg HTTP/1.1" 200 10769 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/113.0.0.0 Safari/537.36"
Quaestion: Why the redirect to installation confirmation page for merchant is inconsistent and keeps throwing 404 errors?
P.S If I click the Install App green button, app successfully installs.