-
Notifications
You must be signed in to change notification settings - Fork 227
I keep getting a request error: 'Request' object has no attribute 'get' #130
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
What did you try to do that produced this error? |
I simply use the generated gui and any graphql query i try to do produces
this error. The autocomplete works tho
Em 5 de mai de 2018 21:42, "Marvin Kome" <[email protected]>
escreveu:
What did you try to do that produced this error?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#130 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AA9PD20w17EhLFwECpQ-OlatyEiL0YBlks5tvkbcgaJpZM4Tuo5x>
.
|
This is an issue with db session, I also had the same issue. I wish you had posted your models here also so that see how you've set up your Base object.
The key to solving your issue is this.. |
Interesting |
@kigen that was indeed the problem. however i had to set that on a non ortodox way cause i was using flask-sqlalchemy connection |
set |
Seems to be a duplicate of #30 |
it seems get_context also works for flask-graphql
the Session() func retrives SqlalchemySession from |
Hi @jhonatanTeixeira , I know this is an old thread, but would you mind sharing the solution you had to implement ? By advance, thank you |
I am having this issue, not with classical mapping. I adapted this example, resulting in this repo.
Stacktrace:
|
Is your Base.query = db_session.query_property() in the same module as your mapping? |
Thanks for getting back... I will check |
I tried the usual way by setting it at the model like this, which by the way doesnot work for me.
However, I think, @aliwo your idea was way cleaner to set the context at the root, and worked for me. thanks man.! |
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related topics referencing this issue. |
python 3.6
pipenv
ubuntu 16.04
mysql 5.7
my packages:
my code:
my error:
Am i doing something wrong?
The text was updated successfully, but these errors were encountered: