parse-server

Parse server migration to IBM bluemix

巧了我就是萌 提交于 2020-01-04 07:33:05
问题 I am trying to run parse server with nodejs in ibm bluemix but it is throwing an error in parse server PromiseRouter file. PromiseRouter.js:48 throw _iteratorError; ^ ReferenceError: Symbol is not defined How can i get this resolved My App .js var express = require('express'); var ParseServer = require('parse-server').ParseServer; var app = express(); var port = process.env.PORT || 1337; // Specify the connection string for your mongodb database // and the location to your Parse cloud code

How to retrieve a image from Parse?

▼魔方 西西 提交于 2020-01-03 05:29:12
问题 I'm trying to get an image from a parse server that is hosted on Heroku. So far I have gotten the Text values but the images are the only problem. Here is my code so far: // Getting Info from servers let dataQ = PFQuery(className: "message") dataQ.findObjectsInBackground { (objects: [PFObject]?, error: Error?) -> Void in if error == nil { for object in objects! { self.sentFromLabel.text = object["sender"] as? String // Get Image from server object["Picture"].getDataInBackgroundWithBlock } }

PFObject values may not have class: _SwiftValue

吃可爱长大的小学妹 提交于 2020-01-02 15:05:59
问题 We are trying out Parse server , and we have never used Parse SDK before. As part of learning we tried Facebook login with Parse , that worked good. Next we wanted to save the retrieved user information and we are stuck at saving the Profile picture . The Code let pictureURL = "https://graph.facebook.com/\(facebookID)/picture?type=large&return_ssl_resources=1" let imageData = NSData.init(contentsOf: NSURL(string: pictureURL) as! URL) let picture = PFFile(data: imageData! as Data) PFUser

Parse Cloud with Swift PFIdResultBlock Error

一世执手 提交于 2019-12-31 07:15:11
问题 PFCloud.callFunctionInBackground("hello", withParameters: ["test":"tester"]) { (response: AnyObject?, error: NSError?) -> Void in if error == nil { let responseString = response as? String print(responseString) } else { print(error!.description) } } I am getting the error: Cannot convert value of type '(AnyObject?, NSError?) -> Void' to expected argument type 'PFIdResultBlock?' (aka 'Optional<(Optional, Optional) -> ()>') Even if I add as! PFIdResultBlock , the error will not go away. How can

Parse open source server reset password error

ⅰ亾dé卋堺 提交于 2019-12-30 05:34:04
问题 I updated the parse server to run on AWS and I get this error when I hit the reset password but the login works. I am not sure why this part of the code is having a error and not the other login and sign up. Error Domain=Parse Code=1 "{"code":1,"message":"Internal server error."}" UserInfo={error={"code":1,"message":"Internal server error."}, NSLocalizedDescription={"code":1,"message":"Internal server error."}, code=1} This is the code I have to reset it. - (void)alertView:(UIAlertView *

How can i save a ParseGeoPoint Object in mongodb (using mLab)

谁都会走 提交于 2019-12-25 08:49:52
问题 I want to save address ( a relational object ) with geopoints, so as to later retrieve all Events which have address near to provided location, it will be all based on coordinates. Using following piece of code - $address = new ParseObject("Address"); $point = new ParseGeoPoint(23.80, -120.90); $address->set("location", $point); $address->save(); Type of location in my db is geopoint, but it gives me continuous error- Internal Server Error . Error code :exception 'Exception' with message 'Can

Sort does not work on Text query with parse-server

半城伤御伤魂 提交于 2019-12-25 01:44:03
问题 The parse-server documentation is a bit outdated: http://docs.parseplatform.org/rest/guide/ Try this query: curl -X GET \ -H "X-Parse-Application-Id: ${APPLICATION_ID}" \ -H "X-Parse-REST-API-Key: ${REST_API_KEY}" \ -G \ --data-urlencode 'where={"name":{"$text":{"$search":{"$term":"Milk"}}}}' \ --data-urlencode 'order="$score"' \ --data-urlencode 'key="$score"' \ https://localhost:1337/parse/classes/Groceries And it with return this error: { "code": 102, "error": "Invalid parameter for query:

Sort does not work on Text query with parse-server

。_饼干妹妹 提交于 2019-12-25 01:29:16
问题 The parse-server documentation is a bit outdated: http://docs.parseplatform.org/rest/guide/ Try this query: curl -X GET \ -H "X-Parse-Application-Id: ${APPLICATION_ID}" \ -H "X-Parse-REST-API-Key: ${REST_API_KEY}" \ -G \ --data-urlencode 'where={"name":{"$text":{"$search":{"$term":"Milk"}}}}' \ --data-urlencode 'order="$score"' \ --data-urlencode 'key="$score"' \ https://localhost:1337/parse/classes/Groceries And it with return this error: { "code": 102, "error": "Invalid parameter for query:

— git push heroku master — not working

半腔热情 提交于 2019-12-24 19:25:30
问题 I am having trouble running the " git push heroku master " command, after cloning https://github.com/parse-community/parse-server-example.git locally and making some customization. Here is part of the trace: $ git push heroku master Counting objects: 3, done. Delta compression using up to 4 threads. Compressing objects: 100% (3/3), done. Writing objects: 100% (3/3), 302 bytes | 302.00 KiB/s, done. Total 3 (delta 2), reused 0 (delta 0) remote: Compressing source files... done. remote: Building

Setup mailgun with parse-server on Heroku

这一生的挚爱 提交于 2019-12-24 09:15:19
问题 I am trying to set up mailgun for use with parse-server app on Heroku. The recommended API is https://github.com/ParsePlatform/parse-server-simple-mailgun-adapter But instructions on how to actually achieve this are non existent. --------- EDIT ----------- Followed instructions and server pushes to Heroku. Though i am still not receiving emails. Im just using mailgun sandbox and have authorised and activated a recipient. Im not sure about specifying the path to templates or: fromAddress: