Giter VIP home page Giter VIP logo

Comments (3)

mnida avatar mnida commented on June 2, 2024

Hey @Udayraj123 . First can you make sure you are on 1.2.7 for this SDK and on the most recent main branch for Lotus.

Can you send the code you used for your lotus.trackEvent() call?

You need to do something like this, which should be specified in the docs.

const { Lotus } = require("lotus-typescript");

const lotus = new Lotus(API_KEY, {
  host: "http://localhost",
});

function trackMessage() {
  lotus.trackEvent({
    event_name: "message",
    properties: {
      messageCount: 231,
    },
    customer_id: "customer123",
  });

}

from lotus-typescript.

mnida avatar mnida commented on June 2, 2024

Please double check that you pulled 0.10.2 from lotus as well

from lotus-typescript.

Udayraj123 avatar Udayraj123 commented on June 2, 2024

Hi @mnida,
If I recall correctly I had pasted this code from the docs -

lotus.trackEvent({
  event_name: "test", // required
  time_created: new Date(), // optional, if not provided current time will be taken
  customer_id: "cust_5894767364aa4e64", // required
  properties: { test: "test", numericQuantity: 3.1415 }, //optional, pass in any additional properties you want to aggregate or measure
  idempotency_id: "c2c5eb5d-de4b-44e0", //optional if not provided Randomly generated ID will be taken
});

I see I might have used the current released version on github i.e. 1.0.29 thus causing above problem.

Yet, I may not find the time to test this again soon (code changed to try another tool). Please feel free to close the issue if it'd get stale.

from lotus-typescript.

Related Issues (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.