-
Notifications
You must be signed in to change notification settings - Fork 10
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
Configuration of EVENT services #38
Comments
See also #18 regarding catalog order. |
Hmm. It is possible that there is a bug in the code such that it only works when the ISC catalog is present. @jan-michalek: Could you try visiting your instances'
Do you get a JSON file? Is it valid JSON? Our configuration includes the following lines in
This is at least confusing, and probably wrong. |
Yes, the https://eida.geo.uib.no/webdc3/wsgi/event/catalogs produces valid JSON with all catalogs defined in webinterface.cfg. Our event service itself (http://nnsn.geo.uib.no/nnsn_eqcat/fdsnws/event/1/) does not have the I haven't found any valid combination of catalogs for I tried to add the ISC catalog (copied config lines from above) but getting warning: Got no events for the selected day and options |
I think the logic at Line 312 in 9ce1152
|
Great that your event/catalogs now produces valid JSON. I think, as @andres-h also observed, that we know where the problem is - this fails to produce correct JSON if ISC is left out. I'll fix that. When I visit https://eida.geo.uib.no/webdc3/ and search with each catalog service in turn, for events on 2021-01-01 with M>=3, I see:
For ISC, there are no recent events in that catalog - try e.g. http://service.iris.edu/fdsnws/event/1/query?catalog=ISC&minmag=6&format=text&limit=5 |
Thanks for reply and investigating! What do you mean by "That's gone to the wrong place!" for USGS? Is it something wrong in our config? URL for USGS service is correct and works if accessed directly. |
I meant that you'll see the console output above shows that WebDC was trying to query requests from the wrong place: https://eida.geo.uib.no/event/comcat - but that URL gives me a 404 response. I think that's because WebDC is incorrectly computing what URL to use for the USGS service. I got a similar response from our service when I mistakenly set In the meantime, I've committed a few changes - see my pull request https://github.com/pevans-gfz/webdc3/tree/18-event-catalog-order If you update your
|
Thanks @pevans-gfz ! For USGS it still does not work. I renamed the configuration to
Now I am getting error in concole: |
Good that the ordering works, at least. I'm puzzled by the problem with other event web services. I can see you have your own UIB service working, and the GFZ catalogue connecting to list.php at GEOFON works, and EMSC works, which also uses fdsnws-event. But is it possible that your server can't connect to http://earthquake.usgs.gov/, perhaps because it is behind some firewall? It might also be that the fdsnws-event requests that the webdc3 instance makes are somehow acceptable to some fdsnws-event services, but not others. For instance, http://eida.geo.uib.no/webdc3/wsgi/event/usgs?start=2021-07-04&end=2022-01-12&minmag=6&maxmag=10&mindepth=0&maxdepth=999&minlat=-90&minlon=-180&maxlat=90&maxlon=180&format=json&_=1641934121890 should return a JSON list of events for the front end to display, not the 503 message you got above. Could you try adding the following in
And restart. This adds an event catalog using the GEOFON fdsnws service, and it works for me here. |
How adding geofonfdsnws might be related to USGS? |
I am struggling with configuration of the event services in webinterface.cfg.
I tried various options but none of those worked:
.handler
are not unique.Example: Part of the configuration from webinterface.cfg
The text was updated successfully, but these errors were encountered: