Skip to content

Exception when checking ALPACA protocol #28

@marcocipriani01

Description

@marcocipriani01

I just added support for ASCOM 7 features (Connect, Disconnect, DeviceState) to my custom dome ALPACA driver. They work as expected via curl, and also my driver used to pass conformance and protocol checks successfully before the update. Now, however, ConformU throws the following error when checking the ALPACA protocol for my driver. I suspect it's just a ConformU bug, since it's a stacktrace and not an issue.
I can make the error go away (and protocol checks finish successfully) if I set Dome.InterfaceVersion back to 2 in my driver. If I set it to 3, I always get the stacktrace in ConformU.

ConformU log.txt

19:20:58.438 Error Summary 
19:20:58.440  ==> ASCOM.DriverException: Error calling method: Connecting, HTTP Completion Status: NotFound, Error Message:

   at ASCOM.Alpaca.Clients.DynamicClientDriver.SendToRemoteDevice[T](UInt32 clientNumber, HttpClient client, Int32 timeout, String uriBase, Boolean strictCasing, ILogger logger, String method, Dictionary`2 parameters, HttpMethod httpMethod, ImageArrayTransferType imageArrayTransferType, ImageArrayCompression imageArrayCompression, MemberTypes memberType) in J:\ASCOMLibrary\ASCOM.Alpaca\ASCOM.Alpaca.Clients\DynamicClientDriver.cs:line 1551
   at ASCOM.Alpaca.Clients.DynamicClientDriver.GetValue[T](UInt32 clientNumber, HttpClient client, Int32 timeout, String URIBase, Boolean strictCasing, ILogger logger, String method, ImageArrayTransferType imageArrayTransferType, ImageArrayCompression imageArrayCompression, MemberTypes memberType) in J:\ASCOMLibrary\ASCOM.Alpaca\ASCOM.Alpaca.Clients\DynamicClientDriver.cs:line 488
   at ASCOM.Alpaca.Clients.DynamicClientDriver.GetValue[T](UInt32 clientNumber, HttpClient client, Int32 timeout, String URIBase, Boolean strictCasing, ILogger logger, String method, MemberTypes memberType) in J:\ASCOMLibrary\ASCOM.Alpaca\ASCOM.Alpaca.Clients\DynamicClientDriver.cs:line 467
   at ASCOM.Alpaca.Clients.AlpacaDeviceBaseClass.get_Connecting() in J:\ASCOMLibrary\ASCOM.Alpaca\ASCOM.Alpaca.Clients\AlpacaDevices\BaseClass\AlpacaDeviceBaseClass.cs:line 257
   at ConformU.AlpacaProtocolTestManager.<>c__DisplayClass53_0.<TestConnect>b__0() in J:\ConformU\ConformU\AlpacaProtocolTestManager.cs:line 503
   at ConformU.AlpacaProtocolTestManager.WaitWhile(String actionName, Func`1 waitFunction, Int32 pollInterval, Int32 timeoutSeconds, Func`1 statusString) in J:\ConformU\ConformU\AlpacaProtocolTestManager.cs:line 2952
   at ConformU.AlpacaProtocolTestManager.TestConnect(IAscomDeviceV2 device) in J:\ConformU\ConformU\AlpacaProtocolTestManager.cs:line 503
   at ConformU.AlpacaProtocolTestManager.TestDome() in J:\ConformU\ConformU\AlpacaProtocolTestManager.cs:line 734
   at ConformU.AlpacaProtocolTestManager.TestAlpacaProtocol() in J:\ConformU\ConformU\AlpacaProtocolTestManager.cs:line 293
  Response: 

Using ConformU version 4.1.0 (Build 34702.5571b36) on Windows 11 24H2.
The custom dome driver runs on an STM32 microcontroller connected to the network.

Let me know if you need more information.
Regards,
Marco Cipriani

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions