parse-server

Require modul not working when I migrate from parse to heroku

孤街醉人 提交于 2019-12-12 03:49:56
问题 I migrated from parse to heroku and I am trying to get cloud code to work. Everything works fine when the cloud code file is blank, but when I add the require Stripe or Twilio lines in the main.js file, nothing in my app loads. What am I doing wrong? package.json "dependencies": { "express": "~4.11.x", "kerberos": "~0.0.x", "parse": "~1.8.0", "parse-server": "~2.2.12", "stripe": "~4.9.0", "twilio": "~2.9.2" } main.js var Stripe = require('stripe'); Stripe.initialize('sk_test_xxxxxxx'); 回答1: i

Access denied to files after migration from parse.com to heroku

扶醉桌前 提交于 2019-12-12 03:43:31
问题 After migrating an app from Parse.com to Heroku everything seems to work fine except for getting files. When i try to access a file from my app and from the dashboard/browser, i get an access denied message. I did add a parameter "FILE_KEY", with value copied from parse.com, to the config variables of my app but it did not help. I read about parsing the fileKey into the constructor of ParseServer, but do not know how. Do i have to add this to the index.js file or is there another way? Thanks

Parse server atomic increment result

随声附和 提交于 2019-12-12 03:36:11
问题 In my Parse backend I have an array that contains unique number codes, so users must not be able to get the same code twice. For that reason somewhere in a column of some table I am keeping an index to this array. Now there is a very simple operation - users ask for a unique code. The cloud function increments the current value of the index and returns the value of the array at the new index. The problem is that at first glance the Parse JS API has only increment operation performed

How to access to a Parse Server running on AWS EC2 Ubuntu's localhost?

十年热恋 提交于 2019-12-12 03:34:42
问题 I have an AWS EC2 Instance running Ubuntu. I have a Parse server on it, running on localhost, port 1337. I've enabled that port in the instance's security group. I've tried to check if and how can I access to the instance's localhost using the wget command and check if there is a connection or the connection has been refused, and these are the results: $ wget http://<Public IP>:1337/parse Connecting to <Public IP>:1337... failed: Connection refused. $ wget http://<Private IP>:1337/parse

Android switch from Parse to Parse Server crashes

狂风中的少年 提交于 2019-12-12 03:29:18
问题 I'm migrating my Android and iOS app from Parse.com to Parse Server. First I'm doing this migration with a test app to be sure everything is ok. With iOS there has been no problem but with Android the updated app crashes each time the user enters in the app. This is the Android code updated: public static void initParse(Application app) { ctxt = app.getApplicationContext(); Parse.enableLocalDatastore(app); // Old version //Parse.initialize(app, "<my app id>", "<my client key>"); // New

Synchronizing local parse server to cloud parse server

亡梦爱人 提交于 2019-12-12 02:36:21
问题 Here is my situation i have a local parse server to which all my client devices are primarily connected due to the lack of consistent internet resource availability. I intend to have a cloud hosted parse server to which the local parse can data sync with (pull and push) whenever there is availability of internet resources which may be periodic . How can that be achieved ? The idea is to sync data between both parse servrr instances 回答1: You know that parse-server by itself does not save your

Parse server - File not found

前提是你 提交于 2019-12-11 15:45:57
问题 Parse server version: 2.8.4 Parse dashboard version: 1.2.0 MongoDB version: 4.0.2 Hosting service: DigitalOcean ================================= I'm transferring my app to a new Parse server and a new MongoDB server. Everything works fine except the fact that I can't load any images! The content is being fetched properly, but the images don't load. Neither from the app, nor from the dashboard. (I get the File not found. there) Here's how I transferred my db: mongodump --host sourceIP -d

SetACLs on Parse Server

我的未来我决定 提交于 2019-12-11 14:03:33
问题 I'm using Parse Server on AWS and its been going well. However I am unable to assign ACL as I did in the parse.com cloud code. I have read The Compatibility Notes, Docs and Git Read me however there is very little mention of ACL. The following answer has been tried, however it is not working for me. My old code was like this : Parse.Cloud.afterSave("Favourites", function(request) { var user = request.user; var newACL = new Parse.ACL(Parse.User.current()) newACL.setReadAccess(user, true);

Parse-Server Cloud-Code and Stripe

旧巷老猫 提交于 2019-12-11 13:47:22
问题 I'm running a Parse-Server instance for a mobile web-app on Heroku. My problem is Stripe checkout plugin is working fine in my html page, but when the token is created and I call my Cloud Code it seems as if creating the variable initializing stripe does nothing. This is my cloud code. var stripe = require('stripe')('sk_test_******'); Parse.Cloud.define("pay", function(req, res){ Parse.Cloud.useMasterKey(); var token = req.params.token; var amount = req.params.amount; var email = req.params

sign_cloudinary_upload_request method not found in parse cloud

早过忘川 提交于 2019-12-11 11:47:53
问题 I am using cloudinary with Parse. When I try to upload a video I am getting the below error from my Parse cloud. The error seems to be saying that the method cloudinary.sign_cloudinary_upload_request(…) does not exist. Any ideas how I might fix this? Here is the error: com.parse.ParseRequest$ParseRequestException: TypeError: Object #<Object> has no method 'sign_cloudinary_upload_request' at main.js:64:33 at com.parse.ParseRequest.newPermanentException(ParseRequest.java:348) at com.parse