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
for this guide we will use "Polkadot"
I only see Substrate. Oh wait, that's the network family, not the network. network family isn't in the docs yet.
RPC endpoint (Required): Provide a HTTPS URL
Actually the default is a wss URL.
Git repo comes after RPC endpoint in CLI flow but before in the docs.
cd PROJECT_NAME
yarn install
cd PROJECT_NAME
npm install
Second cd is redundant. [Much later] Oh! I only just realised these are two alternatives and I only need to run one of them. Can we not put these into a single code block with 'yarn' and 'npm' tabs? Experienced devs will know these are alternatives, but it still seems clunky to show both snippets.
Copying the Transfer snippet into schema.graphql and running yarn codegen throws:
Unknown type "Account".
error Command failed with exit code 1.
Was I supposed to do this right away?
The Projet Manifest
typo
In the code snippets:
import { Transfer } from "../types";
At this point my project's types dir has only an empty models dir in it. I have no types and VSC renders a problem (red squiggly underline). And in fact this kills the yarn build step below. This is 'error continued' from point 5 above. I'm going to change the Account types to Strings so I can move forward.
You can update the handleEvent...
Actually we're renaming it to handleTransfer so this is more like replacing the whole file and updating a function.
yarn start:docker threw 'Permission denied' errors. I had to do the stuff at https://docs.docker.com/engine/install/linux-postinstall/ to get docker to run wtihout sudo. I expect this is just me though - most users will have docker properly set up already.
I got errors starting docker:
subquery-node_1 | 2022-06-15T22:33:46.569Z <fetch> ERROR failed to index block at height 1 handleBlock() TypeError: mappingFunctions[funcName] is not a function
Can we add any frequently used troubleshooting steps at this point in the docs?
I noticed the manifest still has handler: handleEvent but my mapping source has a function called handleTransfer(). I renamed handleTransfer() back to handleEvent() and rebuilt, but got the same error.
The text was updated successfully, but these errors were encountered:
Point 10 above was due to a leftover handler declared in the starter project.yaml that I hadn't removed. User error, but can we make the docs more clear that all other handlers need to be deleted?
At https://university.subquery.network/quickstart/quickstart.html:
Git repo comes after RPC endpoint in CLI flow but before in the docs.
Second
cd
is redundant. [Much later] Oh! I only just realised these are two alternatives and I only need to run one of them. Can we not put these into a single code block with 'yarn' and 'npm' tabs? Experienced devs will know these are alternatives, but it still seems clunky to show both snippets.Copying the
Transfer
snippet intoschema.graphql
and runningyarn codegen
throws:Was I supposed to do this right away?
In the code snippets:
yarn start:docker
threw 'Permission denied' errors. I had to do the stuff athttps://docs.docker.com/engine/install/linux-postinstall/
to getdocker
to run wtihoutsudo
. I expect this is just me though - most users will have docker properly set up already.I got errors starting docker:
Can we add any frequently used troubleshooting steps at this point in the docs?
I noticed the manifest still has
handler: handleEvent
but my mapping source has a function calledhandleTransfer()
. I renamedhandleTransfer()
back tohandleEvent()
and rebuilt, but got the same error.The text was updated successfully, but these errors were encountered: