Ignore RECORD-messages sent by APISM which do not have JSON format.
This commit is contained in:
		@@ -342,8 +342,11 @@ IsmasClient::sendRequestReceiveResponse(int port, QString const &request) {
 | 
				
			|||||||
                return std::nullopt;
 | 
					                return std::nullopt;
 | 
				
			||||||
            }
 | 
					            }
 | 
				
			||||||
        } else {
 | 
					        } else {
 | 
				
			||||||
            printDebugMessage(port, clientIP, clientPort,
 | 
					            if (!response.contains("RECORD")) {
 | 
				
			||||||
                QString("PARSE ERROR ") + response + " " + parseError.errorString());
 | 
					                // maybe APISM does not send valid JSON: "RECORD SAVED" etc.
 | 
				
			||||||
 | 
					                printDebugMessage(port, clientIP, clientPort,
 | 
				
			||||||
 | 
					                    QString("PARSE ERROR ") + response + " " + parseError.errorString());
 | 
				
			||||||
 | 
					            }
 | 
				
			||||||
            ::close(sockfd);
 | 
					            ::close(sockfd);
 | 
				
			||||||
            return std::nullopt;
 | 
					            return std::nullopt;
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user