Hi, I'm trying to register a custom data provider using the ArcGIS Enterprise SDK for node.js. When I try to register the .cdpk file that I created with cdf export <provider-name> and uploaded in the ArcGIS server admin directory, I get the following error:
JSONObject["arcgisVersion"] not found.
We are using ArcGIS Enterprise 11.1 for Windows
Update: I found out that adding
"arcgisVersion": "11.1.0"
in cdconfig.json in the provider folder helped with this error. Now I get the following error:
Node server failed to start
Update: OK, I found out that I had to use version 2 of node-fetch:
npm install node-fetch@2
Now it's working!
When I tried to register my provider I got the error "Custom date feed runtime not installed or configured properly". Did you do anything to install and configure the custom data feed runtime when you upgraded to 11.1? We must have missed that step somewhere and now we can't figure it out. Any help would be appreciated.
Yes, you have to install the custom data feed runtime on your GIS server. The runtime is available via my.esri.com.
Update: OK, I found out that I had to use version 2 of node-fetch:
npm install node-fetch@2
Thank you for this. I was running through the steps in the CSV sample
And got the same Node could not start error.
Added node-fetch@2 to the provider and now it registers.