-
Notifications
You must be signed in to change notification settings - Fork 44
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Strapi warning 'uploadStream function' and upload error #43
Comments
Hello @brunoshine I haven't been actively following Strapi changes recently. It looks like there might have been some updates that require a change. Though the error you have posted makes me think that there might be a config issue. Specifically the |
Hi @jakeFeldman - I'm getting the same error as @brunoshine.
Here's my configuration:
Versions: Please let me know if my configuration looks wrong. |
@t3custom Hi thanks for reporting. The config looks correct. Can you confirm that images are/are not being uploaded? The console output shows this as a warning.
To be transparent I haven't tested with the newest version of strapi. I would welcome a PR to implement the |
Hi @jakeFeldman - Yes I can confirm that the images are being uploaded. I'll mess with implementing when I get through this project. |
Awesome! Thanks @t3custom! |
Hi - Any update regarding this? i am also getting broken thumbnails. I think it has to do with the path of thumbnail |
Dear @jakeFeldman, I'm using your plugin with the new version of Strapi v4.2.0 that allows you to update a custom logo in the Strapi Dashboard and I was struggling with a response error 500 from Strapi. Please take a look inside the Chagelog ( https://strapi.io/blog/announcing-strapi-v4.2 ) At this point I found a workaround for fix this issue but could be nice if you can please update the library with the function By the way this is what I did for fixing the error and to be capable to Update my custom logo on Strapi v4.2.0, let's start! 🚀 This is the Strapi Console error: At this point I implemented this code inside the file located in this path
This is the all code in the context:
Of course this is a workaround but still I fixed my problem with the new version of Strapi v4.2.0 I hope to help someone that has the same issue but please @jakeFeldman 🙏 update the library for removing the Warning and fix the issue because this Best wishes and thank you for did this integration! Regards |
Dear @jakeFeldman I reinforce Francesco's request, thanks in advance, and thanks for the plugin. Regards |
But that is just a warning? It recovers? You can still use the plugin right?
…On Tue, May 24, 2022 at 12:46 AM t3custom ***@***.***> wrote:
Hi @jakeFeldman <https://github.com/jakeFeldman> - I'm getting the same
error as @brunoshine <https://github.com/brunoshine>.
(node:72272) Warning: The upload provider
"strapi-provider-upload-azure-storage" doesn't implement the uploadStream
function. Strapi will fallback on the upload method. Some performance
issues may occur. at createProvider
***@***.***/plugin-upload/server/register.js:58:13)
at Object.module.exports [as register]
***@***.***/plugin-upload/server/register.js:11:38)
at Object.register
***@***.***/strapi/lib/core/domain/module/index.js:47:46)
at Object.register
***@***.***/strapi/lib/core/registries/modules.js:33:19)
at async Strapi.runLifecyclesFunctions
***@***.***/strapi/lib/Strapi.js:479:5)
at async Strapi.register
***@***.***/strapi/lib/Strapi.js:350:5)
at async Strapi.load
***@***.***/strapi/lib/Strapi.js:425:5)
at async Strapi.start
***@***.***/strapi/lib/Strapi.js:169:9)
Here's my configuration:
module.exports = ({ env }) => ({ upload: { config: { provider:
'strapi-provider-upload-azure-storage', providerOptions: { account:
env('STORAGE_ACCOUNT'), accountKey: env('STORAGE_ACCOUNT_KEY'),
containerName: env('STORAGE_CONTAINER_NAME'), defaultPath: 'assets',
maxConcurrent: 10 } } } });
Versions:
@strapi/strapi: 4.1.11
strapi-provider-upload-azure-storage: ^2.0.0
Please let me know if my configuration looks wrong.
—
Reply to this email directly, view it on GitHub
<#43 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABHLFSKREZWVOZ2XAM5MP6LVLRNLXANCNFSM5V5JPQKA>
.
You are receiving this because you are subscribed to this thread.Message
ID: <jakeFeldman/strapi-provider-upload-azure-storage/issues/43/1135402981
@github.com>
--
From the personal email account of Steve Scott.
|
Hey @SteveScott! The Media logic I only had some problems with the new version of Strapi 4.2.0 that has inside the release a cool feature for changing the Logo inside the Dashboard and for doing it it use a This is the context from Strapi Dashboard: Please take a look here: https://github.com/jakeFeldman/strapi-provider-upload-azure-storage/blob/master/lib/index.js in this point of the code, from line 57:
The function I hope I have been as clear as possible! Regards |
Version 2.1.0 has been published w/ support for |
Hi,
I'm starting a fresh build of a strapi instance and have added the strapi-provider-upload-azure-storage and made the changes to the plugins.js file.
When starting strapi with
npm run develop
I get the following warning:Warning: The upload provider "strapi-provider-upload-azure-storage" doesn't implement the uploadStream function. Strapi will fallback on the upload method. Some performance issues may occur.
When I try to upload a file I get:
error: <?xml version="1.0" encoding="UTF-8" standalone="yes"?> <Error> <Code>InvalidOperation</Code> <Message>Invalid storage account. RequestId:11864a50-8c43-49bf-b6a9-1a42fdd24d6f Time:2022-05-14T09:01:37.323Z</Message> </Error> Error: <?xml version="1.0" encoding="UTF-8" standalone="yes"?> <Error> <Code>InvalidOperation</Code> <Message>Invalid storage account. RequestId:11864a50-8c43-49bf-b6a9-1a42fdd24d6f Time:2022-05-14T09:01:37.323Z</Message> </Error> at new RestError (/home/bfigueir/_work/afs/strapi_bo/afs/node_modules/@azure/ms-rest-js/dist/msRest.node.js:2480:28) at /home/bfigueir/_work/afs/strapi_bo/afs/node_modules/@azure/ms-rest-js/dist/msRest.node.js:3687:37 at processTicksAndRejections (node:internal/process/task_queues:96:5)
I've tried with both local account (via azurite) and azure account. I've tested the credentials (for both) using Azure Storage Explorer with success.
Any thoughts? Thanks
strapi-provider-upload-azure-storage: ^2.0.0
Strapi:
Version │ 4.1.9 (node v16.10.0) │
Edition │ Community
The text was updated successfully, but these errors were encountered: