Announcements
This site is in read only until July 22 as we migrate to a new platform; refer to this community post for more details.
Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

ApigeeLint:An appropriate check for a message body was not found on the enclosing Step or Flow:PO004

I am running my proxy through a CI/CD pipeline. It fails at Apigee Lint stage with this error>

What could be the issue

 

brianademba_0-1646221273351.png

This is the Flow:

 

 

 

 <Flow name="QueryStatus">
            <Description/>
            <Request>
                <Step>
                    <Condition>(request.content != null)</Condition>
                    <FaultRules/>
                    <Name>EV-QueryStatus</Name>
                </Step>
                <Step>
                    <FaultRules/>
                    <Name>JS-QueryStatus</Name>
                </Step>
                <Step>
                    <Name>AM-RemoveApikey</Name>
                </Step>
            </Request>
            <Response>
                <Step>
                    <Condition>(response.content != null)</Condition>
                    <FaultRules/>
                    <Name>EV-QueryResponse</Name>
                </Step>
                <Step>
                    <FaultRules/>
                    <Name>AM-QueryResponse</Name>
                </Step>
            </Response>
            <Condition>(proxy.pathsuffix MatchesPath "/user/request/**") and (request.verb = "GET")</Condition>
        </Flow>

 

 

JS-QueryStatus.js

var pathSuffix = context.getVariable("proxy.pathsuffix");
var referenceNumber= context.getVariable('referenceNumber');
var queryStatusBasepath= context.getVariable('queryStatusBasepath');
print(referenceNumber);
if (pathSuffix ="/charge/request"+"/"+referenceNumber){
    var queryTargetPath = queryStatusBasepath+"/"+referenceNumber;
    context.setVariable ('queryTargetPath',queryTargetPath);}
0 14 1,704
14 REPLIES 14