You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi, I am new to using GraphQL API and I've been trying to replicate the query from the playground into my Python script and have problems.
I decided to use Requests library and send a simple GET request to this endpoint: https://api.thegraph.com/subgraphs/name/aave/protocol-v3
However, response.content returns to me the following:
b'<!DOCTYPE html>\n<html lang="en">\n<head>\n<meta charset="utf-8" />\n<title>The GraphiQL</title>\n<script src="/cdn-cgi/apps/head/a-7iaLT0SRdb_kvxGKIYLrjkGzU.js"></script><link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@graphql-yoga/[email protected]/dist/style.css" crossorigin />\n<link rel="icon" type="image/png" href="https://storage.googleapis.com/graph-web/favicon.png" crossorigin="anonymous" />\n</head>\n<body id="body" class="no-focus-outline">\n<noscript>You need to enable JavaScript to run this app.</noscript>\n<div id="root"></div>\n<script type="module" crossorigin>\n import { renderYogaGraphiQL } from "https://cdn.jsdelivr.net/npm/@graphql-yoga/[email protected]/+esm";\n\n const endpoint = window.location.pathname.substring(\n 0,\n window.location.pathname.length - "/graphql".length\n );\n\n renderYogaGraphiQL(root, {\n endpoint,\n title: "The GraphiQL",\n logo: React.createElement("img", {\n src: "https://storage.googleapis.com/graph-web/favicon.png",\n crossOrigin: "anonymous",\n style: {\n height: "42px",\n },\n }),\n });\n </script>\n<script defer src="https://static.cloudflareinsights.com/beacon.min.js/v84a3a4012de94ce1a686ba8c167c359c1696973893317" integrity="sha512-euoFGowhlaLqXsPWQ48qSkBSCFs3DPRyiwVu3FjR96cMPx+Fr+gpWRhIafcHwqwCqWS42RZhIudOvEI+Ckf6MA==" data-cf-beacon=\'{"rayId":"83c12a4fcff92480","b":1,"version":"2023.10.0","token":"8aff362e136740cd82eeeb1ea39b8b0e"}\' crossorigin="anonymous"></script>\n</body>\n</html>\n'
I am not sure where I made a mistake or how to interpret the returning message. Any help is much appreciated!
Beta Was this translation helpful? Give feedback.
All reactions