Code Monkey home page Code Monkey logo

Comments (5)

stpe avatar stpe commented on June 13, 2024

The expire parameter is used to authenticate your request and is set here to UTC time in seconds plus 60 seconds:
https://github.com/stpe/mixpanel-engage-query/blob/master/engage.js#L123

As documented here in the Mixpanel API:
https://mixpanel.com/docs/api-documentation/data-export-api#auth-implementation

Your request shouldn't expire if your internal clock is in sync, but try changing the 60 seconds to something more to give more margin for error.

Let me know if you get it to work. Thanks.

from mixpanel-engage-query.

durch avatar durch commented on June 13, 2024

Weird, seem to be resolved, I am running it from a virtual machine, and I was not on my network, maybe something funky occurred, anyway seems to be working fine ATM.

Thanks!

from mixpanel-engage-query.

godspeedelbow avatar godspeedelbow commented on June 13, 2024

I had this issue just now as well on Mac OS X: my clock seems to be slower than real time.
Click on Clock on menu bar "Open Date & Time Preferences..." and then your clock gets synced to Internet Time (it should do that the whole time, but for some reason, it doesn't).

After that, no error.

from mixpanel-engage-query.

stpe avatar stpe commented on June 13, 2024

Thanks for the tip @godspeedelbow!

Maybe worth to add the expire variable as a parameter in case of situations like this (and if there is a need to construct URLs with another expire period using the --url parameter), hmm...

from mixpanel-engage-query.

stpe avatar stpe commented on June 13, 2024

For anyone finding this issue. Another quick way to update the internal clock is, using Terminal:

ntpdate -s pool.ntp.org

from mixpanel-engage-query.

Related Issues (8)

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.