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 request to API #82

Merged
merged 2 commits into from
Apr 13, 2024
Merged

Fix request to API #82

merged 2 commits into from
Apr 13, 2024

Conversation

Alliad
Copy link
Contributor

@Alliad Alliad commented Apr 11, 2024

  • Update schemas
  • Regenerate python code for new schemas
  • Move api urls to settings
  • Fix get pools request'

osmosis_pools = OsmosisPoolsResponse.parse_raw(response.content)
else:
logger.error(f"Response Status Code: {response.status_code}")
logger.error(f"Error fetching OSMOSIS pools: {response.content}")
Copy link
Contributor

Choose a reason for hiding this comment

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

raise Error in case of not 200 and fail request

@dzmitry-lahoda
Copy link
Contributor

@Alliad please fail in not 200 and push merge.

@dzmitry-lahoda dzmitry-lahoda marked this pull request as ready for review April 11, 2024 16:43
@Alliad Alliad merged commit 4ba55f7 into main Apr 13, 2024
1 of 2 checks passed
@Alliad Alliad deleted the ch/10/fix-connection-to-API branch April 13, 2024 09:37
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.

2 participants