Closed ynad closed 8 months ago
Thanks for the information. Are you able to open the MTConnect data in a web browser without the error?
ex. http://[Agent_Address]:5000/probe or http://[Agent_Address]:5000/current
Based on the error, I would think the issue should be on the Agent side as the client should only be sending the URL with no HTTP request body for both a probe and current request.
Thanks for the information. Are you able to open the MTConnect data in a web browser without the error?
ex. http://[Agent_Address]:5000/probe or http://[Agent_Address]:5000/current
Based on the error, I would think the issue should be on the Agent side as the client should only be sending the URL with no HTTP request body for both a probe and current request.
Hello, thanks for your reply.
Yes, I'm able to read MTConnect data via web browser, on both agents for current and probe requests. Below a couple of example output.
First agent, locally installed (atm running version 1.8, but can upgrade to 2.0), configured to connect to 2 machines of the same manufacturer:
Second agent built-in on the machine, different manufacturer:
Thanks for the information. The first thing that I can think of would be that the ContentEncodings header is being sent and not expected by the Agent.
You should be able to disable sending that header by setting the ContentEncodings property on the MTConnectHttpClient to null.
var client = new MTConnectHttpClient("localhost", 5000);
client.ContentEncodings = null;
Let me know if that fixes the issue.
Thanks for the information. The first thing that I can think of would be that the ContentEncodings header is being sent and not expected by the Agent.
You should be able to disable sending that header by setting the ContentEncodings property on the MTConnectHttpClient to null.
var client = new MTConnectHttpClient("localhost", 5000); client.ContentEncodings = null;
Let me know if that fixes the issue.
Hello, thanks for the quick suggested solution! It was applied by my client's developers and as per the moment the issue seems solved. I'm not getting any more HTTP 414 errors nor others.
I'm now taking some time to test stability upon continuous days of data monitoring and after offline periods too.
I'll let you know if the problem persists.
Glad to hear it is working and please let me know if you run into any other issues.
Hello,
I'm experiencing issues on a client which is using your assemblies to read from MTConnect sources. I'm not 100% sure this will be the right place to ask this, but after 1 month of troubleshooting I'm almost out of options.
The requests seem to fail because the client is sending HTTP headers too long.
This is the error on the client, which is using MTConnect 2.0:
This is on one of the involved MTConnect agents, configured for 2 machines. The agent used is: https://github.com/mtconnect/cppagent. Tried different versions, 1.4, 1.8, 2.1, but XML schemas are still 1.3 because provided by machine manufacturer (and has not released any new one yet...). If necessary I can post XML schemas involved. Version 1.4/1.8 logs:
Version 2.1 logs:
Following is a longer extract of client logs. At first values are read, then a connection exception is thrown. This happens at every data polling from MTConnect source, be it every 1 second or every 30s.
Is there any reason I didn't find which may cause these connection errors? Is it because of the older version of MTConnect schema (1.3), and some incompatibilities? Which I could perfectly understand, but sadly I cannot change some agent and schema versions, they are either built-in in the machines or not customizable/upgradable by me, end customer.
Any help will be very appreciated. If I missed some details or more info is needed please let me know.
Thank!