Skip to content

Harden wfs.ts + ogc-client #13

@esgn

Description

@esgn

Problem

Currently some error ar still passing retry. It seems ogc-client emit a HEAD request after a failed GET request.
This triggers a CORS error that is propagated out of retry to the cli.
A fix should be implemented to prevent retry being bypassed by an uncatched error.

GPF-SCHEMA-STORE:RETRY 102220: wfs.getFeatureTypeFull(BDTOPO_V3:canalisation) failed (attempt 1/3), retrying in 209ms
file:///home/ESeguin2/git-clones/github.com/gpf-schema-store/node_modules/dist-node.js:2127
        throw new EndpointError(
              ^

EndpointError: The document could not be fetched due to CORS limitations
    at file:///home/ESeguin2/git-clones/github.com/gpf-schema-store/node_modules/dist-node.js:2127:15
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async Promise.all (index 0) {
  httpStatus: 0,
  isCrossOriginRelated: true
}

Actions

  • Create a WfsClient to handle the endpoint from ogc-client
  • Move out namespace filtering
  • Find a workaround for the ogc-client unhandled errors

ignfab/gpf-schema-store - src/services/wfs.ts - process.on('unhandledRejection',...)

Metadata

Metadata

Assignees

Labels

wfsIssues related to WFS

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions