Skip to content

Internal error encountered. - not catchable #932

@chiragvels

Description

@chiragvels

[DO NOT INCLUDE ANY PERSONAL OR SENSITIVE DATA - MAKE SURE TO REDACT CONTENT WHEN NECESSARY]

Your question:
The encountered internal error is not catchable. I attempted to catch the error using various methods, but but it was not catchable. Instead, it simply breaks the cron process.

try {
     $googleAdsServiceClient = $googleAdsClient->getGoogleAdsServiceClient();
} catch (GoogleAdsException $googleAdsException) {
            throw $googleAdsException;
        } catch (ApiException $apiException) {
            throw $apiException;
        } catch (Exception $e) {
            throw $e;
        }

Private Reply by forum:

Can you confirm if you are using the PHP client library? If yes, with regards to your concern, since your concern is more on the code implementation on how to catch this kind of exception error in the Google Ads API PHP client library, you may try reaching out to the developer who maintains our client libraries PHP (Github Issues) via this link (https://github.com/googleads/google-ads-php/issues) for further insights on how to catch this kind of error.

Reference: https://groups.google.com/g/adwords-api/c/tkvPnT-fmMo/m/IYS31igSAgAJ

How I can catch error which falls under Internal error encountered.

Thanks,

Metadata

Metadata

Assignees

Labels

questionFurther information is requestedtriageNeed triage

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions