BeckhoffHttpClient icon indicating copy to clipboard operation
BeckhoffHttpClient copied to clipboard

Cannot run: ErrorId 1799

Open dotKokott opened this issue 5 years ago • 5 comments

Hello!

First of all thank you for writing an open source alternative HttpClient.

I have a problem running it. When I try to do a GET to a local server I get a: 1799 -> DeviceNotReady error id.

image

Any idea what I am doing wrong?

dotKokott avatar Sep 23 '20 14:09 dotKokott

Hi!

You error Id isn't an ADS error code, but a Win32 Code and means: ERROR_INVALID_SEPARATOR_FILE - "The specified separator file is invalid"

Did you already installed the Twincat (unofficial) function on your target system? You can check it under the path C:\TwinCAT\Functions\Unofficial\BeckhoffHttpClient\.

I'm wondering what can cause this error in your setup... 🤨 Are you able get the example on the README (https://dog.ceo/api/breeds/image/random) up and running?

Best regards,

FB

fbarresi avatar Sep 23 '20 17:09 fbarresi

Yes the function is installed & I can see it under this path. I do have the rest of TwinCAT installed under E:\TwinCAT (not sure if that would make a difference)

The example from the README shows the same error.

dotKokott avatar Sep 24 '20 08:09 dotKokott

🤔 I suppose it could be the problem, but I cannot reproduce it... I would advise you to try a couple things:

  • Debug the httpClient FB ( in particular its private fields: startProcess, getLocalAmsNetId, initialized and startProcess.COMNDLINE)
  • import the source code fot HttpClient in your project (in this case you may also move the twincat function folder to E: and change the hardcoded paths startProcess.PATHSTR and startProcess.DIRNAME)

fbarresi avatar Sep 24 '20 13:09 fbarresi

Hi! Did you get all up and running? If yes, would your share your solution in this issue?

fbarresi avatar Oct 16 '20 10:10 fbarresi

Hey! I had to move on for now and use the original Beckhoff httpClient. I hope I'll get around to it towards the end of this project. Should I get this running I will share my solution!

dotKokott avatar Oct 16 '20 11:10 dotKokott