<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html;
      charset=windows-1252">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <tt><span style="font-size:10.0pt">Hi Peder,<br>
        <br>
        On 5/24/19 2:15 PM, Peder Bach wrote:<br>
        <br>
        > The external script is running, and return 200 OK, but
        genieacs then return this error – timeout.<br>
        <br>
        I believe you have done it based on examples at
        <a class="moz-txt-link-freetext" href="https://github.com/genieacs/genieacs/wiki/Extensions">https://github.com/genieacs/genieacs/wiki/Extensions</a> and
<a class="moz-txt-link-freetext" href="https://github.com/genieacs/genieacs/wiki/Example-of-a-Provisioning-Flow#external-script">https://github.com/genieacs/genieacs/wiki/Example-of-a-Provisioning-Flow#external-script</a><br>
        <br>
        Your script is located under /config/ext directory and is called
        trig_cpeprov. There is a function called trig_cpeprov inside
        this file, right? If yes, I don't fully understand how can it
        return 200 OK as you have to call provided callback with error
        (if any) as a first parameter to this callback and result as a
        second parameter to this callback. something like:<br>
        <br>
        function myFunction(args, callback) {<br>
            ...<br>
            callback(null, result); // no error<br>
            ...<br>
            // or<br>
            ...<br>
            callback(error, result); // in case of error<br>
            ...<br>
        }<br>
        <br>
        exports.myFunctionExternalName = myFunction;<br>
        <br>
        and then in your provision you have a call:<br>
        <br>
        ...<br>
        // call extension script<br>
        let result = ext("extensionScript", "myFunctionExternalName",
        "arg1", ... , "argN");<br>
        // handle result<br>
        ...<br>
        <br>
        I don't see any "200 OK" here...<br>
        <br>
        Can you show us your extension script?<br>
        <br>
        Best regards,<br>
        <br>
        George<br>
      </span></tt>
    <p><tt><span style="font-size:10.0pt"></span></tt></p>
  </body>
</html>