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!