Giter VIP home page Giter VIP logo

Comments (3)

TalLevAmi avatar TalLevAmi commented on May 21, 2024

Please try again against master. We will release a new version in the next few days.

from cloudinary_npm.

pulkitsinghal avatar pulkitsinghal commented on May 21, 2024

@TalLevAmi I tried with the changes and now for the same strings like Århus it fails with:

{"error":{"message":"Invalid Signature 7a98f15624148c361b4cc068d3bd38dc4cdfd2fb. String to sign - 'eager=t_default_listing|t_grid_listing&eager_async=true&public_id=59fe26c5-1e98-11e3-a415-bc764e10976c_513068bc-8b31-11e3-a0f5-b8ca3a64f8f4&tags=Århus&timestamp=1405353462'.","http_code":401}}

from cloudinary_npm.

pulkitsinghal avatar pulkitsinghal commented on May 21, 2024

I would guess that either signature generation or verification is getting messed up by the utf8 encoding. I would prefer to get a robust fix in the new version too. So for now I will be using the following workaround with the non-master code: encode_utf8('Århus')

// WHY? http://monsur.hossa.in/2012/07/20/utf-8-in-javascript.html
// Drawbacks? http://ecmanaut.blogspot.com/2006/07/encoding-decoding-utf8-in-javascript.html#comment-934199479
//            this approach doesn’t work for unmatched surrogate halves
var encode_utf8 = function ( s ) {
  return unescape( encodeURIComponent( s ) );
}
// =====

from cloudinary_npm.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.