Skip to content

Connection to MongoLab #3281

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
ghost opened this issue Dec 24, 2016 · 3 comments
Closed

Connection to MongoLab #3281

ghost opened this issue Dec 24, 2016 · 3 comments

Comments

@ghost
Copy link

ghost commented Dec 24, 2016

i m trying to connect parse server on my local with my db present on mongolab with the specific uri ,parse server runs successfully -

appId: gtgUU5L9gGPiHCAlLf0euOhgjbn8ieWoF0gwgYFr
masterKey: REDACTED
port: 1337
host: 0.0.0.0
databaseURI: mongodb://magadmin-urvashi:[email protected]:21172/magnif
icentmdbdev
mountPath: /parse
maxUploadSize: 20mb
userSensitiveFields: email
serverURL: http://localhost:1337/parse

But still wen i run my php-sdk based app and try to login it says-

exception 'Parse\ParseException' with message 'unauthorized' in C:\xampp\htdocs\Magnificent\vendor\parse\php-sdk\src\Parse\ParseClient.php:375 Stack trace: #0 C:\xampp\htdocs\Magnificent\vendor\parse\php-sdk\src\Parse\ParseUser.php(133): Parse\ParseClient::_request('GET', 'login', '', Array) #1 C:\xampp\htdocs\Magnificent\application\controllers\login.php(31): Parse\ParseUser::logIn('admin', 'admin123') #2 [internal function]: login->login_user() #3 C:\xampp\htdocs\Magnificent\system\core\CodeIgniter.php(359): call_user_func_array(Array, Array) #4 C:\xampp\htdocs\Magnificent\index.php(203): require_once('C:\xampp\htdocs...') #5 {main}

Can anybody help/suggest the correct way?

@natanrolnik
Copy link
Contributor

@soniurvashi11 do you have any updates since you opened this issue? How do you initialize your php SDK?

@natanrolnik
Copy link
Contributor

Closing due to inactivity.

@ghost
Copy link
Author

ghost commented Jan 9, 2017

@natanrolnik ya .. I had to update my php sdk..and it worked for me :)

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

1 participant