Question

JQL Authentication Error with cURL

  • 15 October 2020
  • 1 reply
  • 29 views

Hi Everyone, 

I'm following the JQL tutorial here:

https://developer.mixpanel.com/reference/jql#

To test I use the following command:

curl https://data.mixpanel.com/api/2.0/jql/ -u SECRET: --data-urlencode script@jql.js

I get the following Authentication error:

<?xml version='1.0' encoding='UTF-8'?><Error><Code>AuthenticationRequired</Code><Message>Authentication required.</Message></Error>

I'm able to access the API to export raw data and the query API using that authentication method outlined above so I’m puzzled why it’s not working for this.  

Anyone know what I'm doing wrong?

Thanks!

- Jamie


1 reply

I’ve figured it out. In one part of the documentation the URL is listed as ‘data.mixpanel.com’ but it should just be ‘mixpanel.com’

Reply