strapi-provider-upload-azure-storage icon indicating copy to clipboard operation
strapi-provider-upload-azure-storage copied to clipboard

[bug] start Strapi server with an unexpected error thrown

Open TechQuery opened this issue 1 year ago • 4 comments

Summary

@jakeFeldman After I upgrade my existed project to [email protected] & [email protected], I can't start the Development & Production servers, but the Building works well.

Error log

$ pnpm develop

> @ohp/[email protected] develop ~/Desktop/OpenHackathon-server
> strapi develop

✔ Cleaning dist dir (51ms)
⠋ Building build context
⠙ Building build context
[INFO] Including the following ENV variables as part of the JS bundle:
    - ADMIN_PATH
    - STRAPI_ADMIN_BACKEND_URL
    - STRAPI_TELEMETRY_DISABLED
✔ Building build context (770ms)
✔ Creating admin (59502ms)
⠇ Loading Strapi
[ERROR]  There seems to be an unexpected error, try again with --debug for more information 

┌─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┐
│                                                                                                                                     │
│   Error: [object Object]                                                                                                            │
│   at makeBlobServiceClient (~/Desktop/OpenHackathon-server/node_modules/strapi-provider-upload-azure-storage/dist/index.js:48:19)   │
│   at Object.init (~/Desktop/OpenHackathon-server/node_modules/strapi-provider-upload-azure-storage/dist/index.js:130:31)            │
│   at createProvider (~/Desktop/OpenHackathon-server/node_modules/@strapi/plugin-upload/server/register.js:60:37)                    │
│   at module.exports [as register] (~/Desktop/OpenHackathon-server/node_modules/@strapi/plugin-upload/server/register.js:16:38)      │
│   at Object.register (~/Desktop/OpenHackathon-server/node_modules/@strapi/strapi/dist/core/domain/module/index.js:46:46)            │
│   at Object.register (~/Desktop/OpenHackathon-server/node_modules/@strapi/strapi/dist/core/registries/modules.js:28:19)             │
│   at async Strapi.runLifecyclesFunctions (~/Desktop/OpenHackathon-server/node_modules/@strapi/strapi/dist/Strapi.js:440:5)          │
│   at async Strapi.register (~/Desktop/OpenHackathon-server/node_modules/@strapi/strapi/dist/Strapi.js:361:5)                        │
│   at async Strapi.load (~/Desktop/OpenHackathon-server/node_modules/@strapi/strapi/dist/Strapi.js:425:5)                            │
│   at async Object.develop (~/Desktop/OpenHackathon-server/node_modules/@strapi/admin/dist/_chunks/index-sNH2VWbC.js:837:28)         │
│                                                                                                                                     │
└─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────

Reproduce code

kaiyuanshe/OpenHackathon-server#11

TechQuery avatar Feb 23 '24 09:02 TechQuery

Hey @TechQuery if you downgrade the plugin to 3.3.0 does the dev server run?

jakeFeldman avatar Feb 26 '24 05:02 jakeFeldman

Hey @TechQuery if you downgrade the plugin to 3.3.0 does the dev server run?

Yes, the server started successfully~

TechQuery avatar Feb 26 '24 16:02 TechQuery

Thanks for confirming.

I made a mistake when upgrading the version to v3.4.0. I should have made it a major version.

Did you update your config to include the new authType property?

https://github.com/jakeFeldman/strapi-provider-upload-azure-storage?tab=readme-ov-file#usage

jakeFeldman avatar Feb 27 '24 04:02 jakeFeldman

Thanks for confirming.

I made a mistake when upgrading the version to v3.4.0. I should have made it a major version.

Did you update your config to include the new authType property?

https://github.com/jakeFeldman/strapi-provider-upload-azure-storage?tab=readme-ov-file#usage

No, I didn't check the ReadMe as this is a minor version.

And it works after I add authType: "default" into the configuration.

TechQuery avatar Feb 27 '24 05:02 TechQuery