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

Got Uncaught Exception when predicting image using own model & workflow #21

Open
Fliw opened this issue Nov 3, 2022 · 5 comments
Open

Comments

@Fliw
Copy link

Fliw commented Nov 3, 2022

Hi, I was trying to create an apps that predict face sentiment of human, i was using a pre-trained models on community and use the model within my app. however, i got an error like this :
image
this happen when i'm init instance of PostModelOutputsRequest with "user_app_id" args, i was trying to use object or array to define my user_app_id, it got same error, But this was going fine when i'm using manual REST API app like postman / hoppscotch, it got 200 ok, only on this library i got issue within my credentials.

thankyou! ✌🏻

@Alfrick
Copy link

Alfrick commented Nov 4, 2022

It seems you have not installed gRPC for PHP, which is required to successfully use the Clarifai gRPC PHP client.
You can follow these tutorials to install it:

@Fliw
Copy link
Author

Fliw commented Nov 4, 2022

image
i'm already install the gRPC for php, this is my php module list

@Alfrick
Copy link

Alfrick commented Nov 7, 2022

It seems the issue is with your installation of Google Protobuf and gRPC. You can check whether there is a compatibility issue as listed here: https://github.com/grpc/grpc/blob/v1.50.0/src/php/README.md#protoc-compiler.

You may also send your code so that I try to reproduce the issue from my end.

@Fliw
Copy link
Author

Fliw commented Nov 9, 2022

@Alfrick maybe that's the issue, i was not finding the dependencies of installing google protobuf. after install, i'll let you know.

@Alfrick
Copy link

Alfrick commented Nov 10, 2022

Also check how you set your $userDataObject. You can check this sample (under PHP): https://docs.clarifai.com/api-guide/predict/images#predict-via-url

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

2 participants