Back

Entity too small when creating file in storage

  • 0
  • Self Hosted
  • Storage
obiwanzenobi
18 Sep, 2023, 20:33

yes this request fails

TL;DR
Issue: When creating a file in storage, the entity appears too small. Solution: A fix has been implemented and will soon be deployed on pub.dev. The fix has been confirmed to work for both cases - with and without a storage provider. If you encounter this issue, you can try the fix by following the instructions in the provided GitHub link. The fix has been tested on both local and storage provider environments and has shown success.
Drake
18 Sep, 2023, 20:39

no that bytes range in 0 based while the thing after the / is the length

obiwanzenobi
18 Sep, 2023, 20:47

hmm but i changed this

obiwanzenobi
18 Sep, 2023, 20:47

in sdk and there was no problem uploading

obiwanzenobi
18 Sep, 2023, 20:47

checking the file integrity

obiwanzenobi
18 Sep, 2023, 20:47

but it looks good

obiwanzenobi
18 Sep, 2023, 21:08

i dont have file with 3 chunks to test tho

Drake
18 Sep, 2023, 22:39

any chance you can test w/o using a storage provider?

obiwanzenobi
19 Sep, 2023, 05:18

yes, I will test it today on our dev environment, there is no storage provider

obiwanzenobi
19 Sep, 2023, 22:20

no problems with storage provider (and unchanged chunked upload client)

obiwanzenobi
19 Sep, 2023, 22:23

and if used modified chunked upload without storage provider I receive 500 and I see Failed to read chunk error in docker logs

obiwanzenobi
19 Sep, 2023, 22:23

for now I will create dart sdk fork with a useDigitalOceanStorage flag

obiwanzenobi
19 Sep, 2023, 22:24

because with the current 1.4.2 we need 2 different implementations (1 for w/o provider - our dev, 2 for digital ocean spaces - our prod)

Drake
19 Sep, 2023, 22:26

you mean the new sdk and appwrite 1.4.3 works fine without setting a storage provider?

obiwanzenobi
19 Sep, 2023, 22:28

1.4.2 - yes, new sdk = dart_appwrite: 10.0.0

obiwanzenobi
19 Sep, 2023, 22:29

will check on 1.4.3 after some time but as far as I saw in a release notes there was no changes in storage

obiwanzenobi
19 Sep, 2023, 22:59

With this changes (so sorry for format but I cannot resist) https://github.com/thecodebrothers/sdk-for-dart/commit/79b1c7e02a54ca873693c3f25d65a71118ce8c47 works on both: w/o storage provider and for digital ocean spaces

obiwanzenobi
19 Sep, 2023, 22:59

but of course problem could be on server side storage receiver

obiwanzenobi
19 Sep, 2023, 23:00

but maybe this would also help somebody

obiwanzenobi
19 Sep, 2023, 23:00

before the official fix

Drake
22 Sep, 2023, 00:42

hey would you be able to try this fix to see if it works for you for both local and storage provider? https://github.com/appwrite/sdk-generator/pull/719

obiwanzenobi
22 Sep, 2023, 16:44

Sorry, Been busy today, I will try this weekend

Drake
22 Sep, 2023, 17:59

thank you! πŸ™πŸΌ

obiwanzenobi
25 Sep, 2023, 22:33

@Steven I can confirm that it works for both - w/o storage provider and for Digital ocean, just tried on our dev and prod

obiwanzenobi
25 Sep, 2023, 22:34

thanks for the fix - cant wait for it to be deployed into pub.dev πŸ˜„

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