This repository has been archived by the owner on Sep 26, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 130
PAN-2715 - return block not found reasons in error #1485
Merged
Merged
Changes from all commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
fd818bd
PAN-2715 - return block not found reasons in error
shemnon 4ab6845
Merge branch 'master' of github.com:PegaSysEng/pantheon into graphql
shemnon 9ea15dd
need an extra mocked call now.
shemnon c71c04b
Merge branch 'master' into graphql
shemnon fe9792a
Merge branch 'master' into graphql
shemnon File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
15 changes: 14 additions & 1 deletion
15
...rc/test/resources/tech/pegasys/pantheon/ethereum/graphql/eth_getBalance_without_addr.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,18 @@ | ||
{ | ||
"request": "{account(address: \"0x8895ee1b4f6dd65047762f924ecd367c17eabf8f\") { balance } }", | ||
"request": "{account { balance } }", | ||
"response": { | ||
"errors": [ | ||
{ | ||
"message": "Validation error of type MissingFieldArgument: Missing field argument address @ 'account'", | ||
"locations": [ | ||
{ | ||
"line": 1, | ||
"column": 2 | ||
} | ||
] | ||
} | ||
] | ||
}, | ||
"statusCode": 400 | ||
} | ||
|
File renamed without changes.
File renamed without changes.
7 changes: 0 additions & 7 deletions
7
...ql/src/test/resources/tech/pegasys/pantheon/ethereum/graphql/eth_getBlockWrongParams.json
This file was deleted.
Oops, something went wrong.
4 changes: 2 additions & 2 deletions
4
.../ethereum/graphql/eth_getBlockByHash.json → ...ethereum/graphql/eth_getBlock_byHash.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
21 changes: 21 additions & 0 deletions
21
...src/test/resources/tech/pegasys/pantheon/ethereum/graphql/eth_getBlock_byHashInvalid.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
{ | ||
"request": "{block (hash : \"0x123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef0\") {number } }", | ||
"response": { | ||
"data": null, | ||
"errors": [ | ||
{ | ||
"message": "Exception while fetching data (/block) : Block hash 0x123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef0 was not found", | ||
"locations": [ | ||
{ | ||
"line": 1, | ||
"column": 2 | ||
} | ||
], | ||
"path": [ | ||
"block" | ||
] | ||
} | ||
] | ||
}, | ||
"statusCode": 400 | ||
} |
File renamed without changes.
21 changes: 21 additions & 0 deletions
21
...c/test/resources/tech/pegasys/pantheon/ethereum/graphql/eth_getBlock_byNumberInvalid.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
{ | ||
"request": "{block (number: 88888888) {number }} ", | ||
"response": { | ||
"data": null, | ||
"errors": [ | ||
{ | ||
"message": "Exception while fetching data (/block) : Block number 88888888 was not found", | ||
"locations": [ | ||
{ | ||
"line": 1, | ||
"column": 2 | ||
} | ||
], | ||
"path": [ | ||
"block" | ||
] | ||
} | ||
] | ||
}, | ||
"statusCode": 400 | ||
} |
25 changes: 25 additions & 0 deletions
25
...l/src/test/resources/tech/pegasys/pantheon/ethereum/graphql/eth_getBlock_wrongParams.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
{ | ||
"request": "{block (number: \"0x03\", hash : \"0xc8df1f061abb4d0c107b2b1a794ade8780b3120e681f723fe55a7be586d95ba6\") {number transactions{hash} timestamp difficulty totalDifficulty gasUsed gasLimit hash nonce ommerCount logsBloom mixHash ommerHash extraData stateRoot receiptsRoot transactionCount transactionsRoot}} ", | ||
"response": { | ||
"data": null, | ||
"errors": [ | ||
{ | ||
"message": "Exception while fetching data (/block) : Invalid params", | ||
"locations": [ | ||
{ | ||
"line": 1, | ||
"column": 2 | ||
} | ||
], | ||
"path": [ | ||
"block" | ||
], | ||
"extensions": { | ||
"errorCode": -32602, | ||
"errorMessage": "Invalid params" | ||
} | ||
} | ||
] | ||
}, | ||
"statusCode": 400 | ||
} |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't know how you can add a comment in there but I wonder what the invalid param is exactly in this specific request.
Also would there be a way to indicate it in the error message ?