Skip to content

Commit

Permalink
add client side timeout for EIC request (#5105)
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanweiler92 committed Apr 15, 2024
1 parent 164664a commit 2e3323d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion web/js/mapUI/components/eic/eic.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ function EIC() {
const requestBestDate = async () => {
try {
const url = `https://uhkookzof2.execute-api.us-west-2.amazonaws.com/dev/scenarios?item_type=scenario&item_id=${scenario}`;
const response = await fetch(url);
const response = await fetch(url, { timeout: 10000 });
if (!response.ok) {
throw new Error('Network response was not ok.');
}
Expand Down

0 comments on commit 2e3323d

Please sign in to comment.