-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Issue with RCS layer registration #73
Comments
moved to RCS repo. |
We are getting the same issue with another layer from one of the partners. The commonality seems to be that both of these layers are coming from AGOL. Here i s the payload that we are trying to register:
Here is the log info we are getting back:
|
After some investigations using the JSON that @yblain provided, I've discovered a few things
Here are some inputs from @james-rae about point number 3
Initial Idea (needs feedback from Aly / Dan): I'm not quite sure what make_v1_feature_node is used for big-picture. I'm assuming it's if somebody does a GET in RCS for a v1 style entry, then it returns this object instead of the v2 one. I think we should consider skipping the symbology part for make_v1_feature_node if it's a FeatureServer (or just fails in general). The result, if I have it correct, would mean a v2 entry will be ok for RAMP v2, but if a version of RAMP v1 tries to consume that RCS key, it will be missing it's symbology. This will look ugly, but RAMP v1 was never promised to work for FeatureServer anyways. After reading what @james-rae and did some testings. I have found that replacing this with |
The error with creating a v1 node was caused by requesting the legend of the layer from the server which it did not exit (link). It seems commenting out node['symbology'] would also work. There are 2 solutions I can think of as for now
Personally I think the second option is better, simply because we will still be able get a v1 style entry using |
A third option, which might prevent a number of errors in But before doing this, I think we need to decide if |
@james-rae you have a good point re: we probably would never run into v1 entries for Feature Server being requested unless we get an odd configuration mismatch of DC and RCS/RAMP. |
There are 3 issues related to Metadata/Catalog that I have identified using the JSON @yblain provided
|
|
This fails: curl -v --http1.1 -i "https://gcgeo.gc.ca/geonetwork/metadata/eng/74054d44-68cf-41af-8919-5f09f80dcd02" but this works: curl -v --http1.1 -H "Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8" -i "https://gcgeo.gc.ca/geonetwork/met adata/eng/74054d44-68cf-41af-8919-5f09f80dcd02" In the first case the header goes out as |
So is this closed? |
Upgraded to v2.3.0 and still can't register: |
This service adds fine on our test RCS instances: {"fr":{"service_url":"http://services1.arcgis.com/HsjBaDykC1mjhXz9/ArcGIS/rest/services/FloodExtentPolygon_SouthManitoba_MODIS_20170405_1530_1705/FeatureServer/0","service_type":"esriFeature","service_name":"Flood Extent FR"},"en":{"service_url":"http://services1.arcgis.com/HsjBaDykC1mjhXz9/ArcGIS/rest/services/FloodExtentPolygon_SouthManitoba_MODIS_20170405_1530_1705/FeatureServer/0","service_type":"esriFeature","service_name":"Flood Extent"},"version":"2.0"} http://fgpv.cloudapp.net/demo/develop/prod/samples/index-fgp-en.html?keys=floodextent |
I did't have any troubles registering the camp sites layer. Here is the snippet:
@jvanulde What did the error message say? |
2018-08-24T19:16:53.753Z {"msg": "Problem communicating with service endpoint http://services2.arcgis.com/wCOMu5IS7YdSyPNx/arcgis/rest/services/campsites_sites_camping_vw/FeatureServer/0 No JSON object could be decoded"} 2018-08-24T19:16:53.753Z put failed 400 |
Still an issue. See log: http://redmine.gcgeo.gc.ca/redmine/attachments/download/5481/rcs.log where this error is provided:
|
@yblain commented on Tue Jun 20 2017
A bug has been identified with regards to the registration of a service in RCS.
Here is the description of the problem from Jose's point of view:
Hi
I have been reported a problem with registering the following layer in RCS:
http://services1.arcgis.com/HsjBaDykC1mjhXz9/ArcGIS/rest/services/FloodExtentPolygon_SouthManitoba_MODIS_20170405_1530_1705/FeatureServer/0
The Data Catalogue is sending the following request:
{
"en": {
"service_url": "http://services1.arcgis.com/HsjBaDykC1mjhXz9/ArcGIS/rest/services/FloodExtentPolygon_SouthManitoba_MODIS_20170405_1530_1705/FeatureServer/0",
"service_type": "esriFeature",
"service_name": "FloodExtentPolygon_SouthManitoba_MODIS_20170405_1530_1705"
},
"fr": {
"service_url": "http://services1.arcgis.com/HsjBaDykC1mjhXz9/ArcGIS/rest/services/FloodExtentPolygon_SouthManitoba_MODIS_20170405_1530_1705/FeatureServer/0",
"service_type": "esriFeature",
"service_name": "FloodExtentPolygon_SouthManitoba_MODIS_20170405_1530_1705"
},
"version": "2.0"
}
But getting the following error:
{ "msg": "Problem communicating with service endpoint http://services1.arcgis.com/HsjBaDykC1mjhXz9/ArcGIS/rest/services/FloodExtentPolygon_SouthManitoba_MODIS_20170405_1530_1705/FeatureServer/0 content-type" }
Tested also with the RCS test page and same issue.
The request looks fine, but maybe not sure if maybe the service_type value is not what is expecting RCS?
If you can provide me some feedback on how to manage this is really appreciated, thanks.
The related issue in Redmine is this one: http://redmine.gcgeo.gc.ca/redmine/issues/9156
Regards,
Jose García
The text was updated successfully, but these errors were encountered: