Back

Invalid document structure: Attribute "metadata" has invalid type. Value must be a valid string

  • 1
  • Self Hosted
Drake
12 Jan, 2024, 04:19

Have you ever had any other version of Appwrite installed?

TL;DR
Developers are experiencing an error when trying to upload a large zip file. The error message says "Invalid document structure: Attribute 'metadata' has invalid type. Value must be a valid string." They have verified that the maximum file size is set correctly and are using Appwrite version 1.4.13. There is no preferred way to upload large files, so they are trying to upload through the console. Progress stops at some point and the error appears when trying to create a file in the storage tab. The suggested solution is to check the network tab in the browser dev tools for more information.
Drake
12 Jan, 2024, 04:19

Where are you seeing that metadata error?

KeekoDev
12 Jan, 2024, 04:19

No only this one

KeekoDev
12 Jan, 2024, 04:20

After uploading a file progress stops at some point and then when clicking on create a file in the storage tab it shows the error at the top.

KeekoDev
12 Jan, 2024, 04:20

I can get a screenshot if that helps

Drake
12 Jan, 2024, 04:21

Stops? It might have still been uploading 🧐

Maybe you can try uploading again after opening the browser dev tools and looking at the network tab

KeekoDev
12 Jan, 2024, 04:22

I left the file uploading overnight yesterday and came back to it stuck at 50%, I'll try to see if theres anything there that gives more info. If not I suppose I'll just try with the SDK instead.

Drake
12 Jan, 2024, 04:26

Interesting....

KeekoDev
12 Jan, 2024, 04:26

I have it uploading again, I'll reply back with what it shows in the network tab

KeekoDev
12 Jan, 2024, 04:28
KeekoDev
12 Jan, 2024, 04:29
KeekoDev
12 Jan, 2024, 04:29

getting screenshot for the 400

KeekoDev
12 Jan, 2024, 04:29
KeekoDev
12 Jan, 2024, 04:30
KeekoDev
12 Jan, 2024, 04:31

Let me know 🙌

KeekoDev
12 Jan, 2024, 04:35

I’ve had success uploading other smaller zip files, largest one was about 500mb. I will try with a different larger zip and see if it’s the same.

Drake
12 Jan, 2024, 04:38

You're using a 3rd party storage provider?

KeekoDev
12 Jan, 2024, 04:38

Digital ocean yes

KeekoDev
12 Jan, 2024, 04:38

Could be a DO issue?

Drake
12 Jan, 2024, 04:49

Nah, looks like a bug... Would you be able to create a GitHub issue?

KeekoDev
12 Jan, 2024, 04:49

Haven't done one before but I can give it a go

KeekoDev
12 Jan, 2024, 04:54

form looks simple enough, should be no problem.

Drake
12 Jan, 2024, 04:55

Just make sure to include that your using a 3rd party provider and it's a big file

KeekoDev
12 Jan, 2024, 04:55

gotcha

Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more