parse.com - sign_cloudinary_upload_request method not found in parse cloud -


i using cloudinary parse. when try upload video getting below error parse cloud. error seems saying method cloudinary.sign_cloudinary_upload_request(…) not exist. ideas how might fix this?

here error:

com.parse.parserequest$parserequestexception: typeerror: object #<object> has no method 'sign_cloudinary_upload_request' @ main.js:64:33 @ com.parse.parserequest.newpermanentexception(parserequest.java:348) @ com.parse.parserestcommand.onresponseasync(parserestcommand.java:271) @ com.parse.parserequest$3.then(parserequest.java:196) @ com.parse.parserequest$3.then(parserequest.java:192) @ bolts.task$14.run(task.java:796) @ bolts.boltsexecutors$immediateexecutor.execute(boltsexecutors.java:105) @ bolts.task.completeaftertask(task.java:787) @ bolts.task.continuewithtask(task.java:599) @ bolts.task.continuewithtask(task.java:610) @ bolts.task$12.then(task.java:702) @ bolts.task$12.then(task.java:690) @ bolts.task$14.run(task.java:796) @ java.util.concurrent.threadpoolexecutor.runworker(threadpoolexecutor.java:1112) @ java.util.concurrent.threadpoolexecutor$worker.run(threadpoolexecutor.java:587) @ java.lang.thread.run(thread.java:818) 

here main.js portion in question, line 64 cloudinary.sign_cloudinary_upload_request(…)

parse.cloud.define("sign_cloudinary_upload_request",function(request,response){     if(!request.user || !request.user.authenticated()){         response.error("needs authenticated user");         return;     }     response.success(                      cloudinary.sign_cloudinary_upload_request({tags:request.user.getusername(),eager:{crop:"fill",width:thumbnail_width,height:thumbnail_height,gravity:"face"}})     ); }); 

if had copied , pasted code work. "problem" seem typing in yourself. no, there indeed no such method cloudinary.sign_cloudinary_upload_request method cloudinary.sign_upload_request refer sample: https://github.com/cloudinary/cloudinary_parse/blob/master/sample/cloud/main.js

parse.cloud.define("sign_cloudinary_upload_request", function(request, response) {     if (!request.user || !request.user.authenticated()) {         response.error("needs authenticated user");         return;     }     response.success(         cloudinary.sign_upload_request({tags: request.user.getusername(), eager: {crop: "fill", width: 150, height: 100, gravity: "face"}})     ); }); 

just copy , paste: keep simple.


Comments

Popular posts from this blog

html - Outlook 2010 Anchor (url/address/link) -

javascript - Why does running this loop 9 times take 100x longer than running it 8 times? -

Getting gateway time-out Rails app with Nginx + Puma running on Digital Ocean -