SmartConnector Forum
Schneider Electric support forum about SmartConnector applications for integration of other building management systems (BMS) into EcoStruxure Building Operation.
Posted: 2018-01-04 07:11 AM
Link copied. Please paste this link to share this article on your social media post.
I have created a test folder with 100 struxureware values, and now I'm getting an error 500 response when I request
response body:
{ "Message": "The maximum message size quota for incoming messages (2000000) has been exceeded. To increase the quota, use the MaxReceivedMessageSize property on the appropriate binding element." }
Is this a setting in SmartConnector, or is it something in the ES?
as a side note, it also seems to take a surprising amount of time to gather just 100 objects, to the point that I had to increase my socket timeout to 30 seconds just to receive the error message.
Link copied. Please paste this link to share this article on your social media post.
Hi Josh,
SmartConnector version 2.3.108 has been released, which includes the fix for this issue. It is now available for download from www.smartconnectorserver.com.
Regards,
-Jeff
Link copied. Please paste this link to share this article on your social media post.
Hi Josh,
I was able to reproduce the ‘slowness’ that you are experiencing, and I am going to look into that. But I end up with a successful response. (this is through the Swagger page)
Can you tell me more about what type of values (or better yet, send us an import of the folder, and your SBO version). But as far as the error message, I have not been able to reproduce that, is there anything else besides the GET /Containers//Children that you sending that causes this?
As far as the error itself, we do have something in our backlog that also came from the community, but it generally has to do with the size of a request, not the response.
Best Regards,
-Jeff
Posted: 2018-01-04 10:31 AM
Link copied. Please paste this link to share this article on your social media post.
I attached an export of my test folder that caused the problem.
It's basically a folder containing 100 folders, each containing 100 values, of the form /zmegatest/Group [1...100]/AV [1...100]
I didn't think a GET /Container/zmegatest/Children would be affected by deeper subchildren, so for simplicity I had omitted this information.
Link copied. Please paste this link to share this article on your social media post.
Thanks! I still am not able to see this error:
With your import, it took 80 seconds (looking into this performance now)! But it did eventually come back with the following response:
[ { "Name": "Group", "Description": null, "Type": 0, "ParentId": "/Server 1/zmegatest", "Id": "/Server 1/zmegatest/Group" }, { "Name": "Group 1", "Description": null, "Type": 0, "ParentId": "/Server 1/zmegatest", "Id": "/Server 1/zmegatest/Group 1" }, { "Name": "Group 2", "Description": null, "Type": 0, "ParentId": "/Server 1/zmegatest", "Id": "/Server 1/zmegatest/Group 2" }, { "Name": "Group 3", "Description": null, "Type": 0, "ParentId": "/Server 1/zmegatest", "Id": "/Server 1/zmegatest/Group 3" }, { "Name": "Group 4", "Description": null, "Type": 0, "ParentId": "/Server 1/zmegatest", "Id": "/Server 1/zmegatest/Group 4" }, { "Name": "Group 5", "Description": null, "Type": 0, "ParentId": "/Server 1/zmegatest", "Id": "/Server 1/zmegatest/Group 5" }, { "Name": "Group 6", "Description": null, "Type": 0, "ParentId": "/Server 1/zmegatest", "Id": "/Server 1/zmegatest/Group 6" }, { "Name": "Group 7", "Description": null, "Type": 0, "ParentId": "/Server 1/zmegatest", "Id": "/Server 1/zmegatest/Group 7" }, { "Name": "Group 8", "Description": null, "Type": 0, "ParentId": "/Server 1/zmegatest", "Id": "/Server 1/zmegatest/Group 8" }, { "Name": "Group 9", "Description": null, "Type": 0, "ParentId": "/Server 1/zmegatest", "Id": "/Server 1/zmegatest/Group 9" }, { "Name": "Group 10", "Description": null, "Type": 0, "ParentId": "/Server 1/zmegatest", "Id": "/Server 1/zmegatest/Group 10" }, { "Name": "Group 11", "Description": null, "Type": 0, "ParentId": "/Server 1/zmegatest", "Id": "/Server 1/zmegatest/Group 11" }, { "Name": "Group 12", "Description": null, "Type": 0, "ParentId": "/Server 1/zmegatest", "Id": "/Server 1/zmegatest/Group 12" }, { "Name": "Group 13", "Description": null, "Type": 0, "ParentId": "/Server 1/zmegatest", "Id": "/Server 1/zmegatest/Group 13" }, { "Name": "Group 14", "Description": null, "Type": 0, "ParentId": "/Server 1/zmegatest", "Id": "/Server 1/zmegatest/Group 14" }, { "Name": "Group 15", "Description": null, "Type": 0, "ParentId": "/Server 1/zmegatest", "Id": "/Server 1/zmegatest/Group 15" }, { "Name": "Group 16", "Description": null, "Type": 0, "ParentId": "/Server 1/zmegatest", "Id": "/Server 1/zmegatest/Group 16" }, { "Name": "Group 17", "Description": null, "Type": 0, "ParentId": "/Server 1/zmegatest", "Id": "/Server 1/zmegatest/Group 17" }, { "Name": "Group 18", "Description": null, "Type": 0, "ParentId": "/Server 1/zmegatest", "Id": "/Server 1/zmegatest/Group 18" }, { "Name": "Group 19", "Description": null, "Type": 0, "ParentId": "/Server 1/zmegatest", "Id": "/Server 1/zmegatest/Group 19" }, { "Name": "Group 20", "Description": null, "Type": 0, "ParentId": "/Server 1/zmegatest", "Id": "/Server 1/zmegatest/Group 20" }, { "Name": "Group 21", "Description": null, "Type": 0, "ParentId": "/Server 1/zmegatest", "Id": "/Server 1/zmegatest/Group 21" }, { "Name": "Group 22", "Description": null, "Type": 0, "ParentId": "/Server 1/zmegatest", "Id": "/Server 1/zmegatest/Group 22" }, { "Name": "Group 23", "Description": null, "Type": 0, "ParentId": "/Server 1/zmegatest", "Id": "/Server 1/zmegatest/Group 23" }, { "Name": "Group 24", "Description": null, "Type": 0, "ParentId": "/Server 1/zmegatest", "Id": "/Server 1/zmegatest/Group 24" }, { "Name": "Group 25", "Description": null, "Type": 0, "ParentId": "/Server 1/zmegatest", "Id": "/Server 1/zmegatest/Group 25" }, { "Name": "Group 26", "Description": null, "Type": 0, "ParentId": "/Server 1/zmegatest", "Id": "/Server 1/zmegatest/Group 26" }, { "Name": "Group 27", "Description": null, "Type": 0, "ParentId": "/Server 1/zmegatest", "Id": "/Server 1/zmegatest/Group 27" }, { "Name": "Group 28", "Description": null, "Type": 0, "ParentId": "/Server 1/zmegatest", "Id": "/Server 1/zmegatest/Group 28" }, { "Name": "Group 29", "Description": null, "Type": 0, "ParentId": "/Server 1/zmegatest", "Id": "/Server 1/zmegatest/Group 29" }, { "Name": "Group 30", "Description": null, "Type": 0, "ParentId": "/Server 1/zmegatest", "Id": "/Server 1/zmegatest/Group 30" }, { "Name": "Group 31", "Description": null, "Type": 0, "ParentId": "/Server 1/zmegatest", "Id": "/Server 1/zmegatest/Group 31" }, { "Name": "Group 32", "Description": null, "Type": 0, "ParentId": "/Server 1/zmegatest", "Id": "/Server 1/zmegatest/Group 32" }, { "Name": "Group 33", "Description": null, "Type": 0, "ParentId": "/Server 1/zmegatest", "Id": "/Server 1/zmegatest/Group 33" }, { "Name": "Group 34", "Description": null, "Type": 0, "ParentId": "/Server 1/zmegatest", "Id": "/Server 1/zmegatest/Group 34" }, { "Name": "Group 35", "Description": null, "Type": 0, "ParentId": "/Server 1/zmegatest", "Id": "/Server 1/zmegatest/Group 35" }, { "Name": "Group 36", "Description": null, "Type": 0, "ParentId": "/Server 1/zmegatest", "Id": "/Server 1/zmegatest/Group 36" }, { "Name": "Group 37", "Description": null, "Type": 0, "ParentId": "/Server 1/zmegatest", "Id": "/Server 1/zmegatest/Group 37" }, { "Name": "Group 38", "Description": null, "Type": 0, "ParentId": "/Server 1/zmegatest", "Id": "/Server 1/zmegatest/Group 38" }, { "Name": "Group 39", "Description": null, "Type": 0, "ParentId": "/Server 1/zmegatest", "Id": "/Server 1/zmegatest/Group 39" }, { "Name": "Group 40", "Description": null, "Type": 0, "ParentId": "/Server 1/zmegatest", "Id": "/Server 1/zmegatest/Group 40" }, { "Name": "Group 41", "Description": null, "Type": 0, "ParentId": "/Server 1/zmegatest", "Id": "/Server 1/zmegatest/Group 41" }, { "Name": "Group 42", "Description": null, "Type": 0, "ParentId": "/Server 1/zmegatest", "Id": "/Server 1/zmegatest/Group 42" }, { "Name": "Group 43", "Description": null, "Type": 0, "ParentId": "/Server 1/zmegatest", "Id": "/Server 1/zmegatest/Group 43" }, { "Name": "Group 44", "Description": null, "Type": 0, "ParentId": "/Server 1/zmegatest", "Id": "/Server 1/zmegatest/Group 44" }, { "Name": "Group 45", "Description": null, "Type": 0, "ParentId": "/Server 1/zmegatest", "Id": "/Server 1/zmegatest/Group 45" }, { "Name": "Group 46", "Description": null, "Type": 0, "ParentId": "/Server 1/zmegatest", "Id": "/Server 1/zmegatest/Group 46" }, { "Name": "Group 47", "Description": null, "Type": 0, "ParentId": "/Server 1/zmegatest", "Id": "/Server 1/zmegatest/Group 47" }, { "Name": "Group 48", "Description": null, "Type": 0, "ParentId": "/Server 1/zmegatest", "Id": "/Server 1/zmegatest/Group 48" }, { "Name": "Group 49", "Description": null, "Type": 0, "ParentId": "/Server 1/zmegatest", "Id": "/Server 1/zmegatest/Group 49" }, { "Name": "Group 50", "Description": null, "Type": 0, "ParentId": "/Server 1/zmegatest", "Id": "/Server 1/zmegatest/Group 50" }, { "Name": "Group 51", "Description": null, "Type": 0, "ParentId": "/Server 1/zmegatest", "Id": "/Server 1/zmegatest/Group 51" }, { "Name": "Group 52", "Description": null, "Type": 0, "ParentId": "/Server 1/zmegatest", "Id": "/Server 1/zmegatest/Group 52" }, { "Name": "Group 53", "Description": null, "Type": 0, "ParentId": "/Server 1/zmegatest", "Id": "/Server 1/zmegatest/Group 53" }, { "Name": "Group 54", "Description": null, "Type": 0, "ParentId": "/Server 1/zmegatest", "Id": "/Server 1/zmegatest/Group 54" }, { "Name": "Group 55", "Description": null, "Type": 0, "ParentId": "/Server 1/zmegatest", "Id": "/Server 1/zmegatest/Group 55" }, { "Name": "Group 56", "Description": null, "Type": 0, "ParentId": "/Server 1/zmegatest", "Id": "/Server 1/zmegatest/Group 56" }, { "Name": "Group 57", "Description": null, "Type": 0, "ParentId": "/Server 1/zmegatest", "Id": "/Server 1/zmegatest/Group 57" }, { "Name": "Group 58", "Description": null, "Type": 0, "ParentId": "/Server 1/zmegatest", "Id": "/Server 1/zmegatest/Group 58" }, { "Name": "Group 59", "Description": null, "Type": 0, "ParentId": "/Server 1/zmegatest", "Id": "/Server 1/zmegatest/Group 59" }, { "Name": "Group 60", "Description": null, "Type": 0, "ParentId": "/Server 1/zmegatest", "Id": "/Server 1/zmegatest/Group 60" }, { "Name": "Group 61", "Description": null, "Type": 0, "ParentId": "/Server 1/zmegatest", "Id": "/Server 1/zmegatest/Group 61" }, { "Name": "Group 62", "Description": null, "Type": 0, "ParentId": "/Server 1/zmegatest", "Id": "/Server 1/zmegatest/Group 62" }, { "Name": "Group 63", "Description": null, "Type": 0, "ParentId": "/Server 1/zmegatest", "Id": "/Server 1/zmegatest/Group 63" }, { "Name": "Group 64", "Description": null, "Type": 0, "ParentId": "/Server 1/zmegatest", "Id": "/Server 1/zmegatest/Group 64" }, { "Name": "Group 65", "Description": null, "Type": 0, "ParentId": "/Server 1/zmegatest", "Id": "/Server 1/zmegatest/Group 65" }, { "Name": "Group 66", "Description": null, "Type": 0, "ParentId": "/Server 1/zmegatest", "Id": "/Server 1/zmegatest/Group 66" }, { "Name": "Group 67", "Description": null, "Type": 0, "ParentId": "/Server 1/zmegatest", "Id": "/Server 1/zmegatest/Group 67" }, { "Name": "Group 68", "Description": null, "Type": 0, "ParentId": "/Server 1/zmegatest", "Id": "/Server 1/zmegatest/Group 68" }, { "Name": "Group 69", "Description": null, "Type": 0, "ParentId": "/Server 1/zmegatest", "Id": "/Server 1/zmegatest/Group 69" }, { "Name": "Group 70", "Description": null, "Type": 0, "ParentId": "/Server 1/zmegatest", "Id": "/Server 1/zmegatest/Group 70" }, { "Name": "Group 71", "Description": null, "Type": 0, "ParentId": "/Server 1/zmegatest", "Id": "/Server 1/zmegatest/Group 71" }, { "Name": "Group 72", "Description": null, "Type": 0, "ParentId": "/Server 1/zmegatest", "Id": "/Server 1/zmegatest/Group 72" }, { "Name": "Group 73", "Description": null, "Type": 0, "ParentId": "/Server 1/zmegatest", "Id": "/Server 1/zmegatest/Group 73" }, { "Name": "Group 74", "Description": null, "Type": 0, "ParentId": "/Server 1/zmegatest", "Id": "/Server 1/zmegatest/Group 74" }, { "Name": "Group 75", "Description": null, "Type": 0, "ParentId": "/Server 1/zmegatest", "Id": "/Server 1/zmegatest/Group 75" }, { "Name": "Group 76", "Description": null, "Type": 0, "ParentId": "/Server 1/zmegatest", "Id": "/Server 1/zmegatest/Group 76" }, { "Name": "Group 77", "Description": null, "Type": 0, "ParentId": "/Server 1/zmegatest", "Id": "/Server 1/zmegatest/Group 77" }, { "Name": "Group 78", "Description": null, "Type": 0, "ParentId": "/Server 1/zmegatest", "Id": "/Server 1/zmegatest/Group 78" }, { "Name": "Group 79", "Description": null, "Type": 0, "ParentId": "/Server 1/zmegatest", "Id": "/Server 1/zmegatest/Group 79" }, { "Name": "Group 80", "Description": null, "Type": 0, "ParentId": "/Server 1/zmegatest", "Id": "/Server 1/zmegatest/Group 80" }, { "Name": "Group 81", "Description": null, "Type": 0, "ParentId": "/Server 1/zmegatest", "Id": "/Server 1/zmegatest/Group 81" }, { "Name": "Group 82", "Description": null, "Type": 0, "ParentId": "/Server 1/zmegatest", "Id": "/Server 1/zmegatest/Group 82" }, { "Name": "Group 83", "Description": null, "Type": 0, "ParentId": "/Server 1/zmegatest", "Id": "/Server 1/zmegatest/Group 83" }, { "Name": "Group 84", "Description": null, "Type": 0, "ParentId": "/Server 1/zmegatest", "Id": "/Server 1/zmegatest/Group 84" }, { "Name": "Group 85", "Description": null, "Type": 0, "ParentId": "/Server 1/zmegatest", "Id": "/Server 1/zmegatest/Group 85" }, { "Name": "Group 86", "Description": null, "Type": 0, "ParentId": "/Server 1/zmegatest", "Id": "/Server 1/zmegatest/Group 86" }, { "Name": "Group 87", "Description": null, "Type": 0, "ParentId": "/Server 1/zmegatest", "Id": "/Server 1/zmegatest/Group 87" }, { "Name": "Group 88", "Description": null, "Type": 0, "ParentId": "/Server 1/zmegatest", "Id": "/Server 1/zmegatest/Group 88" }, { "Name": "Group 89", "Description": null, "Type": 0, "ParentId": "/Server 1/zmegatest", "Id": "/Server 1/zmegatest/Group 89" }, { "Name": "Group 90", "Description": null, "Type": 0, "ParentId": "/Server 1/zmegatest", "Id": "/Server 1/zmegatest/Group 90" }, { "Name": "Group 91", "Description": null, "Type": 0, "ParentId": "/Server 1/zmegatest", "Id": "/Server 1/zmegatest/Group 91" }, { "Name": "Group 92", "Description": null, "Type": 0, "ParentId": "/Server 1/zmegatest", "Id": "/Server 1/zmegatest/Group 92" }, { "Name": "Group 93", "Description": null, "Type": 0, "ParentId": "/Server 1/zmegatest", "Id": "/Server 1/zmegatest/Group 93" }, { "Name": "Group 94", "Description": null, "Type": 0, "ParentId": "/Server 1/zmegatest", "Id": "/Server 1/zmegatest/Group 94" }, { "Name": "Group 95", "Description": null, "Type": 0, "ParentId": "/Server 1/zmegatest", "Id": "/Server 1/zmegatest/Group 95" }, { "Name": "Group 96", "Description": null, "Type": 0, "ParentId": "/Server 1/zmegatest", "Id": "/Server 1/zmegatest/Group 96" }, { "Name": "Group 97", "Description": null, "Type": 0, "ParentId": "/Server 1/zmegatest", "Id": "/Server 1/zmegatest/Group 97" }, { "Name": "Group 98", "Description": null, "Type": 0, "ParentId": "/Server 1/zmegatest", "Id": "/Server 1/zmegatest/Group 98" }, { "Name": "Group 99", "Description": null, "Type": 0, "ParentId": "/Server 1/zmegatest", "Id": "/Server 1/zmegatest/Group 99" } ]
What version of SmartConnector and SBO are you using?
Regards,
-Jeff
Posted: 2018-01-04 12:01 PM
Link copied. Please paste this link to share this article on your social media post.
Oh, I am one version behind right now. I suppose that could be the problem. I'll try updating to latest stable version and see if that error response goes away.
Thanks!
Posted: 2018-01-04 12:24 PM
Link copied. Please paste this link to share this article on your social media post.
I just did the upgrade to SmartConnector 2.3.107.
I'm using ES 1.9.1.95
I still get the error message when I run the request from swagger UI. Since its complaining about the size of incoming message, I assume its SmartConnector that is enforcing the limit.
Link copied. Please paste this link to share this article on your social media post.
Can you turn on 'RestServe' and 'CspClient' logging and set logging level to 'Trace', then run the test again and send me the log file? I would like to see if I can see what the cause of the error on your system is.
Regards,
-Jeff
Link copied. Please paste this link to share this article on your social media post.
Another thing, I had assumed that you are using the SboEwsRestProvider, are you using that or the SoapEwsRestProvider?
Edit: I have just tested this out myself, and with the SoapEwsRestProvider, I do indeed get the same error that you are seeing. That said, the error comes back very quickly, like 2 seconds.
Regards,
-Jeff
Posted: 2018-01-04 12:40 PM
Link copied. Please paste this link to share this article on your social media post.
Yes, I'm using the SoapEwsRestProvider for this test. For the time being, we're trying to maintain compatibility with both SboEwsRestProvider and SoapEwsRestProvider.
Link copied. Please paste this link to share this article on your social media post.
I have just tested this out myself, and with the SoapEwsRestProvider, I do indeed get the same error that you are seeing. That said, the error comes back very quickly, like 2 seconds.
I will look into this.
Regards,
-Jeff
Posted: 2018-01-04 12:42 PM
Link copied. Please paste this link to share this article on your social media post.
Link copied. Please paste this link to share this article on your social media post.
Thank you Josh!
I have found something weird going on, for some reason, for all ContainerItems in the initial GetContainerItems response, we are sending out a second GetContainerItems request for all containers in that response, that 'request' seems to be causing this error.
We will likely need to release a new version to address this, I will keep you updated!
Regards,
-Jeff
Posted: 2018-01-04 01:15 PM
Link copied. Please paste this link to share this article on your social media post.
Thanks! I'll keep an eye out for it.
-Josh
Link copied. Please paste this link to share this article on your social media post.
Create your free account or log in to subscribe to the board - and gain access to more than 10,000+ support articles along with insights from experts and peers.