Hello, I created the attached .xml. It is used to send sensor data to server. When I create a post request via https://reqbin.com and have this xml in the Body it works perfectly.
Now I wanted to do this post request with a microcontroller + WINC1500 wifi module. I got the same header as the one i used with reqbin and got the xml into a string and then send the post request with the arduino and the string as the body to the server. This time it didn't work: The error message i got: 15:1:52.889 -> HTTP/1.1 200 OK 15:2:03.306 -> Date: Mon, 19 Jul 2021 13:01:53 GMT 15:2:03.393 -> Server: Apache/2.4.29 (Ubuntu) 15:2:03.459 -> Content-Length: 994 15:2:03.503 -> Vary: Accept-Encoding 15:2:03.554 -> Connection: close 15:2:03.595 -> Content-Type: application/xml; charset=utf-8 15:2:03.694 -> 15:2:03.702 -> <?xml version="1.0" encoding="UTF-8" standalone="no"?><ExceptionReport xmlns="http://www.opengis.net/ows/1.1" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation=" http://www.opengis.net/ows/1.1 ../owsExceptionReport.xsd" version="1.0.0" xml:lang="en"> 15:2:04.439 -> <Exception exceptionCode="NoApplicableCode"> 15:2:04.584 -> <ExceptionText> 15:2:04.639 -> IOError 15:2:04.674 -> </ExceptionText> 15:2:04.738 -> <ExceptionText> 15:2:04.793 -> Apache/mod_wsgi request data read error: The timeout specified has expired. 15:2:05.043 -> </ExceptionText> 15:2:05.106 -> <ExceptionText> 15:2:05.167 -> ['Traceback (most recent call last):\n', ' File "/usr/share/istsos/application_istsoslib.py", line 67, in executeSos\n req_filter = FF.sosFactoryFilter(environ, sosConfig)\n', ' File "/usr/share/istsos/istsoslib/filters/factory_filters.py", line 80, in sosFactoryFilter\n content = environ[\'wsgi.input\'].read(request_body_size)\n', 'IOError: Apache/mod_wsgi request data read error: The timeout specified has expired.\n'] 15:2:06.724 -> </ExceptionText> 15:2:06.791 -> </Exception> I already increased the "RequestReadTimeout body" from the reqtimeout.conf to 60. (it was 10 before) but i still get this error. Does anyone know how to fix this?
<?xml version="1.0" encoding="UTF-8"?> <sos:InsertObservation xmlns:gml="http://www.opengis.net/gml" xmlns:om="http://www.opengis.net/om/1.0" xmlns:sos="http://www.opengis.net/sos/1.0" xmlns:swe="http://www.opengis.net/swe" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" service="SOS" version="1.0.0"> <sos:AssignedSensorId>98d76e40ea3611eb8f19000c297c373d</sos:AssignedSensorId> <sos:ForceInsert>true</sos:ForceInsert> <om:Observation> <om:procedure xlink:href="urn:ogc:def:procedure:x-istsos:1.0:LOCARNO"/> <om:samplingTime> <gml:TimePeriod> <gml:beginPosition>2015-06-03T14:10:00+02</gml:beginPosition> <gml:endPosition>2017-06-03T14:50:00+02</gml:endPosition> </gml:TimePeriod> </om:samplingTime> <om:observedProperty> <swe:CompositePhenomenon dimension="5"> <swe:component xlink:href="urn:ogc:def:parameter:x-istsos:1.0:time:iso8601"/> <swe:component xlink:href="urn:ogc:def:parameter:x-istsos:1.0:meteo:air:rainfall"/> <swe:component xlink:href="urn:ogc:def:parameter:x-istsos:1.0:meteo:air:rainfall:qualityIndex"/> <swe:component xlink:href="urn:ogc:def:parameter:x-istsos:1.0:meteo:air:temperature"/> <swe:component xlink:href="urn:ogc:def:parameter:x-istsos:1.0:meteo:air:temperature:qualityIndex"/> </swe:CompositePhenomenon> </om:observedProperty> <om:featureOfInterest xlink:href="urn:ogc:def:feature:x-istsos:1.0:Point:LOCARNO"/> <om:result> <swe:DataArray> <swe:elementCount> <swe:value>5</swe:value> </swe:elementCount> <swe:elementType name="SimpleDataArray"> <swe:DataRecord definition="urn:ogc:def:dataType:x-istsos:1.0:timeSeries"> <swe:field name="Time"> <swe:Time definition="urn:ogc:def:parameter:x-istsos:1.0:time:iso8601"/> </swe:field> <swe:field name="air-rainfall"> <swe:Quantity definition="urn:ogc:def:parameter:x-istsos:1.0:meteo:air:rainfall"> <swe:uom code="mm"/> </swe:Quantity> </swe:field> <swe:field name="air-rainfall:qualityIndex"> <swe:Quantity definition="urn:ogc:def:parameter:x-istsos:1.0:meteo:air:rainfall:qualityIndex"> <swe:uom code="-"/> </swe:Quantity> </swe:field> <swe:field name="air-temperature"> <swe:Quantity definition="urn:ogc:def:parameter:x-istsos:1.0:meteo:air:temperature"> <swe:uom code="°C"/> </swe:Quantity> </swe:field> <swe:field name="air-temperature:qualityIndex"> <swe:Quantity definition="urn:ogc:def:parameter:x-istsos:1.0:meteo:air:temperature:qualityIndex"> <swe:uom code="-"/> </swe:Quantity> </swe:field> </swe:DataRecord> </swe:elementType> <swe:encoding> <swe:TextBlock blockSeparator="@" decimalSeparator="." tokenSeparator=","/> </swe:encoding> <swe:values>2016-06-03T14:10:00+02,17,200,18.7,200</swe:values> </swe:DataArray> </om:result> </om:Observation> </sos:InsertObservation>
--------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org For additional commands, e-mail: users-h...@httpd.apache.org