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

"Load web service capabilities" lead to a Python error #48

Closed
MarioLocati opened this issue Dec 7, 2021 · 2 comments
Closed

"Load web service capabilities" lead to a Python error #48

MarioLocati opened this issue Dec 7, 2021 · 2 comments
Assignees

Comments

@MarioLocati
Copy link
Member

I tested the new feature allowing the user to retrieve FDSN-event capabilities from the application.wadl when creating a new service.

As a first attempt I have used the endpoint "http://earthquake.usgs.gov/fdsnws/event/1/" and after pressing the button "Load web service capabilities" I get the following Python error

WARNING Traceback (most recent call last):
File "C:\Users/mario/AppData/Roaming/QGIS/QGIS3\profiles\x/python/plugins\qquake\gui\service_configuration_widget.py", line 390, in response_finished
self._set_state_from_wadl(WadlServiceParser.parse_wadl(content, self.service_type, url))
File "C:\Users/mario/AppData/Roaming/QGIS/QGIS3\profiles\x/python/plugins\qquake\services\wadl.py", line 55, in parse_wadl
assert resources_elements.length() == 1
AssertionError

Using the endpoint "https://www.emidius.mi.ingv.it/fdsnws/event/1/" lead to the very same Python error.

I then tried using the endopoint "https://www.seismicportal.eu/fdsnws/event/1/" and after pressing the button "Load web service capabilities" I did not get any error but strangely it lead to a changed "Web service URL" to "http://www.seismicportal.eu/fdsnws/event/1/counts?" leaving me quite puzzled.

@nyalldawson
Copy link
Contributor

I then tried using the endopoint "https://www.seismicportal.eu/fdsnws/event/1/" and after pressing the button "Load web service capabilities"

What's the correct application.wadl url for this service? http://www.emidius.mi.ingv.it/fdsnws/event/1/application.wadl gives me an error

nyalldawson added a commit to nyalldawson/qquake that referenced this issue Dec 7, 2021
nyalldawson added a commit to nyalldawson/qquake that referenced this issue Dec 7, 2021
nyalldawson added a commit that referenced this issue Dec 7, 2021
@MarioLocati
Copy link
Member Author

MarioLocati commented Dec 8, 2021

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

2 participants