Php Video Intelligence Please Help

81 views
Skip to first unread message

Vaisakh Y P

unread,
Mar 23, 2020, 10:59:54 PM3/23/20
to cloud-videointel-discuss
while i tried to integrate am getting this error please help


Fatal error
: Uncaught DomainException: Could not load the default credentials. Browse to https://developers.google.com/accounts/docs/application-default-credentials for more information in H:\env\htdocs\vd\vendor\google\auth\src\ApplicationDefaultCredentials.php:171 Stack trace: #0 H:\env\htdocs\vd\vendor\google\gax\src\CredentialsWrapper.php(194): Google\Auth\ApplicationDefaultCredentials::getCredentials(Array, Object(Google\Auth\HttpHandler\Guzzle6HttpHandler), NULL, NULL) #1 H:\env\htdocs\vd\vendor\google\gax\src\CredentialsWrapper.php(113): Google\ApiCore\CredentialsWrapper::buildApplicationDefaultCredentials(Array, Object(Google\Auth\HttpHandler\Guzzle6HttpHandler)) #2 H:\env\htdocs\vd\vendor\google\gax\src\GapicClientTrait.php(339): Google\ApiCore\CredentialsWrapper::build(Array) #3 H:\env\htdocs\vd\vendor\google\gax\src\GapicClientTrait.php(321): Google\Cloud\VideoIntelligence\V1\Gapic\VideoIntelligenceServiceGapicClient->createCredentialsWrapper(NULL, Array) #4 H:\env\htdocs\vd\vendor\google\cloud-videointelligenc in H:\env\htdocs\vd\vendor\google\gax\src\CredentialsWrapper.php on line 200

Lei Yang

unread,
Mar 23, 2020, 11:17:34 PM3/23/20
to Vaisakh Y P, cloud-videointel-discuss
Hi Yaskh,

Thanks for using video API.
Have you run 
export GOOGLE_APPLICATION_CREDENTIALS=your-downloaded-service-account-filename.json?

Thanks & Regards,
On Mon, Mar 23, 2020 at 7:59 PM Ysakh Yp <rock...@gmail.com> wrote:
while i tried to integrate am getting this error please help


Fatal error
: Uncaught DomainException: Could not load the default credentials. Browse to https://developers.google.com/accounts/docs/application-default-credentials for more information in H:\env\htdocs\vd\vendor\google\auth\src\ApplicationDefaultCredentials.php:171 Stack trace: #0 H:\env\htdocs\vd\vendor\google\gax\src\CredentialsWrapper.php(194): Google\Auth\ApplicationDefaultCredentials::getCredentials(Array, Object(Google\Auth\HttpHandler\Guzzle6HttpHandler), NULL, NULL) #1 H:\env\htdocs\vd\vendor\google\gax\src\CredentialsWrapper.php(113): Google\ApiCore\CredentialsWrapper::buildApplicationDefaultCredentials(Array, Object(Google\Auth\HttpHandler\Guzzle6HttpHandler)) #2 H:\env\htdocs\vd\vendor\google\gax\src\GapicClientTrait.php(339): Google\ApiCore\CredentialsWrapper::build(Array) #3 H:\env\htdocs\vd\vendor\google\gax\src\GapicClientTrait.php(321): Google\Cloud\VideoIntelligence\V1\Gapic\VideoIntelligenceServiceGapicClient->createCredentialsWrapper(NULL, Array) #4 H:\env\htdocs\vd\vendor\google\cloud-videointelligenc in H:\env\htdocs\vd\vendor\google\gax\src\CredentialsWrapper.php on line 200

--
© 2018 Google Inc. 1600 Amphitheatre Parkway, Mountain View, CA 94043
 
Email preferences: You received this email because you signed up for the Google Cloud Video Intelligence API Discussion Google Group (cloud-videoi...@googlegroups.com) to participate in discussions with other members of the Google Cloud Video Intelligence API community and the Google Cloud Video Intelligence API Team.
---
You received this message because you are subscribed to the Google Groups "cloud-videointel-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cloud-videointel-d...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/cloud-videointel-discuss/731f62cb-70cc-41bb-84ed-0d0bc1377774%40googlegroups.com.


--

Lei Yang (杨蕾) | Software Engineer, Cloud AI --- Video Intelligence| yanga...@google.com | 650-214-4097

Vaisakh Y P

unread,
Mar 24, 2020, 12:31:57 AM3/24/20
to cloud-videointel-discuss
Hi bro
am new to this thing where run this export GOOGLE_APPLICATION_CREDENTIALS=your-downloaded-service-account-filename.json?
 i have downloaded that json file



On Tuesday, March 24, 2020 at 8:47:34 AM UTC+5:30, Lei Yang wrote:
Hi Yaskh,

Thanks for using video API.
Have you run 
export GOOGLE_APPLICATION_CREDENTIALS=your-downloaded-service-account-filename.json?

Thanks & Regards,
On Mon, Mar 23, 2020 at 7:59 PM Ysakh Yp <rock...@gmail.com> wrote:
while i tried to integrate am getting this error please help


Fatal error
: Uncaught DomainException: Could not load the default credentials. Browse to https://developers.google.com/accounts/docs/application-default-credentials for more information in H:\env\htdocs\vd\vendor\google\auth\src\ApplicationDefaultCredentials.php:171 Stack trace: #0 H:\env\htdocs\vd\vendor\google\gax\src\CredentialsWrapper.php(194): Google\Auth\ApplicationDefaultCredentials::getCredentials(Array, Object(Google\Auth\HttpHandler\Guzzle6HttpHandler), NULL, NULL) #1 H:\env\htdocs\vd\vendor\google\gax\src\CredentialsWrapper.php(113): Google\ApiCore\CredentialsWrapper::buildApplicationDefaultCredentials(Array, Object(Google\Auth\HttpHandler\Guzzle6HttpHandler)) #2 H:\env\htdocs\vd\vendor\google\gax\src\GapicClientTrait.php(339): Google\ApiCore\CredentialsWrapper::build(Array) #3 H:\env\htdocs\vd\vendor\google\gax\src\GapicClientTrait.php(321): Google\Cloud\VideoIntelligence\V1\Gapic\VideoIntelligenceServiceGapicClient->createCredentialsWrapper(NULL, Array) #4 H:\env\htdocs\vd\vendor\google\cloud-videointelligenc in H:\env\htdocs\vd\vendor\google\gax\src\CredentialsWrapper.php on line 200

--
© 2018 Google Inc. 1600 Amphitheatre Parkway, Mountain View, CA 94043
 
Email preferences: You received this email because you signed up for the Google Cloud Video Intelligence API Discussion Google Group (cloud-videoi...@googlegroups.com) to participate in discussions with other members of the Google Cloud Video Intelligence API community and the Google Cloud Video Intelligence API Team.
---
You received this message because you are subscribed to the Google Groups "cloud-videointel-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cloud-videointel-discuss+unsub...@googlegroups.com.

Lei Yang

unread,
Mar 24, 2020, 2:13:50 AM3/24/20
to Vaisakh Y P, cloud-videointel-discuss
Hi Yaskh, 
You can run it in your terminal, before running your PHP. Thanks!

On Mon, Mar 23, 2020 at 9:32 PM Ysakh Yp <rock...@gmail.com> wrote:
Hi bro
am new to this thing where run this export GOOGLE_APPLICATION_CREDENTIALS=your-downloaded-service-account-filename.json?
 i have downloaded that json file



On Tuesday, March 24, 2020 at 8:47:34 AM UTC+5:30, Lei Yang wrote:
Hi Yaskh,

Thanks for using video API.
Have you run 
export GOOGLE_APPLICATION_CREDENTIALS=your-downloaded-service-account-filename.json?

Thanks & Regards,
On Mon, Mar 23, 2020 at 7:59 PM Ysakh Yp <rock...@gmail.com> wrote:
while i tried to integrate am getting this error please help


Fatal error
: Uncaught DomainException: Could not load the default credentials. Browse to https://developers.google.com/accounts/docs/application-default-credentials for more information in H:\env\htdocs\vd\vendor\google\auth\src\ApplicationDefaultCredentials.php:171 Stack trace: #0 H:\env\htdocs\vd\vendor\google\gax\src\CredentialsWrapper.php(194): Google\Auth\ApplicationDefaultCredentials::getCredentials(Array, Object(Google\Auth\HttpHandler\Guzzle6HttpHandler), NULL, NULL) #1 H:\env\htdocs\vd\vendor\google\gax\src\CredentialsWrapper.php(113): Google\ApiCore\CredentialsWrapper::buildApplicationDefaultCredentials(Array, Object(Google\Auth\HttpHandler\Guzzle6HttpHandler)) #2 H:\env\htdocs\vd\vendor\google\gax\src\GapicClientTrait.php(339): Google\ApiCore\CredentialsWrapper::build(Array) #3 H:\env\htdocs\vd\vendor\google\gax\src\GapicClientTrait.php(321): Google\Cloud\VideoIntelligence\V1\Gapic\VideoIntelligenceServiceGapicClient->createCredentialsWrapper(NULL, Array) #4 H:\env\htdocs\vd\vendor\google\cloud-videointelligenc in H:\env\htdocs\vd\vendor\google\gax\src\CredentialsWrapper.php on line 200

--
© 2018 Google Inc. 1600 Amphitheatre Parkway, Mountain View, CA 94043
 
Email preferences: You received this email because you signed up for the Google Cloud Video Intelligence API Discussion Google Group (cloud-videoi...@googlegroups.com) to participate in discussions with other members of the Google Cloud Video Intelligence API community and the Google Cloud Video Intelligence API Team.
---
You received this message because you are subscribed to the Google Groups "cloud-videointel-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cloud-videointel-d...@googlegroups.com.


--

Lei Yang (杨蕾) | Software Engineer, Cloud AI --- Video Intelligence| yanga...@google.com | 650-214-4097

