AnsweredAssumed Answered

Error when creating web socket

Question asked by dsug on Mar 2, 2018
Latest reply on Mar 2, 2018 by ray

I'm trying to use the 'Channel' feature to setup a websocket.  I have PI Web API 2017 R2 SP1 installed. I'm only getting the following error reported:

 

"The protocol of the request is not supported." no matter what I try. 

 

I'm using the following URL to try to create the channel:

https://<myIPAddr>/piwebapi/streams/{webId}/channel?heartbeatRate=10

 

I'm seeing the following message in the Event Viewer 'debug' log for the PI Web Server:

[Controllers] {490fb31c-67ac-4bf2-996c-a7cb53e44047}: OSIsoft.REST.PIWebException: The protocol of the request is not supported.

   at OSIsoft.REST.Core.Controllers.ChannelController.ValidateChannelRequest()

   at OSIsoft.REST.Core.Controllers.ChannelController.StreamGetChannel(String webId, Boolean includeInitialValues, Int32 heartbeatRate, String webIdType)

   at lambda_method(Closure , Object , Object[] )

   at System.Web.Http.Controllers.ReflectedHttpActionDescriptor.ActionExecutor.<>c__DisplayClassc.<GetExecutor>b__6(Object instance, Object[] methodParameters)

   at System.Web.Http.Controllers.ReflectedHttpActionDescriptor.ExecuteAsync(HttpControllerContext controllerContext, IDictionary`2 arguments, CancellationToken cancellationToken)

--- End of stack trace from previous location where exception was thrown ---

   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()

   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)

   at System.Web.Http.Controllers.ApiControlle

 

Am I missing something silly?  Some configuration option?

 

Thanks

Outcomes