Closed agafonec closed 9 months ago
Are you able to get through the Shopify Oauth probably? Have you also run config:clear
and cache:clear
just in case?
Are you able to get through the Shopify Oauth probably? Have you also run
config:clear
andcache:clear
just in case?
Wow, that was a quick reply, thanks. yes i do run config:clear
and cache:clear
, with sail comand as well.
i checked with a custom code if i able to get auth token, it gave me the token. but not with the package. :( but it worked fine a month ago.
In the laravel logs are you seeing an errors? Such as DB ones etc?
@Kyon147 just tried with complete fresh installation, using blade templating, and only your package installed. went through all installtion process, checked twice. still giving empty password field. https://prnt.sc/WO0Sp_P2mqH2
In the laravel logs are you seeing an errors? Such as DB ones etc?
no, log is completely empty
@Kyon147 maybe you have advices how can i debug it, and see how authentication process is going?
@Kyon147 in AuthenticateShop::__invoke()
i tried to log like query \Log::info('AUTH CODE', ['query' => $request->query()]);
and that's what i got as a result.
[2023-09-22 10:06:54] local.INFO: AUTH CODE {"query":{"shop":"astra-collection-store.myshopify.com"}}
i assume here should be an auth code. but it's not there, which is weird
I see you are using VUE
as the template engine, can you change it to REACT
as VUE
as a constant is not set up I don't think yet.
I see you are using
VUE
as the template engine, can you change it toREACT
asVUE
as a constant is not set up I don't think yet.
changed it, still the same. here what i found.
in the ApiHelper::buildAuthUrl()
i logged the generated url, it's giving me the right auth url. but in the database it's still no password again.
ApiHelper::buildAuthUrl()
generated for me. so maybe, there are some problems with redirection? but it would be very common issue, not only me in that case.
Does the issue only happen once you remove the app for the first time?
Do you have the uninstall webhook set up? There are issues if the shop has not been trashed correctly because fields are not set properly. i.e. password
should be am empty string and the deleted_at
should have a date.
As a fresh install works, that leads me to think it might be that.
it happened to me even with fresh laravel project, and fresh app created.
speaking about the removed app, i removed an instance from database as well. and then on reinstalling the app, i got the row with the empty password.
@agafonec i've tried to replicate this but can't. if the uninstalled webhook is working as expected then I don't get any problem with reinstalled.
Going to close this for now.
I got the same issue after removing the app from the store (after removed, the shop record inside users table was still there) Then I tried to reinstall the app and I got empty password. @Kyon147 please help to investigate. You may try to create a new app without any webhooks first, then try to add some webhooks, uninstall and reinstall the app again. Thanks,
Hi There, Recently i updated the domain for the app, but it's suddenly started to save empty password in the user statement in the database. it's happening with 2 of my apps. laravel 9 and laravel 10. any idea what that can be?
Steps to Reproduce
Context
Failure Logs
don't see errors in the log.
Thanks in advance.