#697 haystack-csharp - error (501) Not Implemented

Jan Široký Thu 2 May 2019

We are facing 501 error when using the latest version of haystack-csharp library (version from 2019-03-11). We use it for data import to Skyspark (ver. 3.0.19).

Sometimes we get this error

ProjectHaystack.Client.CallNetworkException
  HResult=0x80131500
  Message=System.Net.WebException: The remote server returned an error: (501) Not Implemented.
   at System.Net.HttpWebRequest.GetResponse()
   at ProjectHaystack.Client.HClient.postString(String uriStr, String req, String mimeType) in d:\MA dot net\MervisAnalyticsExpressionTrees\ProjectHaystack\HClient.cs:line 702
  Source=ProjectHaystack.Client
  StackTrace:
   at ProjectHaystack.Client.HClient.postString(String uriStr, String req, String mimeType) in d:\MA dot net\MervisAnalyticsExpressionTrees\ProjectHaystack\HClient.cs:line 714
   at ProjectHaystack.Client.HClient.postGrid(String op, HGrid req) in d:\MA dot net\MervisAnalyticsExpressionTrees\ProjectHaystack\HClient.cs:line 668
   at ProjectHaystack.Client.HClient.call(String op, HGrid req) in d:\MA dot net\MervisAnalyticsExpressionTrees\ProjectHaystack\HClient.cs:line 660
   at ProjectHaystack.Client.HClient.onReadAll(String filter, Int32 limit) in d:\MA dot net\MervisAnalyticsExpressionTrees\ProjectHaystack\HClient.cs:line 279
   at ProjectHaystack.HProj.readAll(String filter, Int32 limit) in d:\MA dot net\MervisAnalyticsExpressionTrees\ProjectHaystack\HProj.cs:line 131
   at ProjectHaystack.HProj.readAll(String filter) in d:\MA dot net\MervisAnalyticsExpressionTrees\ProjectHaystack\HProj.cs:line 121
   at ... 

As you can see it is just call of readAll(String filter). What could cause this error?

Chris Breederveld Fri 3 May 2019

Hi Jan, can you provide some more details?

  • Is this reproducible?
  • Does it happen for all your calls or only some?
  • Can you figure out what the exact call is that is done to the SkySpark application (by using a packet sniffer for example)?

I am using the same library myself without any problems. There is a PR pending by the way for a fix in SkySpark 3.0.20, but that should not be related to your problem.

Jan Široký Fri 3 May 2019

Hi Chris,

meanwhile, we had found the problem. We were using wrong url .../ui/project instead of .../api/project - typical copy&paste failure :)

Jan

Login or Signup to reply.