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

parsing times in FDSN station request #127

Open
crotwell opened this issue Nov 21, 2024 · 1 comment
Open

parsing times in FDSN station request #127

crotwell opened this issue Nov 21, 2024 · 1 comment
Assignees

Comments

@crotwell
Copy link

Although not part of the official FDSN web service spec, many data centers allow the appending of a Z to a time to indicate UTC, and I feel this is a useful feature as it helps prevent bad requests due to timezones.

It appears that your station web service is appending 00000Z to the time string without first checking to see if the Z is already present, resulting in an invalid time. Maybe a check to verify first would be more robust.

Error 400: Bad Request
schema: error converting value for "startbefore". Details: parsing time "2024-10-31T23:59:59.999Z00000Z": extra text: "00000Z" (and 1 other error)
Usage details are available from https://www.geonet.org.nz/data/tools/FDSN
Request:
/fdsnws/station/1/query?endafter=2010-01-01T00:00:00.000Z&level=station&network=NZ&startbefore=2024-10-31T23:59:59.999Z
Request Submitted:
2024-11-22T11:14:35+13:00
Service version:
1.1
@staylorofford staylorofford assigned salichon, ozym and sue-h-gns and unassigned ozym Nov 26, 2024
@junghao junghao self-assigned this Nov 26, 2024
@sue-h-gns sue-h-gns added enhancement and removed bug labels Nov 26, 2024
@sue-h-gns
Copy link

Thank you for advising us of this issue. I will take a look and see when we can schedule in an update

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

No branches or pull requests

6 participants