jukebox
All repositories: gitoria
635 B
import { fetch } from 'hl:fetch'import { env } from 'hl:proc'\* Mission 517: a refused connection, an unknown host and a connect timeout areordinary errors that `on Error` absorbs; fetch then gives back null. *\let caught = 0on Error(e) {console.log('caught: ' + e.message)caught = caught + 1}let port = env('HL_TEST_PORT')let a = fetch('http://127.0.0.1:' + port + '/x', { method = 'POST' json = { a = 1 } })let b = fetch('https://127.0.0.1:' + port + '/x')let c = fetch('http://nonexistent.invalid/x', { timeoutMs = 3000 })console.log('done ' + caught + ' ' + (a == null) + ' ' + (b == null) + ' ' + (c == null))
Branches
Latest commits
- 6422a020Sync media-player at 51c3818mre
- b582ba1cVendor complete Hybriel day72 plugin setmre
- 02dccbc9Merge branch 'records-1119' into mainJukebox
- a39e1c23|||PR Records: missions 013-015, reconnect fix livemre
- fc7db075Merge branch 'reconnect-retry' into mainJukebox
- ac6f4c6fL2: plain declaration for a in pickedNextmre
- 2f335086Review round 2: only an explicit queue pick drops pend (not the automatic advance); jb23 records every source changemre
- 3eb6695fReview fixes: action generation, queue pick clears pend, Previous/Next retry the decided request, typed handlersmre
- 7a53c0c2|||PR A tap lost to a dead socket plays after reconnect (mission 015)mre
- 1f0cd77bMerge branch 'records-day41' into mainJukebox
- 67be229f|||PR Records: day41 live (PR #4), mission 012, statusmre
- 0bb027daconductor: caramboleyo is the user, not owner/creatorApollo
- 04f5d9d5Merge branch 'day41' into mainJukebox
- 8ed6da45|||PR README: media-player pin df9e7dfmre
- d5d45fc3|||PR media-player df9e7df (repeat-one fix), sync pin and SOURCEmre
- 89cdabb1Vendor Hybriel day41 (57054d9e): plugin dirs, set .somre
- 1fecd6a7Merge branch 'records-day39' into mainJukebox
- d6b3e068|||PR Records: day39 live (PR #2), mission 011 PR step, statusmre
- 5fa19e89Merge branch 'day39' into mainJukebox
- cfe95440|||PR day39 re-vendor: Hybriel 51e921d7 (bin 6b481aa7), ids kebab-case since hybriel#256: quoted state rule and tests use jb-shuffle / jb-repeatmre