V8-archive: azure blob storage Could not rewind stream

Created on 22 Jul 2020  Â·  7Comments  Â·  Source: directus/v8-archive

Hello, and thank you for taking the time to notify the community of this issue. Please ensure you are on the latest version of Directus and be as detailed as possible so that we can resolve the problem efficiently, including...

• Version of Directus :8.8.0
• Server, OS & Database Details: ubuntu 16.04.6 mysql 5.7
• Error Messages: {"error":{"code":null,"message":"Could not rewind stream"}}
• Steps to Reproduce:

  • azure as storage adapter in config file
  • enter the the azure_connection_string and azure_container
  • upload files in file library it will proceed in uploading but when you edit the file and open the link provided
    image

It will show an could not rewind stream error
image

corresponding error log
image

api

Most helpful comment

Okay. Sorry for the flood, but another update: it comes from the library flysystem-aws-s3-v3. Downgrading to v1.0.27 fixes the issue! Surely coming from the stream option that is now true by default.

All 7 comments

I have the same problem in S3.

Same issue here 🙋‍♂️ with Backblaze B2 (S3 compatible) - version 8.8.1 (latest in date)

Also tried with Google Cloud Storage (S3 compatible as well), same error: "{"error":{"code":null,"message":"Could not rewind stream"}}"

Little update: It seems to work when reverting back to version 8.5.0 (not 8.7.2 tho). So something changed between those two versions. Is it related to Slim? Any idea @benhaynes @rijkvanzanten?

Okay. Sorry for the flood, but another update: it comes from the library flysystem-aws-s3-v3. Downgrading to v1.0.27 fixes the issue! Surely coming from the stream option that is now true by default.

@flayks you're a lifesaver, thank you! I was having the same issue with AWS s3. Rolling back to v1.0.27 helped.

has anyone found a solution for azure?

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Nitwel picture Nitwel  Â·  3Comments

binary-koan picture binary-koan  Â·  3Comments

Varulv1997 picture Varulv1997  Â·  3Comments

cdwmhcc picture cdwmhcc  Â·  3Comments

cdwmhcc picture cdwmhcc  Â·  3Comments