Page MenuHomeDevCentral

Degrade silently bit.ly API call on request failure
ClosedPublic

Authored by dereckson on Nov 30 2015, 04:45.
Tags
None
Referenced Files
Unknown Object (File)
Tue, Nov 5, 09:58
Unknown Object (File)
Sat, Oct 26, 15:54
Unknown Object (File)
Thu, Oct 24, 05:53
Unknown Object (File)
Thu, Oct 24, 05:31
Unknown Object (File)
Wed, Oct 23, 23:38
Unknown Object (File)
Wed, Oct 23, 21:13
Unknown Object (File)
Tue, Oct 22, 15:24
Unknown Object (File)
Tue, Oct 22, 03:18
Subscribers
None

Details

Summary

If a too long URL is generated by the list replace tool, bit.ly API
throws a 500 error. To prevent this, we degrade silently to a regular
non-short URL mode when this occurs.

Fixes T601.

Test Plan

test with URL provided in bug case

Diff Detail

Repository
rTOOLS Nasqueron Tools
Lint
No Lint Coverage
Unit
No Test Coverage
Branch
T601
Build Status
Buildable 103
Build 103: arc lint + arc unit

Event Timeline

dereckson retitled this revision from to Degrade silently bit.ly API call on request failure.
dereckson updated this object.
dereckson edited the test plan for this revision. (Show Details)
dereckson added a reviewer: dereckson.
dereckson added inline comments.
lists/replace.php
126

It's not a time out error, but a 500.

dereckson marked an inline comment as done.
dereckson edited edge metadata.

More precise comment

dereckson edited edge metadata.

Cleaned ommits selection

dereckson edited edge metadata.
This revision is now accepted and ready to land.Nov 30 2015, 04:50
This revision was automatically updated to reflect the committed changes.