Skip to content
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

Registration fails #99

Open
jvanulde opened this issue Jun 11, 2018 · 6 comments
Open

Registration fails #99

jvanulde opened this issue Jun 11, 2018 · 6 comments

Comments

@jvanulde
Copy link

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
Copy link
Author

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" }

@jvanulde jvanulde reopened this Jun 28, 2018
@barryytm
Copy link
Collaborator

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
Copy link
Author

jvanulde commented Jun 29, 2018

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

@mweech
Copy link
Member

mweech commented Jun 29, 2018

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
Copy link
Author

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

@mweech
Copy link
Member

mweech commented Jul 5, 2018

@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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants