Invalid Length for a Base-64 Char Array or String
This article addresses the “Invalid Length for a Base-64 Char Array or String” error that may occur while using the Webgility Extension to manage cart connections in Webgility Online. The error typically arises during order downloads or when testing store connections. It explains the common causes of this issue, such as mismatched URL protocols (HTTP vs. HTTPS) or outdated Webgility Extension URLs. The article also provides step-by-step troubleshooting instructions to verify and update connection settings, confirm the correct extension URL, and ensure that the latest version of the Webgility Extension is installed for stable and accurate store communication.
Error Message:
Invalid Length for a Base-64 Char Array or String

When using the Webgility Extension to manage cart connections, you might encounter Base64 errors, especially when downloading orders or testing the store connection.
Common Causes of Base64 Errors:
1). Inconsistent URL Protocol (HTTP/HTTPS):
Base64 errors can occur if the Webgility Extension URL uses a different protocol (HTTP or HTTPS) than the one configured for your website.
2). Incorrect or Outdated Webgility Extension URL:
Using an outdated or incorrect Webgility Extension URL can trigger these errors. It’s essential to ensure that the URL is both accurate and up-to-date for proper integration.
Troubleshooting Steps:
1). Verify the URL Protocol:
-
Check the Webgility Extension URL's protocol (HTTP or HTTPS) in the Webgility Online Integration settings.
-
Ensure it matches your website's protocol.
-
Go to Settings> Connection> Edit> Update Credentials. Try switching between HTTP and HTTPS, then test the connection.
2). Confirm Webgility Extension URL:
-
Validate the Webgility Extension URL by accessing the latest URL from the store directly.
-
Update it in the Webgility Online Integration settings.
3). Update Webgility Extension:
-
Make sure your Webgility Extension is running the latest version.
-
Download and install the most recent version from your Webgility Portal Account by navigating to Home > Download Section > Modules.
-
If you need help, contact your developer.