Skip to content

Metadata does not upload #33

@excaliburne

Description

@excaliburne

Using a similar call:

// This will be used by every Clarifai endpoint call.
const metadata = new grpc.Metadata()

metadata.set('authorization', 'Key XXXXX')

stub.PostInputs(
    {
        inputs: [{data: {
            image: {url: "https://samples.clarifai.com/puppy.jpeg", allow_duplicate_url: true},
            metadata: {id: "id001", type: "animal", size: 100}
        }}]
    },
    metadata,
    (err, response) => {
        if (err) {
            throw new Error(err);
        }

        if (response.status.code !== 10000) {
            throw new Error("Post inputs failed, status: " + response.status.description);
        }
    }
);

Metadata is not attached to the input when you check via the Portal or any other method. This seems to happen only with this gRPC client.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions