Skip to content

request.user always undefined in cloud functions #429

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

Closed
na2axl opened this issue Aug 29, 2020 · 4 comments
Closed

request.user always undefined in cloud functions #429

na2axl opened this issue Aug 29, 2020 · 4 comments

Comments

@na2axl
Copy link

na2axl commented Aug 29, 2020

Hi all,

I'm experiencing an issue when calling cloud functions. request.user is always undefined, even if the user is logged in. I've seen that there was a similar issue (#266) but the solution was to use autoSendSessionId: true and define the client ID, things that I'have done before to know that it's a possible solution.

If it can help, there is how I'm initializing Parse:

await Parse().initialize(
  APPLICATION_ID,
  SERVER_URL,
  clientKey: CLIENT_KEY,
  autoSendSessionId: true,
  appName: APP_NAME,
  debug: true,
  coreStore: await CoreStoreSembastImp.getInstance(
    password: PARSE_LOCAL_STORE_PASSWORD,
  ),
);

Can someone help please ?


EDIT

I'm using:

  • Parse SDK Flutter: 1.0.27
  • Flutter: 1.20 (beta channel)
@phillwiggins
Copy link
Member

phillwiggins commented Aug 29, 2020 via email

@na2axl
Copy link
Author

na2axl commented Aug 30, 2020

Hi @phillwiggins, sorry for the delay. After some in depth debugging it's seems that the problem is an async/await misuse from my side 😅. Everything works as expected now. Sorry for the disturbing and thanks for the support 🙂

@na2axl na2axl closed this as completed Aug 30, 2020
@sautible
Copy link

@na2axl Am facing the same problem, can you shed some light as to how you were able to solve this. Thanks

@negiot
Copy link

negiot commented Mar 18, 2021

Hi guys i have the same problem on back4app. I set both the autoSendSessionId and the clientkey .... any ideas? Thanks for your help

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants