500 error while sync coupon
-
I am getting following error when I create a coupon:
{ "error": { "code": 500, "message": "Internal error", "errors": [ { "message": "Internal error", "domain": "global", "reason": "backendError" } ]
Coupon Code Page: https://app.screencast.com/703N5128O0HQV
Product Feed Page: https://app.screencast.com/xJ0enWXCy4pAc
- This topic was modified 1 year, 4 months ago by Saket Jajodia.
-
Hi there @dzire2dzine ??
Thank you for contacting Woo support!
I am getting following error when I create a coupon
A couple of places to check that things are in place, first:
- Showing coupons on Google Shopping listings is currently available in Australia, Canada, Germany, France, India, the United Kingdom, and the United States. Is your store selling in those parts of the world, or otherwise? Related documentation linked here, for reference.
- In WordPress back-end, at the screen under Marketing > Google Listings & Ads > Settings:
- Is the contact information set up, and verified?
- Are all 3 linked accounts linked and connected?
We await your response to better assist you.
Hi @anastas10s Yes to all from India
Hi @dzire2dzine ??
Yes to all from India
Thank you for clarifying that.
To help you further, I’d like to understand more about your setup.
Could you please send me a copy of your site’s System Status? You can find it via
WooCommerce > Status
. SelectGet system report
and thenCopy for support
.Once you’ve done that, you can paste it here or into our https://Quickforget.com service and send that secret link here.
Also, could you please navigate to
WooCommerce > Status > Logs
and from the dropdown on the right side, please see if there are any logs starting with the words fatal-error.If so, please select
View
and copy and paste them into your reply here.Looking forward to hearing from you!
@anastas10s there wasn’t anything useful in fatal-error but I found some in your plugin log, you can check both in below link: https://quickforget.com/s/4ce7028ea4512fa9a4751146fa9d633aca308c3e53b0bdc0
P.S. You guys should create a form to get data, something like this: https://docs.google.com/forms/d/1lhjns2K7c0Ny7ME4gxTcsnYtNUtcMr8BvFpPQi23Y1E/viewform?edit_requested=true
Hi @dzire2dzine,
Thanks for your response and suggestion. Unfortunately, I couldn’t access the log as it’s been forgotten. (Please share it again and increase the time).
Could you confirm if you’re seeing the error on all coupons or on specific ones?
@sukafia @anastas10s Hi guys, you should understand its a public forum, setting the time high will end the purpose of using it in the 1st place.
Yes, I am facing the same problem with all coupons.
2023-07-10T14:38:30+00:00 DEBUG Automattic\WooCommerce\GoogleListingsAndAds\Coupon\CouponSyncer::update Start to upload coupon (ID: 17361) as promotion structure: {"brand":null,"brandExclusion":null,"contentLanguage":"en","couponValueType":"PERCENT_OFF","freeGiftDescription":null,"freeGiftItemId":null,"genericRedemptionCode":"tryssf","getThisQuantityDiscounted":null,"id":null,"itemGroupId":null,"itemGroupIdExclusion":null,"itemId":null,"itemIdExclusion":null,"limitQuantity":null,"longTitle":"10% off","minimumPurchaseQuantity":null,"offerType":"GENERIC_CODE","orderLimit":null,"percentOff":10,"productApplicability":"ALL_PRODUCTS","productType":null,"productTypeExclusion":null,"promotionDestinationIds":["Shopping_ads","Free_listings"],"promotionDisplayDates":null,"promotionEffectiveDates":null,"promotionId":"gla_17361","promotionUrl":null,"redemptionChannel":"ONLINE","shippingServiceNames":null,"storeApplicability":null,"storeCode":null,"storeCodeExclusion":null,"targetCountry":"IN","promotionEffectiveTimePeriod":{"endTime":"2023-10-22T18:27:43+00:00","startTime":"2023-04-22T18:27:43+00:00"}}
2023-07-10T14:38:31+00:00 ERROR Automattic\WooCommerce\GoogleListingsAndAds\Coupon\CouponSyncer::handle_update_errors Internal API errors while submitting the following coupons: IN
2023-07-10T14:38:31+00:00 DEBUG Automattic\WooCommerce\GoogleListingsAndAds\Coupon\CouponSyncer::update Promotion failed to sync with Merchant Center:
{"woocommerce_id":17361,"errors":{"500":"{\n \"error\": {\n \"code\": 500,\n \"message\": \"Internal error\",\n \"errors\": [\n {\n \"message\": \"Internal error\",\n \"domain\": \"global\",\n \"reason\": \"backendError\"\n }\n ],\n \"status\": \"INTERNAL\",\n \"details\": [\n {\n \"@type\": \"type.googleapis.com\/google.rpc.ErrorInfo\",\n \"reason\": \"internalError\",\n \"domain\": \"global\"\n }\n ]\n }\n}\n"},"google_target_country":"IN"}- This reply was modified 1 year, 4 months ago by Saket Jajodia.
### WordPress Environment ### WordPress address (URL): https://ssfurnishings.com Site address (URL): https://ssfurnishings.com WC Version: 7.8.2 REST API Version: ? 7.8.2 WC Blocks Version: ? 10.2.4 Action Scheduler Version: ? 3.6.1 Log Directory Writable: ? WP Version: 6.2.2 WP Multisite: ? WP Memory Limit: 1 GB WP Debug Mode: – WP Cron: ? Language: en_US External object cache: ? ### Server Environment ### Server Info: Apache mod_bwlimited/1.4 Phusion_Passenger/6.0.18 PHP Version: 8.1.20 PHP Post Max Size: 1 GB PHP Time Limit: 30000 PHP Max Input Vars: 10000 cURL Version: 7.87.0 OpenSSL/1.1.1p SUHOSIN Installed: – MySQL Version: 5.7.42 Max Upload Size: 15 MB Default Timezone is UTC: ? fsockopen/cURL: ? SoapClient: ? DOMDocument: ? GZip: ? Multibyte String: ? Remote Post: ? Remote Get: ? ### Database ### WC Database Version: 7.8.2 WC Database Prefix: **_**_ Total Database Size: 79.79MB Database Data Size: 65.06MB Database Index Size: 14.73MB **_**_woocommerce_sessions: Data: 1.15MB + Index: 0.03MB + Engine MyISAM **_**_woocommerce_api_keys: Data: 0.00MB + Index: 0.01MB + Engine MyISAM **_**_woocommerce_attribute_taxonomies: Data: 0.00MB + Index: 0.00MB + Engine MyISAM **_**_woocommerce_downloadable_product_permissions: Data: 0.00MB + Index: 0.00MB + Engine MyISAM **_**_woocommerce_order_items: Data: 0.00MB + Index: 0.01MB + Engine MyISAM **_**_woocommerce_order_itemmeta: Data: 0.03MB + Index: 0.02MB + Engine MyISAM **_**_woocommerce_tax_rates: Data: 0.02MB + Index: 0.02MB + Engine MyISAM **_**_woocommerce_tax_rate_locations: Data: 0.00MB + Index: 0.00MB + Engine MyISAM **_**_woocommerce_shipping_zones: Data: 0.00MB + Index: 0.00MB + Engine MyISAM **_**_woocommerce_shipping_zone_locations: Data: 0.00MB + Index: 0.00MB + Engine MyISAM **_**_woocommerce_shipping_zone_methods: Data: 0.00MB + Index: 0.00MB + Engine MyISAM **_**_woocommerce_payment_tokens: Data: 0.00MB + Index: 0.00MB + Engine MyISAM **_**_woocommerce_payment_tokenmeta: Data: 0.00MB + Index: 0.00MB + Engine MyISAM **_**_woocommerce_log: Data: 0.00MB + Index: 0.00MB + Engine MyISAM **_**_actionscheduler_actions: Data: 3.05MB + Index: 0.71MB + Engine MyISAM **_**_actionscheduler_claims: Data: 0.00MB + Index: 0.00MB + Engine MyISAM **_**_actionscheduler_groups: Data: 0.00MB + Index: 0.01MB + Engine MyISAM **_**_actionscheduler_logs: Data: 1.77MB + Index: 1.17MB + Engine MyISAM **_**_blc_instances: Data: 0.00MB + Index: 0.00MB + Engine MyISAM **_**_blc_links: Data: 0.00MB + Index: 0.01MB + Engine MyISAM **_**_blc_synch: Data: 0.00MB + Index: 0.00MB + Engine MyISAM **_**_commentmeta: Data: 1.59MB + Index: 0.70MB + Engine MyISAM **_**_comments: Data: 0.66MB + Index: 0.18MB + Engine MyISAM **_**_commercekit_searches: Data: 0.00MB + Index: 0.00MB + Engine MyISAM **_**_commercekit_swatches_cache_count: Data: 0.00MB + Index: 0.00MB + Engine MyISAM **_**_commercekit_waitlist: Data: 0.00MB + Index: 0.00MB + Engine MyISAM **_**_commercekit_wishlist: Data: 0.00MB + Index: 0.00MB + Engine MyISAM **_**_commercekit_wishlist_items: Data: 0.00MB + Index: 0.00MB + Engine MyISAM **_**_e_events: Data: 0.00MB + Index: 0.00MB + Engine MyISAM **_**_gla_attribute_mapping_rules: Data: 0.00MB + Index: 0.00MB + Engine MyISAM **_**_gla_budget_recommendations: Data: 0.11MB + Index: 0.10MB + Engine MyISAM **_**_gla_merchant_issues: Data: 0.01MB + Index: 0.00MB + Engine MyISAM **_**_gla_shipping_rates: Data: 0.00MB + Index: 0.00MB + Engine MyISAM **_**_gla_shipping_times: Data: 0.00MB + Index: 0.00MB + Engine MyISAM **_**_jetpack_waf_blocklog: Data: 0.00MB + Index: 0.00MB + Engine MyISAM **_**_links: Data: 0.00MB + Index: 0.00MB + Engine MyISAM **_**_loginlog: Data: 0.32MB + Index: 0.06MB + Engine MyISAM **_**_options: Data: 5.31MB + Index: 0.19MB + Engine MyISAM **_**_paytm_order_data: Data: 0.00MB + Index: 0.00MB + Engine MyISAM **_**_pmxe_exports: Data: 0.04MB + Index: 0.00MB + Engine MyISAM **_**_pmxe_google_cats: Data: 0.26MB + Index: 0.05MB + Engine MyISAM **_**_pmxe_posts: Data: 0.00MB + Index: 0.00MB + Engine MyISAM **_**_pmxe_templates: Data: 0.00MB + Index: 0.00MB + Engine MyISAM **_**_pmxi_files: Data: 0.00MB + Index: 0.00MB + Engine MyISAM **_**_pmxi_hash: Data: 0.00MB + Index: 0.00MB + Engine MyISAM **_**_pmxi_history: Data: 0.00MB + Index: 0.00MB + Engine MyISAM **_**_pmxi_images: Data: 0.00MB + Index: 0.00MB + Engine MyISAM **_**_pmxi_imports: Data: 0.02MB + Index: 0.00MB + Engine MyISAM **_**_pmxi_posts: Data: 0.00MB + Index: 0.00MB + Engine MyISAM **_**_pmxi_templates: Data: 0.00MB + Index: 0.00MB + Engine MyISAM **_**_postmeta: Data: 36.95MB + Index: 5.63MB + Engine MyISAM **_**_posts: Data: 7.07MB + Index: 0.70MB + Engine MyISAM **_**_rank_math_404_logs: Data: 0.00MB + Index: 0.01MB + Engine MyISAM **_**_rank_math_analytics_ga: Data: 0.00MB + Index: 0.00MB + Engine MyISAM **_**_rank_math_analytics_gsc: Data: 0.43MB + Index: 0.16MB + Engine MyISAM **_**_rank_math_analytics_inspections: Data: 0.43MB + Index: 0.14MB + Engine MyISAM **_**_rank_math_analytics_keyword_manager: Data: 0.14MB + Index: 0.04MB + Engine MyISAM **_**_rank_math_analytics_objects: Data: 0.51MB + Index: 0.16MB + Engine MyISAM **_**_rank_math_internal_links: Data: 0.07MB + Index: 0.01MB + Engine MyISAM **_**_rank_math_internal_meta: Data: 0.04MB + Index: 0.03MB + Engine MyISAM **_**_rank_math_redirections: Data: 0.04MB + Index: 0.00MB + Engine MyISAM **_**_rank_math_redirections_cache: Data: 0.03MB + Index: 0.01MB + Engine MyISAM **_**_termmeta: Data: 0.26MB + Index: 0.13MB + Engine MyISAM **_**_terms: Data: 0.06MB + Index: 0.09MB + Engine MyISAM **_**_term_relationships: Data: 1.44MB + Index: 2.56MB + Engine MyISAM **_**_term_taxonomy: Data: 0.06MB + Index: 0.05MB + Engine MyISAM **_**_wcpdf_invoice_number: Data: 0.00MB + Index: 0.00MB + Engine MyISAM **_**_wcpdf_packing_slip_number: Data: 0.00MB + Index: 0.00MB + Engine MyISAM **_**_wc_admin_notes: Data: 0.05MB + Index: 0.00MB + Engine MyISAM **_**_wc_admin_note_actions: Data: 0.03MB + Index: 0.01MB + Engine MyISAM **_**_wc_category_lookup: Data: 0.00MB + Index: 0.00MB + Engine MyISAM **_**_wc_customer_lookup: Data: 0.00MB + Index: 0.01MB + Engine MyISAM **_**_wc_download_log: Data: 0.00MB + Index: 0.00MB + Engine MyISAM **_**_wc_order_coupon_lookup: Data: 0.00MB + Index: 0.00MB + Engine MyISAM **_**_wc_order_product_lookup: Data: 0.00MB + Index: 0.01MB + Engine MyISAM **_**_wc_order_stats: Data: 0.00MB + Index: 0.01MB + Engine MyISAM **_**_wc_order_tax_lookup: Data: 0.00MB + Index: 0.00MB + Engine MyISAM **_**_wc_product_attributes_lookup: Data: 1.33MB + Index: 1.45MB + Engine MyISAM **_**_wc_product_download_directories: Data: 0.00MB + Index: 0.00MB + Engine MyISAM **_**_wc_product_meta_lookup: Data: 0.16MB + Index: 0.12MB + Engine MyISAM **_**_wc_rate_limits: Data: 0.00MB + Index: 0.00MB + Engine MyISAM **_**_wc_reserved_stock: Data: 0.00MB + Index: 0.00MB + Engine MyISAM **_**_wc_tax_rate_classes: Data: 0.00MB + Index: 0.01MB + Engine MyISAM **_**_wc_webhooks: Data: 0.00MB + Index: 0.00MB + Engine MyISAM **_**_wt_iew_action_history: Data: 0.05MB + Index: 0.00MB + Engine MyISAM **_**_wt_iew_mapping_template: Data: 0.00MB + Index: 0.00MB + Engine MyISAM **_blogmeta: Data: 0.00MB + Index: 0.01MB + Engine MyISAM **_blogs: Data: 0.00MB + Index: 0.00MB + Engine MyISAM **_registration_log: Data: 0.00MB + Index: 0.00MB + Engine MyISAM **_signups: Data: 0.00MB + Index: 0.01MB + Engine MyISAM **_site: Data: 0.00MB + Index: 0.01MB + Engine MyISAM **_sitemeta: Data: 1.42MB + Index: 0.03MB + Engine MyISAM **_usermeta: Data: 0.14MB + Index: 0.05MB + Engine MyISAM **_users: Data: 0.01MB + Index: 0.01MB + Engine MyISAM ### Post Type Counts ### attachment: 4345 ckit_size_guide: 1 custom_css: 3 customize_changeset: 21 elementor_library: 8 jb_store_css: 10 jetpack_migration: 2 mailpoet_page: 1 nav_menu_item: 547 oembed_cache: 33 page: 39 post: 9 product: 1753 product_variation: 11 rank_math_locations: 1 rank_math_schema: 3 revision: 355 shop_coupon: 6 shop_order: 21 shop_order_refund: 1 wp_block: 1 wp_global_styles: 3 wp_navigation: 1 wpc_product_faq: 10 wpclv: 44 wpcode: 4 ### Security ### Secure connection (HTTPS): ? Hide errors from visitors: ? ### Active Plugins (26) ### Claim Gst: by Cozy Vision Technologies Pvt. Ltd. – 1.3.3 CommerceGurus CommerceKit: by CommerceGurus – 2.2.4 Elementor: by Elementor.com – 3.14.1 Facebook for WooCommerce: by Facebook – 3.0.27 Google Listings and Ads: by WooCommerce – 2.4.10 Kirki Customizer Framework: by Themeum – 4.2.0 One Click Demo Import: by OCDI – 3.1.2 Paytm WooCommerce Payment Gateway: by Paytm – 2.7.9 Rank Math SEO PRO: by Rank Math – 3.0.39 Rank Math SEO: by Rank Math – 1.0.118 Razorpay for WooCommerce: by Team Razorpay – 4.5.3 WooCommerce Google Analytics Integration: by WooCommerce – 1.8.2 PDF Invoices & Packing Slips for WooCommerce: by WP Overnight – 3.5.6 WooCommerce Photo Reviews Premium: by VillaTheme – 1.3.10.6 WooCommerce: by Automattic – 7.8.2 WPC Linked Variation for WooCommerce: by WPClever – 4.1.0 WPC Price by Quantity for WooCommerce: by WPClever – 4.0.8 WPC Product FAQs for WooCommerce: by WPClever – 2.1.3 Limit Login Attempts Reloaded: by Limit Login Attempts Reloaded – 2.25.20 WP-DBManager: by Lester 'GaMerZ' Chan – 2.80.9 Login Logger: by Stephen Merriman – 1.2.1 Akismet Anti-Spam: Spam Protection: by Automattic - Anti Spam Team – 5.2 WP-Optimize - Clean, Compress, Cache: by David Anderson Ruhani Rabin Team Updraft – 3.2.16 Jetpack: by Automattic – 12.3 Health Check & Troubleshooting: by The www.ads-software.com community – 1.6.0 W3 Total Cache: by BoldGrid – 2.3.3 ### Inactive Plugins (26) ### ***** ### Dropin Plugins (4) ### advanced-cache.php: advanced-cache.php db.php: db.php maintenance.php: maintenance.php object-cache.php: object-cache.php ### Must Use Plugins (1) ### Health Check Troubleshooting Mode: by – 1.9.0 ### Settings ### API Enabled: – Force SSL: – Currency: INR (?) Currency Position: left Thousand Separator: , Decimal Separator: . Number of Decimals: 2 Taxonomies: Product Types: external (external) grouped (grouped) simple (simple) variable (variable) Taxonomies: Product Visibility: exclude-from-catalog (exclude-from-catalog) exclude-from-search (exclude-from-search) featured (featured) outofstock (outofstock) rated-1 (rated-1) rated-2 (rated-2) rated-3 (rated-3) rated-4 (rated-4) rated-5 (rated-5) Connected to WooCommerce.com: ? Enforce Approved Product Download Directories: ? HPOS feature screen enabled: – HPOS feature enabled: – Order datastore: WC_Order_Data_Store_CPT HPOS data sync enabled: – ### WC Pages ### Shop base: #5 - /shop/ Cart: #6 - /my-account/cart/ Checkout: #7 - /my-account/checkout/ My account: #8 - /my-account/ Terms and conditions: #112 - /policy/terms/ ### Theme ### Name: Shoptimizer Child Theme - SSF Version: 1.2.1.D2D.48 Author URL: Child Theme: ? Parent Theme Name: Shoptimizer Parent Theme Version: 2.6.7 Parent Theme Author URL: https://www.commercegurus.com/ WooCommerce Support: ? ### Templates ### Overrides: shoptimizer-child-ssf/woocommerce/cart/cart.php shoptimizer-child-ssf/woocommerce/single-product/product-attributes.php ### Admin ### Enabled Features: activity-panels analytics product-block-editor coupons customer-effort-score-tracks import-products-task experimental-fashion-sample-products shipping-smart-defaults shipping-setting-tour homescreen marketing mobile-app-banner navigation onboarding onboarding-tasks remote-inbox-notifications remote-free-extensions payment-gateway-suggestions shipping-label-banner subscriptions store-alerts transient-notices woo-mobile-welcome wc-pay-promotion wc-pay-welcome-page Disabled Features: core-profiler minified-js new-product-management-experience product-variation-management settings async-product-editor-category-field Daily Cron: ? Next scheduled: 2023-07-10 17:59:24 +05:30 Options: ? Notes: 144 Onboarding: completed ### Action Scheduler ### Complete: 8,766 Oldest: 2023-06-09 19:59:37 +0530 Newest: 2023-07-10 19:43:22 +0530 Failed: 1,130 Oldest: 2022-09-15 07:51:29 +0530 Newest: 2023-07-06 01:35:41 +0530 Pending: 7 Oldest: 2023-07-10 19:58:22 +0530 Newest: 2023-08-07 05:30:56 +0530 ### Status report information ### Generated at: 2023-07-10 19:52:02 +05:30
Hi @dzire2dzine,
Thanks for the additional information.
Circling back to the initial screenshot, I see no products have been synced to Google Merchant Center. Since coupons are synced alongside products, I’d recommend resolving the issue impacting products sync on your site to see if that resolves the issue.
Please check the account issue (screenshot) and resolve it to ensure your products are synced to Google Merchant Center. If the issue persists afterwards, the suggestion action “read more about this issue” should provide additional insights on the issue. (You can share the linked documentation here with us. The error returned is generic but the linked documentation should provide better insight).
For clarification, I’m unable to replicate the issue on my end so I suspect it’s related to the account issue. We’ll be able to help further once that’s resolved and products are synced to Google Merchant Center.
@sukafia I have over 1000+ active products listed in GMC & the account issue is non related (its there for lifetime I guess, already spoke to Google)
https://app.screencast.com/YHItVs0VKrOLY (WP Product Feed)
https://app.screencast.com/pPkt02G3OdDmF (GMC Diagnostics)Hi @dzire2dzine
From the logs you’ve shared, it seems like there’s an issue with the Google Listings and Ads plugin’s CouponSyncer function while trying to upload your coupon to Google Merchant Center. The error message indicates an internal error (HTTP 500) on the backend.
The 500 error you’re experiencing is generally a server-side issue, which means it’s something happening on your website’s server, not with the plugin itself. This error message indicates an “Internal error” and is often linked to server configuration or resource limitations.
Google’s API could also potentially contribute to this issue. Although you can’t directly rectify this from your end, we can certainly help you troubleshoot. Let’s take a few steps together to resolve this concern:
- Update your plugins and themes: Ensure that all of your plugins, themes, and WordPress itself are up-to-date. This includes the WooCommerce and Google Listings and Ads plugins.
- Check your server logs: If possible, take a look at your server logs around the time the error occurred. They might provide more details about what’s going wrong.
- Contact Google Support: Since the error is coming from Google’s end, it might be helpful to contact Google Merchant Center support. They may be able to provide more insight into the error. You can also click on “Read more about this issue” to learn how to fix the issue.
- Try resyncing your coupons: Navigate to Google Listings and Ads settings, and try to manually resync your coupons.
If the problem persists after trying these steps, please get back to us with any additional information you have so we can assist you further.
Additionally, please can you share a copy of the following:
- Fatal Error log: Share a copy of any fatal error log found under WooCommerce → Status → Logs.
You could copy and paste your reply here or paste it via https://gist.github.com/ and send the link here. This report will provide us with more details about your website’s environment and help us diagnose the issue further.
We appreciate your patience and cooperation. Thanks!
- The topic ‘500 error while sync coupon’ is closed to new replies.