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

Invalid URL error #42

Open
stenuto opened this issue Sep 6, 2023 · 1 comment
Open

Invalid URL error #42

stenuto opened this issue Sep 6, 2023 · 1 comment

Comments

@stenuto
Copy link

stenuto commented Sep 6, 2023

I'm getting an invalid URL error on this endpoint uri: https://slco.org/slcogis/rest/services/Land/MapServer/1

They've disabled the directory on this page, but it is accessible from https://slco.org/slcogis/rest/services/Land/MapServer/1?f=json

@ingalls
Copy link
Member

ingalls commented Sep 8, 2023

@stenuto I'm not seeing any Invalid URL errors, just that the server is reliably killing connections mid query. Can you provide me more information ie input/output, CLI vs library on how you are using the tool?

I've tried every type of query approach we support and am fairly convinced this is an issue with the upstream server.

DEBUG=1 ts-node cli.ts --approach iter fetch https://slco.org/slcogis/rest/services/Land/MapServer/1
https://slco.org/slcogis/rest/services/Land/MapServer/1?f=json
https://slco.org/slcogis/rest/services/Land/MapServer/1/query?returnCountOnly=true&where=1%3D1&f=json
https://slco.org/slcogis/rest/services/Land/MapServer/1/query?where=1%3D1&geometryPrecision=7&returnGeometry=true&outSR=4326&outFields=*&resultOffset=0
https://slco.org/slcogis/rest/services/Land/MapServer/1/query?where=1%3D1&geometryPrecision=7&returnGeometry=true&outSR=4326&outFields=*&resultOffset=0&f=json
TypeError: terminated
    at Fetch.onAborted (node:internal/deps/undici/undici:11323:53)
    at Fetch.emit (node:events:513:28)
    at Fetch.emit (node:domain:489:12)
    at Fetch.terminate (node:internal/deps/undici/undici:10578:14)
    at Object.onError (node:internal/deps/undici/undici:11418:36)
    at Request.onError (node:internal/deps/undici/undici:8210:31)
    at errorRequest (node:internal/deps/undici/undici:10264:17)
    at TLSSocket.onSocketClose (node:internal/deps/undici/undici:9710:9)
    at TLSSocket.emit (node:events:525:35)
    at TLSSocket.emit (node:domain:489:12) {
  [cause]: Error: read ECONNRESET
      at TLSWrap.onStreamRead (node:internal/stream_base_commons:217:20) {
    errno: -104,
    code: 'ECONNRESET',
    syscall: 'read'
  }
}

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