Open jvanulde opened 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" }
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?
How do I tell what version is running? I believe it's 2.3.1...
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.
Thanks @mweech! The only remaining issue is the language though...
@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.
Trying to register:
I get errors: