hash icon indicating copy to clipboard operation
hash copied to clipboard

H-2481: hash-api:dev: error: Ontology type is not external

Open nsvrana opened this issue 1 year ago • 0 comments

Describe the bug

Fresh Debian VM with working docker. External services built and deployed successfully. Ran codegen and seed-data successfully. When I run yarn dev I receive the following and the front-end application is unable to connect to the API service:

@apps/hash-api:dev: error: Ontology type is not external {"service":"api","stack":"Error: Ontology type is not external\n at <anonymous> (/root/hash/libs/@local/hash-backend-utils/src/create-graph-client.ts:97:31)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at createSystemPropertyTypeIfNotExists (/root/hash/apps/hash-api/src/graph/ensure-system-graph-is-initialized/migrate-ontology-types/util.ts:574:5)\n at migrate (/root/hash/apps/hash-api/src/graph/ensure-system-graph-is-initialized/migrate-ontology-types/migrations/001-create-hash-system-types.migration.ts:23:39)\n at migrateOntologyTypes (/root/hash/apps/hash-api/src/graph/ensure-system-graph-is-initialized/migrate-ontology-types.ts:52:24)\n at ensureSystemGraphIsInitialized (/root/hash/apps/hash-api/src/graph/ensure-system-graph-is-initialized.ts:14:3)\n at main (/root/hash/apps/hash-api/src/index.ts:238:3)","status":{"code":"INVALID_ARGUMENT","contents":[],"message":"Ontology type is not external"}}

Only configuration changes are setting a front-end url to the VM's IP address, adding the IP to the allowed URL pattern, and adding a block protocol API key.

To reproduce

No response

Expected behavior

No response

Device

No response

Operating system

No response

Browser

No response

Additional context

No response

nsvrana avatar Mar 29 '24 00:03 nsvrana