Fixing 404(s) in the current app

Status
ready for QA
Assign
type
House Cleaning
effort points
3
Start Date
Jul 20, 2022
End Date
priority
high
tags
bug
Github PR
Recent Finding:
Β 
So, the CORS errors suddenly stopped and I was debugging the 404(s) as they persisted on all server call given all the permissions and scopes. I noticed that the app wasn’t loading inside the store either. When I try to load the app inside the store, its a blank screen and the console has the following error.
Uncaught Object { name: "AppBridgeError", message: "APP::ERROR::INVALID_CONFIG: host must be provided", stack: "AppBridgeError@webpack-
Β 
This means we need to have a host on config vars but we already have that. And I thought it might be just cache.
Β 
But I noticed another error in logs when I load the app,
executed query { text: 'SELECT * FROM shops WHERE name = $1;', duration: 1, rows: 0 }
2022-07-21T20:12:25.131111+00:00 app[web.1]: This shop hasn't been seen yet, go through OAuth to create a session
Β 
So, I took a quick look at the DB and the online_access_token is null for both entries. I tried uninstalling and installing again just to see if it was a one time issue but it is not. This is the log of installing a store.
Authenticating OFFLINE access mode for banklessdao.myshopify.com
2022-07-21T20:12:23.496379+00:00 app[web.1]: executed query { text: 'SELECT * FROM shops WHERE name = $1;', duration: 2, rows: 0 }
2022-07-21T20:12:23.500799+00:00 app[web.1]: executed query {
2022-07-21T20:12:23.500799+00:00 app[web.1]:   text: 'INSERT INTO shops (name, offline_access_token) VALUES ($1, $2) RETURNING *;',
2022-07-21T20:12:23.500800+00:00 app[web.1]:   duration: 4,
2022-07-21T20:12:23.500800+00:00 app[web.1]:   rows: 1
2022-07-21T20:12:23.500801+00:00 app[web.1]: }
Β 
So, I think that the online access tokens are not being created anymore leading to this 404.

Fixing 404(s) in the current app

Status
ready for QA
Assign
type
House Cleaning
effort points
3
Start Date
Jul 20, 2022
End Date
priority
high
tags
bug
Github PR
Recent Finding:
Β 
So, the CORS errors suddenly stopped and I was debugging the 404(s) as they persisted on all server call given all the permissions and scopes. I noticed that the app wasn’t loading inside the store either. When I try to load the app inside the store, its a blank screen and the console has the following error.
Uncaught Object { name: "AppBridgeError", message: "APP::ERROR::INVALID_CONFIG: host must be provided", stack: "AppBridgeError@webpack-
Β 
This means we need to have a host on config vars but we already have that. And I thought it might be just cache.
Β 
But I noticed another error in logs when I load the app,
executed query { text: 'SELECT * FROM shops WHERE name = $1;', duration: 1, rows: 0 }
2022-07-21T20:12:25.131111+00:00 app[web.1]: This shop hasn't been seen yet, go through OAuth to create a session
Β 
So, I took a quick look at the DB and the online_access_token is null for both entries. I tried uninstalling and installing again just to see if it was a one time issue but it is not. This is the log of installing a store.
Authenticating OFFLINE access mode for banklessdao.myshopify.com
2022-07-21T20:12:23.496379+00:00 app[web.1]: executed query { text: 'SELECT * FROM shops WHERE name = $1;', duration: 2, rows: 0 }
2022-07-21T20:12:23.500799+00:00 app[web.1]: executed query {
2022-07-21T20:12:23.500799+00:00 app[web.1]:   text: 'INSERT INTO shops (name, offline_access_token) VALUES ($1, $2) RETURNING *;',
2022-07-21T20:12:23.500800+00:00 app[web.1]:   duration: 4,
2022-07-21T20:12:23.500800+00:00 app[web.1]:   rows: 1
2022-07-21T20:12:23.500801+00:00 app[web.1]: }
Β 
So, I think that the online access tokens are not being created anymore leading to this 404.