Closed maximlamanovskiy closed 7 months ago
Can you provide a reproducible snippet?
Alright, I've found a problem. I was passing incorrcet data into Credential.fromJson
, instead of such object:
{"schema_id":"8QkAFnjQQzm7LXZ297pzmK:2:test-schema:1.0.0", ...}
, I was passing something like this: {"credential":{"schema_id":"8QkAFnjQQzm7LXZ297pzmK:2:test-schema:1.0.0", ...}}
.
But it's really strange, that stack trace points me on Schema.create
method instead of Credential.fromJson
, I've spent two days on finding the problem with creating schema 😅
Hi!
I try to create Schema via NodeJS wrapper and getting this error:
AnoncredsError: Input error [missing field
schema_idat line 1 column 3507]
. I'm usingcreate
method fromSchema.ts
. Also I've tried to usefromJson
and passschema_id
into it somehow, but still no results. I've tried to change version, use 0.2.0, 0.2.1 and 0.2.2 - still getting the same error. I've tried to manually build the lib and put it intonative
dir, still the same error. Try to change python version, node version, pnpm version, use npm instead of pnpm. But it doesn't help. Try to run on other OS - Mint, MacOS, Debian 12 (Docker), Ubuntu (WSL2). But it was working one week ago. I'm using:Here is a full stack-trace: