Hey,
Same issue. (maybe others as well)
Login issues: ( i'm using the python requests module btw)
The response I'm getting for an invalid login is as follows: ( I replaced dates and stuff with '...' for brevity)
response code 406 {'content-length': '0', 'errors': 'Invalid login', 'set-cookie': '...;Path=/', 'expires': '...', 'messages': '', 'server': 'Jetty(...)', 'date': '...'}
Here's what I get for an accepted one: (Well, I think its accepted. )
response code 406 {'date': '...', 'set-cookie': '...Path=/', 'content-length': '0', 'expires': '...', 'server': 'Jetty(...)'}
This is what I get when I query a data point when it says 'Invalid login'
response code 401 {'date': '...', 'content-length': '0', 'errors': 'User not logged in', 'messages': '', 'server': 'Jetty(...)'}
And this for what I think is accepted:
response code 406 {'date': '...', 'content-length': '0', 'server': 'Jetty(...)'}
no data and still have the 406 (not acceptable error) code.
The kicker is, if i login to my mango through the browser, then open up a new tab and paste the url my request library generates, the data pops up on the screen just fine.
here's the link i used
http://.../rest/v1/point-values/DP_363530?from=2015-10-29T00%3A00%3A00.000-10%3A00&timePeriodType=MINUTES&timePeriods=0&useRendered=False&rollup=&to=2015-10-29T23%3A59%3A59.999-10%3A00&unitConversion=False
I'm not even sure if this is a login, configuration, or auth type problem. ( ive tried both basic auth and digest the results here are from basic)
What makes it harder to diagnose is that I get the same errors with the swagger docs page. Even when logged in. But if i paste the url the docs page generates and paste it into the browser , the data pops right up.
Any ideas?