Skip to content
This repository was archived by the owner on Dec 12, 2024. It is now read-only.
This repository was archived by the owner on Dec 12, 2024. It is now read-only.

Error: message: must have required property 'cancellation' #277

@NexusStudent

Description

@NexusStudent

Every time i run
import { TbdexHttpClient, } from "@tbdex/http-client";

const offerings = await TbdexHttpClient.getOfferings({ pfiDid: aquafinanceCapital });
i get the following error

Error: message: must have required property 'cancellation' at handleValidationError (file:///C:/Desktop/Dev/web5-app/node_modules/@tbdex/protocol/dist/esm/src/validator.js:27:11) at validate (file:///C:/Desktop/Dev/web5-app/node_modules/@tbdex/protocol/dist/esm/src/validator.js:14:9) at Offering.validateData (file:///C:/Desktop/Dev/web5-app/node_modules/@tbdex/protocol/dist/esm/src/resource.js:95:9) at Offering.validate (file:///C:/Desktop/Dev/web5-app/node_modules/@tbdex/protocol/dist/esm/src/resource.js:87:14) at Offering.verify (file:///C:/Desktop/Dev/web5-app/node_modules/@tbdex/protocol/dist/esm/src/resource.js:50:14) at Offering.parse (file:///C:/Desktop/Dev/web5-app/node_modules/@tbdex/protocol/dist/esm/src/resource-kinds/offering.js:30:24) at TbdexHttpClient.getOfferings (file:///C:/Desktop/Dev/web5-app/node_modules/@tbdex/http-client/dist/esm/src/client.js:102:45) at process.processTicksAndRejections (node:internal/process/task_queues:95:5) at async file:///C:/Desktop/Dev/web5-app/Wallet.js:17:23

And there is no way of bypassing it.
What am i doing wrong 

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions