Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Metadata does not upload #33

Open
excaliburne opened this issue Sep 28, 2021 · 0 comments
Open

Metadata does not upload #33

excaliburne opened this issue Sep 28, 2021 · 0 comments

Comments

@excaliburne
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant