Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

Reference a JS file from within NodeJS script target

Not applicable

I have installed aio of 4.17.01 and trying to deploy some of the existing APIs in the older version. One of the API's script target refers js file under the subfolder. When I deploy the API, I am getting the error "The revision is deployed, but traffic cannot flow. Invalid Script name {0}".

Ex:

<ScriptTarget>
<ResourceURL>node://js/Server.js</ResourceURL>

</ScriptTarget>

Where it is working in the cloud without any issue.

--------------------------------------------------------------

When I try to mention the js without the subfolder is working well.

ScriptTarget>
<ResourceURL>node://server.js</ResourceURL>

</ScriptTarget>

Is there any property file needs to be updated to enable the script target to refer the js file in the subfolder?

1 5 291
5 REPLIES 5
Top Solution Authors