gitoria

gitoria

All repositories: gitoria

ReadmeCodePull requestsReleasesTicketsSettings
Commitfefaedd2fefaedd2log: tracker PR-only, HL25 startedmrefefaedd2/plugins/fetch/tests/refused_catch.hl

635 B

  1. import { fetch } from 'hl:fetch'
  2. import { env } from 'hl:proc'
  3. \* Mission 517: a refused connection, an unknown host and a connect timeout are
  4. ordinary errors that `on Error` absorbs; fetch then gives back null. *\
  5. let caught = 0
  6. on Error(e) {
  7. console.log('caught: ' + e.message)
  8. caught = caught + 1
  9. }
  10. let port = env('HL_TEST_PORT')
  11. let a = fetch('http://127.0.0.1:' + port + '/x', { method = 'POST' json = { a = 1 } })
  12. let b = fetch('https://127.0.0.1:' + port + '/x')
  13. let c = fetch('http://nonexistent.invalid/x', { timeoutMs = 3000 })
  14. console.log('done ' + caught + ' ' + (a == null) + ' ' + (b == null) + ' ' + (c == null))

Branches

Latest commits

  • fefaedd2log: tracker PR-only, HL25 startedmre
  • 21aa57calog: parkmre
  • e9f950a8reports: G25c soakmre
  • a7783686log: deploy 9f41ffcmre
  • 9f41ffc1log: W30b mergedmre
  • bef635c1Merge branch 'w30b'mre
  • 15b996a5Org list: keyed rows by @id, newest first, concat instead of hand loopmre
  • c4f6d9e3reports: G25c growth huntmre
  • b88e39f1log: privacy cleanup donemre
  • bfd7826ddocs: neutral example organisation namemre
  • 01b71c2edocs: neutral wording in missions, reports and logmre
  • 3eeea733log: 2026-11-09 PR flow plan and membersmre
  • e7c2ff1fdocs: neutral name for the apps-api reviewmre
  • 120b7abdlog: step 3 queuedmre
  • 358474bflog: P50 livemre
  • 477d7bdcMerge branch 'p50'mre
  • 00efc06fP50 reportmre
  • e3f85afblog: commit mention slipmre
  • 4d1a4cf4log: #25 numbersmre
  • 1af0a60ddocs: H25 run() correctionmre