--
© 2018 Google Inc. 1600 Amphitheatre Parkway, Mountain View, CA 94043
 
Email preferences: You received this email because you signed up for the Google Cloud Video Intelligence API Discussion Google Group (cloud-videoi...@googlegroups.com) to participate in discussions with other members of the Google Cloud Video Intelligence API community and the Google Cloud Video Intelligence API Team.
---
You received this message because you are subscribed to the Google Groups "cloud-videointel-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cloud-videointel-d...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/cloud-videointel-discuss/c1ec3689-d8f9-4d47-a10d-44d6d73dbfc9%40googlegroups.com.

Vaisakh Y P

unread,
Mar 24, 2020, 9:29:57 AM3/24/20
to cloud-videointel-discuss
I done this using cmd as well as powershell but same error


On Tuesday, March 24, 2020 at 11:43:50 AM UTC+5:30, Lei Yang wrote:
Hi Yaskh, 
You can run it in your terminal, before running your PHP. Thanks!

On Mon, Mar 23, 2020 at 9:32 PM Ysakh Yp <rock...@gmail.com> wrote:
Hi bro
am new to this thing where run this export GOOGLE_APPLICATION_CREDENTIALS=your-downloaded-service-account-filename.json?
 i have downloaded that json file



On Tuesday, March 24, 2020 at 8:47:34 AM UTC+5:30, Lei Yang wrote:
Hi Yaskh,

Thanks for using video API.
Have you run 
export GOOGLE_APPLICATION_CREDENTIALS=your-downloaded-service-account-filename.json?

Thanks & Regards,
On Mon, Mar 23, 2020 at 7:59 PM Ysakh Yp <rock...@gmail.com> wrote:
while i tried to integrate am getting this error please help


Fatal error
: Uncaught DomainException: Could not load the default credentials. Browse to https://developers.google.com/accounts/docs/application-default-credentials for more information in H:\env\htdocs\vd\vendor\google\auth\src\ApplicationDefaultCredentials.php:171 Stack trace: #0 H:\env\htdocs\vd\vendor\google\gax\src\CredentialsWrapper.php(194): Google\Auth\ApplicationDefaultCredentials::getCredentials(Array, Object(Google\Auth\HttpHandler\Guzzle6HttpHandler), NULL, NULL) #1 H:\env\htdocs\vd\vendor\google\gax\src\CredentialsWrapper.php(113): Google\ApiCore\CredentialsWrapper::buildApplicationDefaultCredentials(Array, Object(Google\Auth\HttpHandler\Guzzle6HttpHandler)) #2 H:\env\htdocs\vd\vendor\google\gax\src\GapicClientTrait.php(339): Google\ApiCore\CredentialsWrapper::build(Array) #3 H:\env\htdocs\vd\vendor\google\gax\src\GapicClientTrait.php(321): Google\Cloud\VideoIntelligence\V1\Gapic\VideoIntelligenceServiceGapicClient->createCredentialsWrapper(NULL, Array) #4 H:\env\htdocs\vd\vendor\google\cloud-videointelligenc in H:\env\htdocs\vd\vendor\google\gax\src\CredentialsWrapper.php on line 200

--
© 2018 Google Inc. 1600 Amphitheatre Parkway, Mountain View, CA 94043
 
Email preferences: You received this email because you signed up for the Google Cloud Video Intelligence API Discussion Google Group (cloud-videoi...@googlegroups.com) to participate in discussions with other members of the Google Cloud Video Intelligence API community and the Google Cloud Video Intelligence API Team.
---
You received this message because you are subscribed to the Google Groups "cloud-videointel-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cloud-videointel-discuss+unsub...@googlegroups.com.


--

Lei Yang (杨蕾) | Software Engineer, Cloud AI --- Video Intelligence| yanga...@google.com | 650-214-4097

--
© 2018 Google Inc. 1600 Amphitheatre Parkway, Mountain View, CA 94043
 
Email preferences: You received this email because you signed up for the Google Cloud Video Intelligence API Discussion Google Group (cloud-videoi...@googlegroups.com) to participate in discussions with other members of the Google Cloud Video Intelligence API community and the Google Cloud Video Intelligence API Team.
---
You received this message because you are subscribed to the Google Groups "cloud-videointel-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cloud-videointel-discuss+unsub...@googlegroups.com.

Jun Lu

unread,
Mar 25, 2020, 2:22:21 PM3/25/20
to cloud-videointel-discuss
Hi, 

It is very possible that you did not run this export GOOGLE_APPLICATION_CREDENTIALS=your-downloaded-service-account-filename.json correctly from your end if you're still getting the same error as the error "Could not load the default credentials" points to the same cause of the issue

That being said, you might need to go to StackOverflow for technical questions providing more details in terms of the command you've run and also the output of the command as Google Groups are reserved for general product discussion.

To get a better support you should post to the relevant forum, thus please read the Community Support article for better understanding.



Reply all
Reply to author
Forward
0 new messages