These are chat archives for mirumee/saleor

22nd
Nov 2018
saleor217
@saleor217
Nov 22 2018 08:06
is ther any one getting thisn issue :- error:- AuthStateMissing at /en/complete/facebook/
Session value state missing.
if i already loooged in fb and then come to the saleor site and login with fb it will authorize me to access site and login there...
but if i not logged in fb and try to login with fb in saleror site it will presnet me with error:- AuthStateMissing at /en/complete/facebook/
Session value state missing.
if any one face problem ?
of this kind?
M Abdullah Abid
@wulaaf
Nov 22 2018 08:23
Hi guys!
Has anyone run into this?
ERROR celery.app.trace Task saleor.dashboard.emails.send_set_password_email[cd4ee00c-e1b4-4a57-80a1-0e8260028575] raised unexpected: TypeError("int() argument must be a string, a bytes-like object or a number, not 'User'",) [PID:1466:uWSGIWorker9Core0]
NyanKiyoshi
@NyanKiyoshi
Nov 22 2018 09:32
Sounds like a bug
M Abdullah Abid
@wulaaf
Nov 22 2018 09:58
This occurs when I add a staff member in the dashboard
Marcin Gębala
@maarcingebala
Nov 22 2018 10:28
@wulaaf Are you using the latest version? I think we had this issue some time ago but we fixed it .
M Abdullah Abid
@wulaaf
Nov 22 2018 10:28
I actually just merged the latest changes into my branch
Let me check again
Yup, its giving the same error
ERROR celery.app.trace Task saleor.dashboard.emails.send_set_password_email[b13c37b7-5aef-4602-9629-763b20bf637e] raised unexpected: TypeError("int() argument must be a string, a bytes-like object or a number, not 'User'",) [PID:12150:Thread-15]
@maarcingebala, can you share the issue #?
Marcin Gębala
@maarcingebala
Nov 22 2018 11:02
I'll try to find it in repo, I'm not sure if there was issue for that
I think the problem was that we were passing User object to a Celery task function
And Celery tasks can only take basic types such as ints or strings
So be the time I find it, you can try debugging where the task is called and what arguments are passed @wulaaf
NyanKiyoshi
@NyanKiyoshi
Nov 22 2018 11:27
@wulaaf you wouldn't happen to have a an error traceback? That would really help as I'm not free to try to reproduce the issue
Marcin Gębala
@maarcingebala
Nov 22 2018 11:27
I checked on latest master and couldn't reproduce
M Abdullah Abid
@wulaaf
Nov 22 2018 11:27
Hmm. Weird.
Marcin Gębala
@maarcingebala
Nov 22 2018 11:28
By the way I found a different strange bug - once an password email is sent and I click the password link, it says the token has expired :((
saleor217
@saleor217
Nov 22 2018 11:30
hi i bypass internal server error for error:- AuthStateMissing at /en/complete/facebook/
Session value state missing.
by in settings.py set DEBUG= False and
set SOCIAL_AUTH_LOGIN_ERROR_URL = '/' that's how if any error comes social _authentication module redirect us to our SOCIAL_AUTH_LOGIN_ERROR_URL equal to url
any better solution still most welcome!
M Abdullah Abid
@wulaaf
Nov 22 2018 11:31
I’ll run a trackback and get back to you guys. Also, I’ll also compare to master once again. Its unlikely but maybe I missed something.
Marcin Gębala
@maarcingebala
Nov 22 2018 11:44
@wulaaf It was this PR that I was thinking of: mirumee/saleor#3212
M Abdullah Abid
@wulaaf
Nov 22 2018 11:51
Thanks
On a different note, is there a way to reorder sub categories displayed?
M Abdullah Abid
@wulaaf
Nov 22 2018 12:21
Screenshot 2018-11-22 17.21.34.png
Screenshot 2018-11-22 17.21.14.png
Sample use case
Marcin Gębala
@maarcingebala
Nov 22 2018 12:30
There's no such thing at the moment. We use SortableModel abstract class for some of the models to allow reordering but that may be hard with categories as they're represented as tree.
But maybe it would work.
In the future we'd like to provide a customizable search facets so basically the whole filtering/navigation menu would be customizable.
To solve it now you'd have to experiment with extending the Category model.
NyanKiyoshi
@NyanKiyoshi
Nov 22 2018 12:37
@wulaaf there is no real way right now, but you can easily add the feature to Saleor https://github.com/VanilleBid/weekly-saleor/pull/94/files (mirumee/saleor#2057)
M Abdullah Abid
@wulaaf
Nov 22 2018 12:42
Roger that. Thanks for the info! I shall play around with it.
M Abdullah Abid
@wulaaf
Nov 22 2018 13:03
@NyanKiyoshi, just finished adding it to my project. Works like a charm! Thanks for sharing.
NyanKiyoshi
@NyanKiyoshi
Nov 22 2018 13:08
:tada:
Marcin Gębala
@maarcingebala
Nov 22 2018 14:06
Sounds good! When you have time it would be great to port it back to Saleor :)
NyanKiyoshi
@NyanKiyoshi
Nov 22 2018 14:32
Yes! Saw that when reading the issue. Could port it to dashboard 2.0 in a few minutes easily. But probably won't happen until at least December ;) I will write that down
saleor217
@saleor217
Nov 22 2018 14:57
hi i bypass internal server error for error:- AuthStateMissing at /en/complete/facebook/
Session value state missing.
by in settings.py set DEBUG= False and
set SOCIAL_AUTH_LOGIN_ERROR_URL = '/' that's how if any error comes social _authentication module redirect us to our SOCIAL_AUTH_LOGIN_ERROR_URL equal to url
hi i bypass internal server error for error:- AuthStateMissing at /en/complete/facebook/
Session value state missing.
by in settings.py set DEBUG= False and
set SOCIAL_AUTH_LOGIN_ERROR_URL = '/' that's how if any error comes social _authentication module redirect us to our SOCIAL_AUTH_LOGIN_ERROR_URL equal to url
this will only works for localhost for production it was not working.
M Abdullah Abid
@wulaaf
Nov 22 2018 16:42
Can one product have multiple categories?
NyanKiyoshi
@NyanKiyoshi
Nov 22 2018 16:43
Only multiple collections.
Which you can assign on the menu, links, etc. But there is a code change required if you want the breadcrumbs to take into account the menu and collection. (which is a code I can send you)
mvondo
@mvondo
Nov 22 2018 19:28
how to display the list of articles on home pages?
NyanKiyoshi
@NyanKiyoshi
Nov 22 2018 20:12
What do you mean? I'm not sure of what you are speaking, it could mean a lot of different things