Quantcast
Channel: OSIsoft Users Community
Viewing all articles
Browse latest Browse all 1120

PI WEB API 401 error

$
0
0

Hi,

 

I'm trying to display PI data in an ASP.NET (C#) site on a flot (3rd Party) chart.

 

I have IIS installed on a virtual server, with PIWEBAPI installed also. I can browse the PI Web API through the server and I have access so no trouble with permissions. 

 

I'm connecting through a download string of: "https://ochil.pulse.local/piwebapi/streams/P0kbw8-mOkqEm5YsuTg5RZ7gAi0AAAQlJBRVJJQUNIXFNJTlVTT0lE/recorded"

 

(Ochil being the server, pulse the network)

 

This is just to bring sinosoid data into a flot chart and establish a connection and verify that it can be done.

 

my simple code is here:

 

http://pastebin.com/z0nVymPf

 

http://pastebin.com/FU5rCpEm

 

http://pastebin.com/kq4Yyt0d

 

all the code should do is take the download string and return the recorded data into the flot chart on the asp.net application.

 

I get a 401 unauthorised error with the download string causing the error

 

Any help would be greatly appreiciated! 

 

Thanks

 

James :)

 

 

 

 

 

 

 


Viewing all articles
Browse latest Browse all 1120

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>