-
-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
Parse Server Unauthorized Error #127
Comments
Hi, The message you have In my opinion, your configuration is good. |
If you've set a username and password for a separate parse user for the parse database you'll also need to set that in the databaseURI
|
Thanks guys..really really appreciate it! More questions here.
|
Hi, Have you run the migration tool already? Maybe try doing a few cURL requests to localhost
|
Yes you should see that the server is running, when you run it... If you have NO database, it will create one... but no, it will not automatically migrate from Parse, you have to do that through the UI on Parse.com, and you should not migrate to your localhost machine. You're getting the 'falling back to localhost' message because you didn't set the |
After a few rounds of trials and failures, I finally got it working. Your answer did really help a lot to solve my curiosities. Due to my entry level knowledge to Nods.js & MongoDB, I had a few misunderstanding in how it works: (I know they sound dumb but just posting it to help any other newbies who would make similar mistakes in future)
Everything is crystal clear now. Thanks heaps lads!! |
Add anonymous user login and fix some bugs.
@ALL, I am getting response as "false" in _request(...) method of parseClient class. But when i send a hardcoded url as: thanks |
I am having the same problem as @narendraojha. How do we configure the parse url helper to omit the '/1/' Any help is greatly appreciated. |
@jspenc72, the url issue has already been fixed in New Parse PHP SDK. I was using old version of sdk and after update issue is fixed. |
I'm using the Java script sdk in nodejs. Do you know if it's fixed there?
|
No, I don't have any idea about java script sdk. |
Ok thank you
|
Same issue. Any resolution? |
this issue has been closed for a while. Please reopen an issue filling the issue template |
No, the project ended up getting cancelled so I never found a solution.
|
@ALL I managed to get thorough the unauthorized issue, but now if I try to get back results from any of my collections using curl, I get an empty response. Any ideas? Thanks!
|
If you have this error , it about this url "http://localhost:1337/parse" it use for api call with some params. So if you use your browser to seed the request, params are missing. If you want to see the result go this. Thanks |
Hi Guys,
I know we are all on the same boat as Parse lovers but especially I am now very devastated since I had zero knowledge about Node.js and MongoDB. I spent a couple of days studying a bit about them and now got some basic concepts. I have been trying to set up a Parse server and MongoDB locally first. I have installed them correctly (I believe) but when I run "npm start" to start Parse Server, I got the following messages. FYI I see mongod and mongo running without an issue.
DATABASE_URI not specified, falling back to localhost.
parse-server-example running on port 1337.
In browser, if I go to "localhost:1337/parse", it gives me the following error. (localhost:1337 is fine)
{"error":"unauthorized"}
And this is my API setup. I did provide databaseURI but don't know why it is complaining that it is not specified.
var api = new ParseServer({
databaseURI: 'mongodb://localhost:27017/dev',
appId: 'xxx',
masterKey: 'yyy'
});
Not sure what I am missing or set up incorrectly. Please advice me.
The text was updated successfully, but these errors were encountered: