Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix potential hard timeouts #2072

Merged
merged 10 commits into from
Dec 5, 2019
Merged

Conversation

aaronmgdr
Copy link
Member

Description

Add try and catch around the routes we use for fetching data from medium and for events from air table also put a timeout on fetching from sortable.

Tested

messed with the timeout on the abort function while fetching /proxy/events and proxy/medium

Other changes

changed param on abort from url to message to better reflect it doesnt need to be a url

Related issues

Backwards compatibility

yes

Add try and catch around the routes we use for fetching data from medium and for event s from air table also put a timeout on fetching from sortable.
@aaronmgdr aaronmgdr added the automerge Have PR merge automatically when checks pass label Dec 5, 2019
@aaronmgdr aaronmgdr requested a review from cmcewen as a code owner December 5, 2019 20:12
packages/web/server/index.ts Outdated Show resolved Hide resolved
@codecov
Copy link

codecov bot commented Dec 5, 2019

Codecov Report

❗ No coverage uploaded for pull request base (master@6980fd8). Click here to learn what that means.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff            @@
##             master    #2072   +/-   ##
=========================================
  Coverage          ?   74.42%           
=========================================
  Files             ?      281           
  Lines             ?     7824           
  Branches          ?      687           
=========================================
  Hits              ?     5823           
  Misses            ?     1884           
  Partials          ?      117
Flag Coverage Δ
#mobile 74.42% <ø> (?)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 6980fd8...537968a. Read the comment docs.

@cmcewen cmcewen removed their assignment Dec 5, 2019
bulldozer-deployment-for-celo[bot] and others added 6 commits December 5, 2019 21:50
@celo-ci-bot-user celo-ci-bot-user merged commit ddb7f4a into master Dec 5, 2019
@celo-ci-bot-user celo-ci-bot-user deleted the aaronmgdr/protect-proxied-routes branch December 5, 2019 22:54
aaronmgdr added a commit that referenced this pull request Dec 5, 2019
* master: (208 commits)
  Fix potential hard timeouts (#2072)
  Add checkzero,blockscout,mulit-address support to faucet. Fix broken envType checks (#2068)
  README added mission (#1972)
  Add dev-utils README (#2081)
  Add validator:status command to check if a validator signer is online and producing blocks (#1906)
  Experience Brand Kit 1.0 (#1948)
  Adjust reference to the rewards app (#2065)
  [Wallet] Compatibility with exchange rate in string format (#2060)
  Fix Typo in CI config (#2056)
  Fix additional attestations instructions (#2057)
  Allow a specified address to disable/enable rewards distribution (#1828)
  Aaronmgdr/leaderboard patch (#2055)
  Move attestation service instructions to main page (#2051)
  Point To Updated Join Celo Video (#2052)
  Fix minor issue withe the ordering of instructions
  changes to docs related to discovery (#2025)
  [Docs] Fix typos in Running a Validator docs (#2045)
  Add node flag to celocli to set the target node for a single command (#2020)
  Fix broken links and spruce up CLI docs for accounts command (#2027)
  Prevent clipping of arrow component (#2036)
  ...

# Conflicts:
#	packages/web/src/layout/BookLayout.tsx
#	packages/web/src/lib.dom.d.ts
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
automerge Have PR merge automatically when checks pass
Projects
None yet
Development

Successfully merging this pull request may close these issues.

make sure fetching from medium and events from airtable doesnt time out
3 participants