Skip to content

Commit 7edd18d

Browse files
Fix an error code
1 parent c4e05c8 commit 7edd18d

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

public/samples/Automation/StreamsWithError.sol

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ contract StreamsLookupChainlinkAutomation is
123123
bool success = false;
124124
bool isError = true;
125125
// Add custom logic to handle errors offchain here
126-
if (errorCode == 800400) {
126+
if (errorCode == 808400) {
127127
// Bad request error code
128128
_upkeepNeeded = false;
129129
} else {

src/content/chainlink-automation/guides/streams-lookup-error-handler.mdx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ If the Automation network fails to get the requested reports, an error code is s
4949
bool _upkeepNeeded = true;
5050
bool success = false;
5151
bool isError = true;
52-
if (errorCode == 800400) {
52+
if (errorCode == 808400) {
5353
// Handle bad request error code offchain
5454
_upkeepNeeded = false;
5555
} else {
@@ -100,7 +100,7 @@ If the Automation network fails to get the requested reports, an error code is s
100100

101101
If you need to force errors in StreamsLookup while testing, you can try the following methods:
102102

103-
- Specifying an incorrect `feedID` to force error code 800400 (`ErrCodeStreamsBadRequest`)
103+
- Specifying an incorrect `feedID` to force error code 808400 (`ErrCodeStreamsBadRequest`)
104104
- Specifying a future timestamp to force error code 808206 (where partial content is received) for both single `feedID` and bulk `feedID` requests
105105
- Specifying old timestamps for reports not available anymore yields either error code 808504 (no response) or 808600 (bad response), depending on which service calls the timeout request
106106

@@ -123,7 +123,7 @@ If your [StreamsLookup revert](/chainlink-automation/reference/automation-interf
123123
<td>No error</td>
124124
</tr>
125125
<tr>
126-
<td rowspan="3">ErrCodeStreamsBadRequest: 800400</td>
126+
<td rowspan="3">ErrCodeStreamsBadRequest: 808400</td>
127127
<td rowspan="3">No</td>
128128
<td>User requested 0 feeds</td>
129129
</tr>

0 commit comments

Comments
 (0)