• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

mbland / custom-links
98%
master: 98%

Build:
Build:
LAST BUILD BRANCH: transfer-ownership
DEFAULT BRANCH: master
Repo Added 25 Jul 2017 03:57PM UTC
Files 26
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

LAST BUILD ON BRANCH fixups
branch: fixups
CHANGE BRANCH
x
Reset
  • fixups
  • add-api-for-search
  • add-okta
  • alpine-fix
  • api-json
  • autocomplete-and-target-search
  • autocomplete-api
  • autocomplete-ui
  • backend-delete
  • bump-npms-and-dockerfile
  • cc-test-reporter
  • cla-#147
  • codeclimate-token
  • config-redis
  • count-links
  • count-to-clicks
  • create-and-update-stamps
  • create-click-handler
  • create-link-view
  • create-unknown-link
  • deindex-and-reindex
  • delete-link
  • dialog
  • dialog-data
  • do-operation
  • docker
  • dockerize
  • downcase-ids
  • downcase-users-domains
  • edit-link
  • edit-link-nonfunctional
  • edit-view-support
  • empty-hash-view
  • env-config-override
  • extract-api-helpers
  • extract-flash
  • fix-error-response
  • fix-search-short-links
  • fix-smoke-test-flakiness
  • focus-element
  • headless-chrome
  • jsdoc
  • launch-redis
  • log
  • make-api-call
  • master
  • migrate-autocomplete-target-url-indexes
  • my-links
  • my-links-buttons
  • my-links-e2e
  • my-links-landing-page
  • readme
  • redis-refactor
  • redis-shutdown
  • refactor
  • remove-tabindex
  • rename-location-to-target
  • rename-redirectdb-to-linkdb
  • rename-url-to-link
  • save-on-exit
  • search-links
  • search-on-target-link
  • search-ui
  • show-timestamps
  • show-view-handle-rejection
  • show-view-promise
  • stabilize-e2e
  • style-touchups
  • target-index-sets
  • transfer-ownership
  • travis-ci-fix
  • update-npms
  • update-packages
  • urlp-to-cl
  • v0.1.0
  • v0.1.1
  • v0.1.2
  • v0.2.0
  • v0.2.1
  • v0.3.0
  • view-and-backend
  • wait-for-redis

pending completion
391

push

travis-ci

mbland
public: Handle net::ERR_CONNECTION_REFUSED in XHR

As it turns out, the `XMLHttpRequest.onerror` handler won't handle
`net::ERR_CONNECTION_REFUSED` or other network errors. For that, one
needs to check for `xhr.status === 0` after `xhr.readyState === 4`.

The problem manifest when manually testing to simulate a link deletion
request failure by killing the server, and there was no accompanying
error message as expected from the `onerror` handler. The hint for the
solution came from:

https://stackoverflow.com/questions/28556398/how-to-catch-neterr-connection-refused

241 of 265 branches covered (90.94%)

Branch coverage included in aggregate %.

1899 of 1921 relevant lines covered (98.85%)

12.43 hits per line

Relevant lines Covered
Build:
Build:
1921 RELEVANT LINES 1899 COVERED LINES
12.43 HITS PER LINE
Source Files on fixups
Detailed source file information is not available for this build.

Recent builds

Builds Branch Commit Type Ran Committer Via Coverage
391 fixups public: Handle net::ERR_CONNECTION_REFUSED in XHR As it turns out, the `XMLHttpRequest.onerror` handler won't handle `net::ERR_CONNECTION_REFUSED` or other network errors. For that, one needs to check for `xhr.status === 0` after `xhr.readyState ... push 30 Jul 2017 03:15AM UTC mbland travis-ci pending completion  
See All Builds (378)
  • Repo on GitHub
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc