You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Parse.com used to have a request.user already setup for every request... On parse-server, it's not there anymore. I found this code snippet sometime ago that just solves the problem ;) I hope it helps you!
I need to add it back but it’s only available when running in CloudCode. Actually, all cloud code methods are missing from the docs now, I need to add them back :)
Does anybody know why I'm getting unauthorised when trying to hit /users/me on my server? I assume I have to have additional headers with the correct keys, but which ones? I can't find any docs on this.
Activity
nuno commentedon Jan 27, 2017
+1
lzaiats commentedon Feb 8, 2017
Parse.com used to have a request.user already setup for every request... On parse-server, it's not there anymore. I found this code snippet sometime ago that just solves the problem ;) I hope it helps you!
akshaychauhan7737 commentedon Nov 28, 2017
it is not working for me error: httpRequest is not a funcion
lzaiats commentedon Nov 28, 2017
I think newer versions of Parse.Cloud class does not have httpRequest anymore... You can use some other http lib to make the same request ;)
akshaychauhan7737 commentedon Nov 28, 2017
Thank You So much it Worked :)
flovilmart commentedon Nov 28, 2017
Parse.Cloud.httpRequest is available in parse-server, where did you read it wasn’t?
lzaiats commentedon Nov 28, 2017
@flovilmart I am very sorry if I spread wrong info, but the new JS API docs does not contains any reference to Parse.Cloud.httpRequest...
The JS SDK API docs used to have this info, and I always used it as my reference.
After doing a more deep search I found that this info (Parse.Cloud.httpRequest) is now on http://docs.parseplatform.org/cloudcode/guide/#networking and I didn't knew that... My fault!
LZ
akshaychauhan7737 commentedon Nov 28, 2017
then why it dosn't worked for me when i tried.... I was using it on nodejs.
flovilmart commentedon Nov 28, 2017
I need to add it back but it’s only available when running in CloudCode. Actually, all cloud code methods are missing from the docs now, I need to add them back :)
Jauny commentedon Oct 16, 2018
Does anybody know why I'm getting unauthorised when trying to hit /users/me on my server? I assume I have to have additional headers with the correct keys, but which ones? I can't find any docs on this.