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

node-red / node-red-nodes / 1192
49%

Build:
DEFAULT BRANCH: master
Ran 11 Nov 2020 11:55AM UTC
Jobs 4
Files 14
Run time 23min
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

pending completion
1192

push

travis-ci

web-flow
Improve error handling for read-only applications (#709)

Applications pending approval will return a different response body than what is presently supported.

Below is a copy of the actual response that comes back in this scenario:
```
{"status":401,"rateLimitTimeout":null,"body":{"request":"/1.1/statuses/update.json","error":"Read-only application cannot POST."}}
```

Whereas the current implementation assumes the presence of an `errors` array, reading off the first element (i.e. `result.body.errors[0]`), the above scenario throws an exception as `result.body.errors` is now `undefined` and cannot be indexed).

The proposed update seeks to account for this while retaining existing functionality and has been tested (error message in debug now properly says "Read-only application cannot POST."

412 of 880 branches covered (46.82%)

565 of 1206 relevant lines covered (46.85%)

20.91 hits per line

Jobs
ID Job ID Ran Files Coverage
1 1192.1 11 Nov 2020 11:55AM UTC 0
46.85
Travis Job 1192.1
2 1192.2 11 Nov 2020 11:55AM UTC 0
46.85
Travis Job 1192.2
3 1192.3 11 Nov 2020 11:55AM UTC 0
46.85
Travis Job 1192.3
4 1192.4 11 Nov 2020 12:18PM UTC 0
46.85
Travis Job 1192.4
Source Files on build 1192
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #1192
  • 640a6d0c on github
  • Prev Build on master (#1190)
  • Next Build on master (#1202)
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