Comments (3)
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.
Please double check that you pulled 0.10.2 from lotus as well
from lotus-typescript.
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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from lotus-typescript.