Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Images in Past Templates Fail to Load #433

Open
hiroshimuto9 opened this issue Nov 8, 2024 · 1 comment
Open

Images in Past Templates Fail to Load #433

hiroshimuto9 opened this issue Nov 8, 2024 · 1 comment

Comments

@hiroshimuto9
Copy link

1. Problem Overview

When using the react-email-editor visual editor, images in previously created templates fail to load. The following types of image URLs return errors when accessed:

  • https://assets.unlayer.com/stock-templates/xxxx
  • https://assets.unlayer.com/projects/0/xxxx

This issue prevents past templates from being displayed correctly, making it difficult to edit or reuse them.

2. Detailed Explanation

Environment

  • react-email-editor version: 1.7.11 (released on 2024-06-27)

Error Details

When accessing the image URLs directly in a browser, the following error messages appear:

Error Type 1:

<Error data-google-analytics-opt-out="">
<Code/>
<Message/>
<RequestId>xxxx</RequestId>
<HostId>{host-id}</HostId>
<LambdaGeneratedError>true</LambdaGeneratedError>
</Error>

Error Type 2:

<Error data-google-analytics-opt-out="">
<Code>BandwidthLimitExceeded</Code>
<Message>This asset is no longer accessible due to bandwidth limits for anonymous usage. To upload assets that remain accessible in the future, please create a project.</Message>
<RequestId>xxxxx</RequestId>
<HostId>{host-id}</HostId>
<LambdaGeneratedError>true</LambdaGeneratedError>
</Error>

Error Conditions:

Occurrence: The issue arises when attempting to load images included in templates created in the past.
Result: Images fail to load, either showing a 404 or 403 error in the browser.

3. Possible Cause

The error type 2 message indicates that the image assets are no longer accessible due to bandwidth limits imposed on anonymous usage. This suggests that Unlayer's service restricts access to image resources once a certain bandwidth threshold is exceeded.

4. Expected Behavior

Previously created templates should load images correctly, and their associated resources should remain accessible for:

  • Editing
  • Previewing
  • Reuse in new templates

5. Additional Information

I have already contacted Unlayer's support team regarding this issue. If anyone else has encountered a similar problem and identified the root cause or a solution, I would greatly appreciate it if you could share your findings here.

スクリーンショット 2024-11-08 12 26 29
@radozeman
Copy link

radozeman commented Dec 4, 2024

Same issue happend to me, do you have any updates?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants