fgpv-vpgf / rcs

RAMP Configuration Service
http://fgpv-vpgf.github.io/rcs
1 stars 8 forks source link

Registration fails #99

Open jvanulde opened 6 years ago

jvanulde commented 6 years ago

Trying to register:

{
    "version": "2.0",
    "fr": {
        "service_url": "http://geo.weather.gc.ca/geomet/?lang=F",
        "service_type": "ogcWms",
        "scrape_only": ["HRDPS.CONTINENTAL_NT"],
        "recursive": false,
        "legend_format": "image/png",
        "feature_info_type": "text/plain"
    },
    "en": {
        "service_url": "http://geo.weather.gc.ca/geomet/?lang=E",
        "service_type": "ogcWms",
        "scrape_only": ["HRDPS.CONTINENTAL_NT"],
        "recursive": false,
        "legend_format": "image/png",
        "feature_info_type": "text/plain"
    }
}

I get errors:

{
    "errors": [
        "{u'recursive': True, u'legend_format': u'image/png', u'feature_info_type': u'text/plain', u'service_url': u'http://geo.weather.gc.ca/geomet/?lang=F', u'scrape_only': [u'HRDPS.CONTINENTAL_NT'], u'service_type': u'ogcWms'} is not valid under any of the given schemas",
        "{u'recursive': True, u'legend_format': u'image/png', u'feature_info_type': u'text/plain', u'service_url': u'http://geo.weather.gc.ca/geomet/?lang=E', u'scrape_only': [u'HRDPS.CONTINENTAL_NT'], u'service_type': u'ogcWms'} is not valid under any of the given schemas"
    ]
}
jvanulde commented 6 years ago

Also having issue with the following registration:

{
    "en": {
        "service_url": "http://geo.weather.gc.ca/geomet/",
        "service_type": "ogcWms",
        "service_name": "RDPS.ETA - Total cloud cover (fraction)",
        "scrape_only": ["RDPS.ETA_NT"],
        "feature_info_format": "text/plain",
        "legend_format": "image/png"
    },
    "fr": {
        "service_url": "http://geo.weather.gc.ca/geomet/",
        "service_type": "ogcWms",
        "scrape_only": ["RDPS.ETA_NT"],
        "feature_info_format": "text/plain",
        "legend_format": "image/png"
    },
    "version": "2.0"
}

The following error is returned.

Server Error

500 - Internal server error.
There is a problem with the resource you are looking for, and it cannot be displayed.
2018-06-28T23:45:19.270Z put failed 500

2018-06-28T23:43:51.028Z HMAC_SHA256(msg,key): 2IKQQA9jCl269x6_YGYMLJTc-fQj1eTNUadHBdVOEYQ

2018-06-28T23:43:51.024Z key: test_-k

2018-06-28T23:43:51.024Z msg: /v2/register/1jstest2018-06-28T23:43:51.023Z{ "en": { "service_url": "http://geo.weather.gc.ca/geomet/", "service_type": "ogcWms", "service_name": "RDPS.ETA - Total cloud cover (fraction)", "scrape_only": ["RDPS.ETA_NT"], "feature_info_format": "text/plain", "legend_format": "image/png" }, "fr": { "service_url": "http://geo.weather.gc.ca/geomet/", "service_type": "ogcWms", "scrape_only": ["RDPS.ETA_NT"] }, "version": "2.0" }
barryytm commented 6 years ago

I've tried registering the Json snippet with my RCS running locally. It took a while but it did register. What version of RCS were you running on?

jvanulde commented 6 years ago

How do I tell what version is running? I believe it's 2.3.1...

mweech commented 6 years ago

Here is the correct registration syntax for the first attempt. WMS layers cannot be added recursively:

{"fr":{
"feature_info_format":"text/plain",
"service_url":"http://geo.weather.gc.ca/geomet/",
"service_type":"ogcWms",
"legend_format":"image/png",
"scrape_only":["HRDPS.CONTINENTAL_NT"],
"service_name":"HRDPS.CONTINENTAL - Total cloud cover (fraction)"
},
"en":{
"feature_info_format":"text/plain",
"service_url":"http://geo.weather.gc.ca/geomet/",
"service_type":"ogcWms",
"legend_format":"image/png",
"scrape_only":["HRDPS.CONTINENTAL_NT"],
"service_name":"HRDPS.CONTINENTAL - Total cloud cover (fraction)"
},
"version":"2.0"
}

The second item works for me. Could be a momentary server issue, I've noticed GEOMET servers can be prone to HTTP500 errors at times.

jvanulde commented 6 years ago

Thanks @mweech! The only remaining issue is the language though...

mweech commented 6 years ago

@jvanulde i believe @james-rae and @barryytm have a patch coming to deal with the ?lang argument in our WMS parsing that will bridge the gap until your ready to upgrade to a newer version.