Skip to content

POST requests to wfs server failing #348

@ateucher

Description

@ateucher

FWIW I am experiencing the same errors using the previous and latest package versions (0.4.1 and 0.5.0).

Looks to only be the queries to the WFS server.

bcdata::bcdc_get_record("78ec5279-4534-49a1-97e8-9d315936f08b")
B.C. Data Catalogue Record: School Districts of BC
Name: school-districts-of-bc (ID:
 78ec5279-4534-49a1-97e8-9d315936f08b)
Permalink:
 https://catalogue.data.gov.bc.ca/dataset/78ec5279-4534-49a1-97e8-9d315936f08b
Licence: Open Government Licence - British Columbia
Description: The School Districts dataset contains the
 spatial representation (polygon) of the current extent of the
 administrative areas defined under section 176(1) of the School Act for
 the purposes of preservation and promotion of the fundamental principle
 of local autonomy and control of public education at the public and
 governmental levels through locally elected school boards.
Available Resources (1):
 1. WMS getCapabilities request (wms)
Access the full 'Resources' data frame using:
 bcdc_tidy_resources('78ec5279-4534-49a1-97e8-9d315936f08b')
Query and filter this data using:
 bcdc_query_geodata('78ec5279-4534-49a1-97e8-9d315936f08b')

bcdc_query_geodata('78ec5279-4534-49a1-97e8-9d315936f08b')
Error: There was an issue sending this WFS request
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
Request:
  URL: https://openmaps.gov.bc.ca/geo/pub/wfs
  POST fields:
    SERVICE=WFS&VERSION=2.0.0&REQUEST=DescribeFeatureType&typeNames=WHSE_TANTALIS.TA_SCHOOL_DISTRICTS_SVW
  Content-Type: application/x-www-form-urlencoded
  Accept-Encoding: gzip, deflate
  Accept: application/json, text/xml, application/xml, */*
  User-Agent: https://github.com/bcgov/bcdata
Response:
  status: HTTP/1.1 500 Internal Server Error
  content-type: application/json; charset=utf-8
  transfer-encoding: chunked
  vary: Origin
  vary: Access-Control-Request-Method
  vary: Access-Control-Request-Headers
  date: Wed, 18 Dec 2024 20:04:44 GMT
  server: uvicorn
  x-kong-upstream-latency: 3
  x-kong-proxy-late
 

Originally posted by @achubaty in #347

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingwfs

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions