Code Monkey home page Code Monkey logo

ff-javascript-client-sdk's People

Contributors

andybharness avatar conormurray95 avatar davejohnston avatar dependabot[bot] avatar enver-bisevac avatar erdirowlands avatar knagurski avatar konrness avatar meghamathur03 avatar milos85vasic avatar nheaney18 avatar puneetsar avatar rushabh-harness avatar tan-nhu avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

ff-javascript-client-sdk's Issues

SDK Doesn't work for Japan characters/letters in Target

Whilst using the following for the target identifer:

  "target": {
    "identifier": "d5358360-87c5-4526-bc43-b0321107e494",
    "attributes": {
      "lastUpdated": "Tue Mar 26 2024 19:23:57 GMT+0900 (\u65e5\u672c\u6a19\u6e96\u6642)",
      "Version": "1225918127"
    }
 

We are getting the following error from the SDK

29.d9686e77.chunk.js:2 [FF-SDK] Authentication error:  DOMException: Failed to execute 'btoa' on 'Window': The string to be encoded contains characters outside of the Latin1 range.
    at /static/js/29.d9686e77.chunk.js:2:845943
    at Generator.next (<anonymous>)
    at /static/js/29.d9686e77.chunk.js:2:836966
    at new Promise (<anonymous>)
    at h (/static/js/29.d9686e77.chunk.js:2:836785)
    at static/js/29.d9686e77.chunk.js:2:845734

We are using the following suggested way from the lastUpdated step: Date()
https://github.com/harness/ff-javascript-client-sdk/blob/b4fea2301f7d03eb8ae438471470c8f892b04f86/README.md#no-streaming-or-polling

It seems this returns a non Latin and the UTF-8 characters rendered properly, it reads as "日本標準時" which translates to "Japan Standard Time".

true is not iterable while installing sdk

Hello harness people,
when installing ff sdk to my project (latest version 1.4.9), yarn install fails with

Yarn version: 
  1.22.17

Node version: 
  14.18.1

Platform: 
  darwin x64

Trace: 
  TypeError: true is not iterable!
      at module.exports.module.exports.__webpack_require__.getIterator (/usr/local/Cellar/yarn/1.22.17_2/libexec/lib/cli.js:105587:42)
      at PackageLinker.<anonymous> (/usr/local/Cellar/yarn/1.22.17_2/libexec/lib/cli.js:48787:192)
      at Generator.next (<anonymous>)
      at step (/usr/local/Cellar/yarn/1.22.17_2/libexec/lib/cli.js:310:30)
      at /usr/local/Cellar/yarn/1.22.17_2/libexec/lib/cli.js:328:14
      at new Promise (<anonymous>)
      at new F (/usr/local/Cellar/yarn/1.22.17_2/libexec/lib/cli.js:5301:28)
      at PackageLinker.<anonymous> (/usr/local/Cellar/yarn/1.22.17_2/libexec/lib/cli.js:307:12)
      at PackageLinker.linkBinDependencies (/usr/local/Cellar/yarn/1.22.17_2/libexec/lib/cli.js:48834:20)
      at /usr/local/Cellar/yarn/1.22.17_2/libexec/lib/cli.js:49400:28

when tryin 1.4.7, all looks fine.

Wrong jwt-decode version

This is probably a typo in your package.json.

The current version of jwt-decode is 3.1.2 but in your package.json is 3.2.1.

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.