hoppscotch / hoppscotch

Open source API development ecosystem - https://hoppscotch.io (open-source alternative to Postman, Insomnia)
https://hoppscotch.io
MIT License
65.45k stars 4.54k forks source link

[bug]: Cannot read properties of undefined (reading 'split') #4347

Open celevra opened 1 month ago

celevra commented 1 month ago

Is there an existing issue for this?

Current behavior

after Upgrade to the newest version and a migrate deploy i recive following error:

hoppscotch-aio              | Backend Server | [Nest] 37  - 09/13/2024, 7:01:55 PM   ERROR [ExceptionsHandler] Cannot read properties of undefined (reading 'split')
hoppscotch-aio              | Backend Server | TypeError: Cannot read properties of undefined (reading 'split')
hoppscotch-aio              | Backend Server |     at InfraConfigService.getAllowedAuthProviders (/dist/backend/dist/infra-config/infra-config.service.js:266:13)
hoppscotch-aio              | Backend Server |     at AuthService.getAuthProviders (/dist/backend/dist/auth/auth.service.js:248:40)
hoppscotch-aio              | Backend Server |     at AuthController.getAuthProviders (/dist/backend/dist/auth/auth.controller.js:41:50)
hoppscotch-aio              | Backend Server |     at /dist/backend/node_modules/.pnpm/@nestjs+core@10.2.7_@nestjs+common@10.2.7_class-transformer@0.5.1_class-validator@0.14.1_refl_i5vxtddbnp5qhu6jmywguprp3e/node_modules/@nestjs/core/router/router-execution-context.js:38:29
hoppscotch-aio              | Backend Server |     at InterceptorsConsumer.transformDeferred (/dist/backend/node_modules/.pnpm/@nestjs+core@10.2.7_@nestjs+common@10.2.7_class-transformer@0.5.1_class-validator@0.14.1_refl_i5vxtddbnp5qhu6jmywguprp3e/node_modules/@nestjs/core/interceptors/interceptors-consumer.js:31:33)
hoppscotch-aio              | Backend Server |     at /dist/backend/node_modules/.pnpm/@nestjs+core@10.2.7_@nestjs+common@10.2.7_class-transformer@0.5.1_class-validator@0.14.1_refl_i5vxtddbnp5qhu6jmywguprp3e/node_modules/@nestjs/core/interceptors/interceptors-consumer.js:18:86
hoppscotch-aio              | Backend Server |     at AsyncResource.runInAsyncScope (node:async_hooks:206:9)
hoppscotch-aio              | Backend Server |     at bound (node:async_hooks:238:16)
hoppscotch-aio              | Backend Server |     at Observable._subscribe (/dist/backend/node_modules/.pnpm/rxjs@7.6.0/node_modules/rxjs/dist/cjs/internal/observable/defer.js:8:31)
hoppscotch-aio              | Backend Server |     at Observable._trySubscribe (/dist/backend/node_modules/.pnpm/rxjs@7.6.0/node_modules/rxjs/dist/cjs/internal/Observable.js:41:25)

this is the entry in the env:

VITE_ALLOWED_AUTH_PROVIDERS=EMAIL

Steps to reproduce

i have no idea

Environment

Production

Version

Self-hosted

pada57 commented 1 month ago

Facing exact same issue with 2024.8.1 version. Was running and suddenly we got this.

dani commented 1 week ago

For what it worth, I add this very same issue, because I started hoppscotch with a wrong DATA_ENCRYPTION_KEY (started a new instance with a newly generated DATA_ENCRYPTION_KEY, but restoring a postgres dump from another instance, which used a different DATA_ENCRYPTION_KEY). Once I've put back the correct DATA_ENCRYPTION_KEY everything is working

kimcuong2407 commented 1 day ago

how can fix this. I have the same problem.