Search code examples
githubcontinuous-integrationhasurahasura-jwthasura-docker

Resource does not exist error on hasura while github ci cd


I am trying to setup github ci cd with hasura...

I did everything as document said so, but since I am applying change locally on database, on cloud deployment it is saying table already exist while applying migration (which is logically correct). enter image description here

now I want to avoid, skip or sync migration between cloud and local for that hasura mentioned a command in same doc.

While executing this command I am getting resource not found error

command: hasura migrate apply --skip-execution --version 1631602988318 --endpoint "https://customer-support-dev.hasura.app/v1/graphql" --admin-secret 'mySecretKey'

error: time="2021-09-14T20:44:19+05:30" level=fatal msg="{\n \"path\": \"$\",\n \"error\": \"resource does not exist\",\n \"code\": \"not-found\"\n}"


Solution

  • This was a silly mistake --endpoint must not contain URL path. So its value will be https://customer-support-dev.hasura.app.