Lepozepo / cloudinary

MIT License
94 stars 42 forks source link

Exception while invoking method 'c.sign' undefined #97

Open lyquocnam opened 8 years ago

lyquocnam commented 8 years ago

i downgraded to version 4.2.2. and this happen when upload.

katima-g33k commented 8 years ago

@lyquocnam This issue has been fixed in 4.2.4, If it is the same one I had regarding Match.Maybe() (Please add details about the bug). Unfortunately there is another bug in that version. Here is my workaround Match.Maybe = (pattern) => { return this.pattern = pattern; };

lyquocnam commented 8 years ago

@jessylachapelle i don't know, i do like tutorial in readme so it happen. in 4.2.4 with this issue https://github.com/Lepozepo/cloudinary/issues/95 you can more detail about this workaround ? i don't know how to use Math.Maybe, where place for it ?

katima-g33k commented 8 years ago

@lyquocnam Match is part of the Meteor check package. My problem was that the version of check used in 4.2.2 uses the Match.Maybe() method which did not exist in my version of check. If this is the case for you, all you have to do is add the code for the Match.Maybe() method to the lib folder of your project. Although, this may not be your problem, it would help to have the entire console error.

JulianKingman commented 8 years ago

I'm having this problem, but I have the latest version of check, so... other ideas?

JulianKingman commented 8 years ago

The problem is this for some reason: signature = Cloudinary.uploader.direct_upload "",ops Any ideas? I'd be happy to submit a PR, but I have no idea why it's not working.

JulianKingman commented 8 years ago

I tried 4.2.4 and 4.2.2, same problem... I'm on Meteor 1.4.1.1, here's the packages I have installed:

accounts-password                  1.3.0  Password support for accounts
accounts-ui-unstyled               1.1.12  Unstyled version of login widgets
alanning:roles                     1.2.15  Authorization package for Meteor
andruschka:jquery-ui-sortable      1.11.2  Sortable is a jQuery UI behaviour for interactively drag-reordering table rows.
arillo:flow-router-helpers         0.5.2  Template helpers for flow-router
babrahams:editable-text            0.8.24  Editable text drop-in template helper
blaze-html-templates               1.0.5  Compile HTML templates into reactive UI with Meteor Blaze
check                              1.2.3  Check whether a value matches a pattern
chriswessels:hammer                4.0.2  A smart-package for integrating with Hammer.js for multi-touch gesture support in your Templates.
copleykj:jquery-autosize           1.17.8  Automatically adjust textarea height based on user input.
cordova:cordova-plugin-statusbar   2.1.3
crosswalk                          1.6.2  Makes your Cordova application use the Crosswalk WebView instead of the System WebView on Android
differential:event-hooks           1.5.0  Provides hooks for various user-triggered events
ecmascript                         0.5.8  Compiler plugin that supports ES2015+ in all .js files
ejson                              1.0.12  Extended and Extensible JSON library
email                              1.1.17  Send email messages
force-ssl                          1.0.12  Require this application to use HTTPS
fourseven:scss                     3.10.0  Style with attitude. Sass and SCSS support for Meteor.js.
gwendall:ui-hooks                  0.1.7  A simpler API for Blaze _uihooks
jagi:astronomy                     1.2.11* Model layer for Meteor
jagi:astronomy-relations           1.0.0  Relations for Meteor Astronomy
jagi:astronomy-sort-behavior       1.0.0  Sort behavior for Meteor Astronomy
jagi:astronomy-timestamp-behavior  1.1.0* Timestamp behavior for Meteor Astronomy
jquery                             1.11.9  Manipulate the DOM using CSS selectors
kadira:blaze-layout                2.3.0  Layout Manager for Blaze (works well with FlowRouter)
kadira:flow-router                 2.12.1  Carefully Designed Client Side Router for Meteor
lepozepo:cloudinary                4.2.4* Upload files to Cloudinary
less                               2.7.5  Leaner CSS language
logging                            1.1.15  Logging facility.
mdg:camera                         1.4.1  Photos with one function call on desktop and mobile.
meteor-base                        1.0.4  Packages that every Meteor app needs
meteorstuff:materialize-modal      1.0.6  Display a modal via Materialize written in coffeescript
mobile-experience                  1.0.4  Packages for a great mobile user experience
momentjs:moment                    2.15.1  Moment.js (official): parse, validate, manipulate, and display dates - official Meteor packaging
mongo                              1.1.12  Adaptor for using MongoDB and Minimongo over DDP
natestrauser:animate-css           3.5.1  Animate.css packaged for meteor
natestrauser:select2               4.0.3  Select2 is a jQuery based replacement for select boxes.
poetic:materialize-scss            1.97.6_1  Materialize (official): A modern responsive front-end framework based on Material Design
raix:handlebar-helpers             0.2.5  Handlebar helpers
raix:push                          3.0.2  Isomorphic Push notifications for APN and GCM
random                             1.0.10  Random number generator and utilities
reload                             1.1.10  Reload the page while preserving application state.
reywood:publish-composite          1.4.2  Publish a set of related documents from multiple collections with a reactive join
session                            1.1.6  Session variable
shell-server                       0.2.1  Server-side component of the `meteor shell` command.
spacebars                          1.0.13  Handlebars-like template language for Meteor
standard-minifier-css              1.2.0  Standard css minifier used with Meteor apps by default.
standard-minifier-js               1.2.0  Standard javascript minifiers used with Meteor apps by default.
stevezhu:lodash                    3.10.1* A utility library delivering consistency, customization, performance, & extras.
summernote:standalone              0.8.1  summernote standalone (official): WYSIWYG editor with embedded images support, packaged without deps
tracker                            1.1.0  Dependency tracker to allow reactive callbacks
useraccounts:flow-routing          1.14.2  UserAccounts package providing routes configuration capability via kadira:flow-router.
useraccounts:materialize           1.14.2  Accounts Templates styled for Materialize Css.
vsivsi:job-collection              1.4.0  A persistent and reactive job queue for Meteor, supporting distributed workers that can run anywhere
balaianu commented 7 years ago

Same problem, using latest version (4.2.6) and latest Meteor (1.4.1).

Terminal error:

Exception while invoking method 'c.sign' undefined

Browser console error:

Upload Error: Error: Internal server error [500]

Packages:

meteor-base@1.0.4 # Packages every Meteor app needs to have mobile-experience@1.0.4 # Packages for a great mobile UX mongo@1.1.12_1 # The database Meteor supports right now blaze-html-templates@1.0.4 # Compile .html files into Meteor Blaze views reactive-var@1.0.10 # Reactive variable for tracker tracker@1.1.0 # Meteor's client-side reactive programming library

standard-minifier-css@1.2.0_1 # CSS minifier run for production mode standard-minifier-js@1.2.0_1 # JS minifier run for production mode es5-shim@4.6.14_1 # ECMAScript 5 compatibility for older browsers. ecmascript # Enable ECMAScript2015+ syntax in app code

reactive-dict@1.1.8 session@1.1.6 accounts-ui@1.1.9 accounts-password@1.3.0 kadira:flow-router kadira:blaze-layout linto:jquery-ui mrt:jquery-ui-sortable momentjs:moment viacdn:font-awesome liadrian:ionicons-cdn jquery@1.11.9 rajit:bootstrap3-datepicker dangrossman:bootstrap-daterangepicker clubfest:raphael twbs:bootstrap mrt:bootstrap3-wysihtml5 bshamblen:morrisjs benmgreene:jquery-sparklines rochal:slimscroll fastclick@1.0.12 jplack:bootstrap-timepicker bigdsk:inputmask postrednik:meteor-rangeslider cloudspider:icheck flot:flot fullcalendar:fullcalendar j4507:datatables-bootstrap-3 risul:bootstrap-colorpicker fortawesome:fontawesome zimme:select2-bootstrap3-css jss:pace shell-server@0.2.1 check@1.2.3 random@1.0.10 mpowaga:jquery-ui-widget useraccounts:bootstrap u2622:persistent-session 3stack:idle-watcher email@1.1.17_1 aldeed:collection2 aldeed:autoform insecure autopublish lepozepo:cloudinary

JulianKingman commented 7 years ago

So in one of my apps (have to try the original), the problem was this (thanks go to @copleykj):

I tried to port over my code from another project and realized in doing so that the issue came down to Cloudinary.config = { props } as opposed to Cloudinary.config({props})

That solved it for us, and with that I add another vote to #96, because if it wasn't in coffeescript I would have understood it properly. It's my bad, but just sayin'!