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: fix error when msg.space is empty #140

Merged
merged 4 commits into from
Aug 28, 2023
Merged

fix: fix error when msg.space is empty #140

merged 4 commits into from
Aug 28, 2023

Conversation

wa0x6e
Copy link
Contributor

@wa0x6e wa0x6e commented Aug 27, 2023

🧿 Current issues / What's wrong ?

When an user is submitting a payload with an empty msg.space, the subgraph query using that space as argument is failing with the error https://snapshot-labs.sentry.io/issues/4401679917/?referrer=github_integration

💊 Fixes / Solution

Fix #139
Fix SNAPSHOT-RELAYER-1

🚧 Changes

  • Check and return a 400 error when user is submitting an invalid payload (missing msg.space)

🛠️ Tests

  • N/A

@wa0x6e wa0x6e requested a review from ChaituVR August 27, 2023 15:02
src/api.ts Outdated Show resolved Hide resolved
@codecov
Copy link

codecov bot commented Aug 27, 2023

Codecov Report

Merging #140 (3da0e18) into master (40f9780) will not change coverage.
Report is 2 commits behind head on master.
The diff coverage is 0.00%.

@@          Coverage Diff           @@
##           master    #140   +/-   ##
======================================
  Coverage    0.00%   0.00%           
======================================
  Files           6       6           
  Lines         334     341    +7     
  Branches        6       6           
======================================
- Misses        328     335    +7     
  Partials        6       6           
Files Changed Coverage Δ
src/api.ts 0.00% <0.00%> (ø)

Copy link
Member

@ChaituVR ChaituVR left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

utAck

src/api.ts Show resolved Hide resolved
@wa0x6e wa0x6e merged commit 33a359c into master Aug 28, 2023
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Error: Errors found in subgraphRequest: URL: https://hub.snapshot.org/graphql, Status: 400, Response: [...
2 participants