You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When setting up Memo to use Cloudflare R2, upon saving, it shows the following error on the screen:
Here's the console log:
memos | 2025/01/27 14:54:55 ERROR server error method=/memos.api.v1.ResourceService/CreateResource error="rpc error: code = Internal desc = failed to create resource: Error 1406 (22001): Data too long for column 'reference' at row 1"
After digging around, I think i know the issue: the reference column in resource name is not sufficient to store signed URL from Clouadlare R2. The usual Cloudflare R2 URL uses the https://[bucket].[account-id].r2.cloudflarestorage.com. Here's R2 sample link:
It has 427 charactes while the column were set only to varchar(256). I think we can just create a new migration to update the column to be TEXT for mysql. Waht do you think? I kinda want to send a PR for this.
Describe the bug
When setting up Memo to use Cloudflare R2, upon saving, it shows the following error on the screen:
Here's the console log:
After digging around, I think i know the issue: the
reference
column inresource
name is not sufficient to store signed URL from Clouadlare R2. The usual Cloudflare R2 URL uses thehttps://[bucket].[account-id].r2.cloudflarestorage.com
. Here's R2 sample link:It has 427 charactes while the column were set only to
varchar(256)
. I think we can just create a new migration to update the column to beTEXT
for mysql. Waht do you think? I kinda want to send a PR for this.Steps to reproduce
https://www.usememos.com/docs/advanced-settings/cloudflare-r2
The version of Memos you're using
v0.23.0
Screenshots or additional context
No response
The text was updated successfully, but these errors were encountered: