Welcome to the SRP Forum! Please refer to the SRP Forum FAQ post if you have any questions regarding how the forum works.
Debug
Revisiting this after 12 months and am a bit rusty.
Trying to use debug and getting bad gateway.
running this as a script and I do close/open after a compile.
# here is a chatty script
echo off
cls
cd C:\OPENINSIGHT\OI9PARSONS
"Java32\bin\java.exe" -jar C:\OPENINSIGHT\OI9PARSONS\OESocketServer.jar -d 3
#"java.exe" -jar C:\OPENINSIGHT\OI9PARSONS\OESocketServer.jar -d 3
What setting am I missing for debug to work?"
Trying to use debug and getting bad gateway.
running this as a script and I do close/open after a compile.
# here is a chatty script
echo off
cls
cd C:\OPENINSIGHT\OI9PARSONS
"Java32\bin\java.exe" -jar C:\OPENINSIGHT\OI9PARSONS\OESocketServer.jar -d 3
#"java.exe" -jar C:\OPENINSIGHT\OI9PARSONS\OESocketServer.jar -d 3
What setting am I missing for debug to work?"
Comments
Did you stop the service from running first?
Thanks
I removed the debug, BUT, I only had to stop/start the oengine script for it to run OK again.
Testing using postman.
Still getting 'bad gateway when debug put in start of the http_xxxx_service.
I am sure you dont need to stop/start the lhservice as that means you have to exit OI before you do that.
The data being posted is from postman, but I cant say if it is formatted correctly or not.
The is data in Body which equates to the fields and data that I posted.
When it gets to here:
NumColumns = SRP_JSON(hBody, 'GETCOUNT')
NumColumns is 0
hBody contains a numeric value.
srp_utils.ocx was updated from the srp_editor 2.8RC3 download.
Where do I go from here to work out the problem?
If HaveItemID then // The new resource will have been put into the POST string. Body = HTTP_Services('GetHTTPPostString') // The POST string will have been encoded so use percent (URL) decoding. Body = HTTP_Services('DecodePercentString', Body) ParseResponse = SRP_JSON(hBody, 'PARSE', Body) If Len(ParseResponse) EQ 0 then // Go through the column names in the JSON object and map the column values to the respective // field positions in the database row. Fields = Xlate('DICT.' : TableName, '%FIELDS%', '', 'X') NumColumns = SRP_JSON(hBody, 'GETCOUNT')
Don't confuse SRPUtil.ocx (which is the ActiveX control used by the SRP Editor) with SRPUtilities.dll (which is where the SRP Utilities libraries are stored). Unless you downgraded SRPUtilities.dll somehow (which is doubtful), it should be working just fine.
The content of the text file you sent is not valid JSON. Below is a website I like to use to quickly validate JSON:
https://jsonformatter.curiousconcept.com/