Unauthorised while using the vision api java library

Hi,

I am tying to train Vision product search API. I will be able to train the product and get the search result using the Curl Request (Adding products into google cloud Manually, adding labels and details into excel sheet and searching the product from postman )

Getting proper results by following this document: https://cloud.google.com/vision/product-search/docs/create-product-set-search-products.

 

Now I am trying to do the same operation by using the java library. for that I am following this document. https://cloud.google.com/vision/product-search/docs/tutorial

1. I have enabled the vision api

2. I have created service account with owner permission.

3. I have created a key and added environmental variable (GOOGLE_APPLICATION_CREDENTIALS)

After doing all these and trying to search the product from java library, I am getting this error

{
error {
code: 7
message: "Permission denied."
}
}

Am I Missing Something. How to resolve this problem

 

0 0 72
0 REPLIES 0
Top Solution Authors