Have your say in Community Polls: What was/is your greatest motivation to start your own business?

Session was not valid after deploying to heroku - embedded app

Session was not valid after deploying to heroku - embedded app

geobertz
Shopify Partner
27 0 22

I have been trying to figure this out for hours and I really cant solve it.
I previously had this issue with our first app I was able to fix it by setting the correct scopes in shopify.js
But now I had this problem again, the only difference now is im using extension to enable our app instead of script-tags.

I development version of this app is working perfectly fine, but when i created a production version of this app, upload files to heroku, then update the production app URL and I tried to install it on a development store, I keep being redirected 3 times, and when I check the log it keeps saying SESSION WAS NOT VALID.

Please help me, I really need to be able to deploy this on production. Thank you

geobertz_0-1696849296083.png

 

geobertz
Replies 4 (4)

Vaibhav22
Shopify Partner
6 0 1

Hi @geobertz 

Did you resolve this issue?

geobertz
Shopify Partner
27 0 22

Yes, but i forgot what I did, I think I checked my .toml file if it matches everyting and my .env file in heroku as well

geobertz
Vaibhav22
Shopify Partner
6 0 1

Facing the same issue of 403 Forbidden error while requesting anything from the backend. It sets the bearer token perfectly on to the request headers. Also while validating the session token from the backend it's giving the error saying session not valid and forwarding to reauthorize the app.
It works fine on local but when deployed it on aws with that docker image. Its giving this above issue.

mehakdhuria1gm
Shopify Partner
2 0 0

did you find resolved this issue? i am having the same issue when deploying to heroku,
i checked by consoling on local and heroku , on heroku it doesn't go beyond session.isActive 
i don't know why session is not active on heroku