UTF-8 error using addFileFromStream function on vapor #186
Unanswered
danielbalado
asked this question in
Q&A
Replies: 1 comment 4 replies
-
Can you try to modify this line and add JSON_INVALID_UTF8_IGNORE or JSON_INVALID_UTF8_SUBSTITUTE as json_encode options? |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello,
I have been using ZipStream-PHP (2.1.0) to generate a zip file from resources from as S3 based bucket (in our case, digital ocean). Everything worked perfectly while working localy, but I started experiencing some issues after deploying the feature to staging using laravel vapor. In the logs I see the following:
It seems this Exception is only triggered when using the function 'addFileFromStream'. Other methods to add files to the zip work fine. Here is my code for reference:
I thought it could be related with the readStream function, so I tried loading the resource using fopen, but the result was the same (works locally but not on vapor).
Is there any action I can take to correct this encoding issue? I have also contacted the Vapor team to confirm if the issue would be in the readStream function, so I'll keep you posted if that's the case
Beta Was this translation helpful? Give feedback.
All reactions